85 #ifndef _CommandExecutor_H__ 86 #define _CommandExecutor_H__ 113 static int execute(
const std::string&
command,
bool useTcl =
true,
bool printErrors =
true);
120 static constexpr
int Success = 0;
121 static constexpr
int Inexistent = 1;
122 static constexpr
int Incomplete = 2;
123 static constexpr
int Deactivated = 3;
124 static constexpr
int Denied = 4;
125 static constexpr
int Error = 5;
153 std::map<std::string, CacheEntry>
cache_;
void error(const std::string &text)
Prints output with error level.
Definition: ConsoleCommandCompilation.cc:145
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
CommandEvaluation evaluation_
The command evaluation which is stored in the cache.
Definition: CommandExecutor.h:149
Declaration of the orxonox::CommandEvaluation class which is returned by orxonox::CommandExecutor::ev...
This class is used to execute and evaluate command-strings.
Definition: CommandExecutor.h:109
std::map< std::string, CacheEntry > cache_
A map that connects command strings and evaluated commands in the cache.
Definition: CommandExecutor.h:153
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Declaration of the MultiType and some helper constructs.
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_MULTI() command(const std::string &fragment)
Returns a list of commands and groups and also supports auto-completion of the arguments of these com...
Definition: ArgumentCompletionFunctions.cc:178
CommandEvaluation is used to gather information about a command and to evaluate its arguments...
Definition: CommandEvaluation.h:80
#define _CoreExport
Definition: CorePrereqs.h:61
The MultiType can hold a value of many possible types and convert them to other types.
Definition: MultiType.h:130
std::list< std::string > cachelist_
A list used to sort the elements in the cache by their age.
Definition: CommandExecutor.h:154
Helper struct, used to store cached entries.
Definition: CommandExecutor.h:147
std::list< std::string >::iterator iterator_
The iterator of the corresponding element in cachelist_, used for faster access.
Definition: CommandExecutor.h:150
static void _autocomplete(const std::string &group, const std::string &name)
Pseudo console command used whenever no real command is available. In these cases this command provid...
Definition: CommandExecutor.h:131