#include <src/core/CommandEvaluation.h>
orxonox::CommandEvaluation::CommandEvaluation | ( | ) |
References initialize(), state_, and orxonox::CommandState::Uninitialized.
std::string orxonox::CommandEvaluation::complete | ( | ) |
References argument_, bNewCommand_, command_, commandTokens_, orxonox::CommandState::Empty, orxonox::CommandState::Error, orxonox::CommandState::Finished, orxonox::CommandState::Function, function_, functionclass_, orxonox::Identifier::getName(), orxonox::Executor::getName(), orxonox::Executor::getParamCount(), getStartindex(), orxonox::SubString::join(), orxonox::CommandState::ParamPreparation, orxonox::CommandState::Params, possibleArgument_, orxonox::CommandState::ShortcutOrIdentifier, orxonox::SubString::size(), state_, orxonox::SubString::subSet(), and orxonox::CommandState::Uninitialized.
Referenced by orxonox::CommandExecutor::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 |
References additionalParameter_, bCommandChanged_, bEvaluatedParams_, command_, commandTokens_, COUT, function_, getAdditionalParameter(), orxonox::Executor::getName(), getStartindex(), isValid(), orxonox::SubString::join(), orxonox::nocaseCmp(), originalCommand_, param_, orxonox::Executor::parse(), orxonox::removeSlashes(), orxonox::removeTrailingWhitespaces(), orxonox::SubString::size(), and orxonox::SubString::subSet().
Referenced by orxonox::SimpleCommand::execute(), orxonox::BufferedParamCommand::execute(), and orxonox::CommandExecutor::execute().
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 |
References orxonox::MAX_FUNCTOR_ARGUMENTS, orxonox::MT_Type::Null, and param_.
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 |
References function_, orxonox::Executor::hasReturnvalue(), and orxonox::MT_Type::Null.
std::string orxonox::CommandEvaluation::hint | ( | ) | const |
References dump(), orxonox::CommandState::Empty, orxonox::CommandState::Error, errorMessage_, orxonox::CommandState::Finished, orxonox::CommandState::Function, function_, listOfPossibleArguments_, listOfPossibleFunctions_, listOfPossibleIdentifiers_, orxonox::CommandState::ParamPreparation, orxonox::CommandState::Params, orxonox::CommandState::ShortcutOrIdentifier, state_, and orxonox::CommandState::Uninitialized.
Referenced by orxonox::CommandExecutor::hint().
void orxonox::CommandEvaluation::initialize | ( | const std::string & | command | ) |
References additionalParameter_, argument_, bCommandChanged_, bEvaluatedParams_, bNewCommand_, command_, commandTokens_, orxonox::CommandState::Empty, errorMessage_, function_, functionclass_, listOfPossibleArguments_, listOfPossibleFunctions_, listOfPossibleIdentifiers_, originalCommand_, possibleArgument_, orxonox::SubString::split(), state_, and orxonox::SubString::WhiteSpaces.
Referenced by CommandEvaluation(), and orxonox::CommandExecutor::parse().
bool orxonox::CommandEvaluation::isValid | ( | ) | const |
void orxonox::CommandEvaluation::setAdditionalParameter | ( | const std::string & | param | ) | [inline] |
void orxonox::CommandEvaluation::setEvaluatedParameter | ( | unsigned int | index, | |
MultiType | param | |||
) |
References orxonox::MAX_FUNCTOR_ARGUMENTS, and param_.
Referenced by orxonox::BufferedParamCommand::execute().
friend class CommandExecutor [friend] |
Referenced by execute(), and initialize().
Referenced by complete(), initialize(), and orxonox::CommandExecutor::parse().
bool orxonox::CommandEvaluation::bCommandChanged_ [private] |
Referenced by execute(), initialize(), and orxonox::CommandExecutor::parse().
bool orxonox::CommandEvaluation::bEvaluatedParams_ [private] |
Referenced by evaluateParams(), execute(), and initialize().
bool orxonox::CommandEvaluation::bNewCommand_ [private] |
Referenced by complete(), initialize(), and orxonox::CommandExecutor::parseIfNeeded().
Referenced by orxonox::CommandExecutor::argumentsGiven(), complete(), execute(), initialize(), and orxonox::CommandExecutor::parse().
Referenced by hint(), initialize(), and orxonox::CommandExecutor::parse().
Referenced by complete(), evaluateParams(), execute(), getReturnvalue(), getStartindex(), hasReturnvalue(), hint(), initialize(), isValid(), and orxonox::CommandExecutor::parse().
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().
MultiType orxonox::CommandEvaluation::param_[5] [private] |
Referenced by evaluateParams(), execute(), getEvaluatedParameter(), and setEvaluatedParameter().
Referenced by complete(), initialize(), and orxonox::CommandExecutor::parse().
Referenced by CommandEvaluation(), complete(), hint(), initialize(), and orxonox::CommandExecutor::parse().