orxonox::CommandEvaluation Class Reference

#include <src/core/CommandEvaluation.h>

List of all members.

Public Member Functions

 CommandEvaluation ()
std::string complete ()
void evaluateParams ()
bool execute () const
std::string getAdditionalParameter () const
const std::stringgetCommand () const
ConsoleCommandgetConsoleCommand () const
MultiType getEvaluatedParameter (unsigned int index) const
const std::stringgetOriginalCommand () const
MultiType getReturnvalue () const
bool hasReturnvalue () const
std::string hint () const
void initialize (const std::string &command)
bool isValid () const
void setAdditionalParameter (const std::string &param)
void setEvaluatedParameter (unsigned int index, MultiType param)

Private Member Functions

unsigned int getStartindex () const

Static Private Member Functions

static std::string dump (const ConsoleCommand *command)
static std::string dump (const ArgumentCompletionList &list)
static std::string dump (const std::list< std::pair< const std::string *, const std::string * > > &list)

Private Attributes

std::string additionalParameter_
std::string argument_
bool bCommandChanged_
bool bEvaluatedParams_
bool bNewCommand_
std::string command_
SubString commandTokens_
std::string errorMessage_
ConsoleCommandfunction_
Identifierfunctionclass_
ArgumentCompletionList listOfPossibleArguments_
std::list< std::pair< const
std::string *, const
std::string * > > 
listOfPossibleFunctions_
std::list< std::pair< const
std::string *, const
std::string * > > 
listOfPossibleIdentifiers_
std::string originalCommand_
MultiType param_ [5]
std::string possibleArgument_
CommandState::Value state_

Friends

class CommandExecutor


Constructor & Destructor Documentation

orxonox::CommandEvaluation::CommandEvaluation (  ) 


Member Function Documentation

std::string orxonox::CommandEvaluation::complete (  ) 

std::string orxonox::CommandEvaluation::dump ( const ConsoleCommand command  )  [static, private]

std::string orxonox::CommandEvaluation::dump ( const ArgumentCompletionList list  )  [static, private]

std::string orxonox::CommandEvaluation::dump ( const std::list< std::pair< const std::string *, const std::string * > > &  list  )  [static, private]

Referenced by hint().

void orxonox::CommandEvaluation::evaluateParams (  ) 

bool orxonox::CommandEvaluation::execute (  )  const

std::string orxonox::CommandEvaluation::getAdditionalParameter (  )  const [inline]

Referenced by evaluateParams(), and execute().

const std::string& orxonox::CommandEvaluation::getCommand (  )  const [inline]

ConsoleCommand* orxonox::CommandEvaluation::getConsoleCommand (  )  const [inline]

Referenced by orxonox::Button::parse().

MultiType orxonox::CommandEvaluation::getEvaluatedParameter ( unsigned int  index  )  const

const std::string& orxonox::CommandEvaluation::getOriginalCommand (  )  const [inline]

MultiType orxonox::CommandEvaluation::getReturnvalue (  )  const

unsigned int orxonox::CommandEvaluation::getStartindex (  )  const [private]

References function_, and functionclass_.

Referenced by complete(), evaluateParams(), and execute().

bool orxonox::CommandEvaluation::hasReturnvalue (  )  const

std::string orxonox::CommandEvaluation::hint (  )  const

void orxonox::CommandEvaluation::initialize ( const std::string command  ) 

bool orxonox::CommandEvaluation::isValid (  )  const

void orxonox::CommandEvaluation::setAdditionalParameter ( const std::string param  )  [inline]

void orxonox::CommandEvaluation::setEvaluatedParameter ( unsigned int  index,
MultiType  param 
)


Friends And Related Function Documentation

friend class CommandExecutor [friend]


Member Data Documentation

Referenced by execute(), and initialize().

Referenced by evaluateParams(), execute(), and initialize().

std::list<std::pair<const std::string*, const std::string*> > orxonox::CommandEvaluation::listOfPossibleFunctions_ [private]

std::list<std::pair<const std::string*, const std::string*> > orxonox::CommandEvaluation::listOfPossibleIdentifiers_ [private]

Referenced by execute(), and initialize().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:22:24 2009 for Orxonox by  doxygen 1.5.6