34 #ifndef _ConsoleCommandManager_H__ 35 #define _ConsoleCommandManager_H__ 58 inline const std::map<std::string, std::map<std::string, ConsoleCommand*>>&
getCommands()
59 {
return this->commandMap_; }
61 inline const std::map<std::string, std::map<std::string, ConsoleCommand*>>&
getCommandsLC()
62 {
return this->commandMapLC_; }
66 {
return this->getCommand(
"", name, bPrintError); }
69 {
return this->getCommandLC(
"", name, bPrintError); }
75 std::map<std::string, std::map<std::string, ConsoleCommand*>>
commandMap_;
76 std::map<std::string, std::map<std::string, ConsoleCommand*>>
commandMapLC_;
static ConsoleCommandManager * singletonPtr_s
Definition: ConsoleCommandManager.h:78
The ConsoleCommand class stores all information about a console command which can be executed by Comm...
Definition: ConsoleCommand.h:88
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
std::map< std::string, std::map< std::string, ConsoleCommand * > > commandMapLC_
Definition: ConsoleCommandManager.h:76
ConsoleCommand * getCommand(const std::string &name, bool bPrintError=false)
Returns a command (shortcut) with given name.
Definition: ConsoleCommandManager.h:65
ConsoleCommand * getCommandLC(const std::string &name, bool bPrintError=false)
Returns a command (shortcut) with given name in lowercase.
Definition: ConsoleCommandManager.h:68
A singleton that stores all existing ConsoleCommands.
Definition: ConsoleCommandManager.h:48
const std::map< std::string, std::map< std::string, ConsoleCommand * > > & getCommandsLC()
Returns the map with all groups and commands in lowercase.
Definition: ConsoleCommandManager.h:61
Base for singleton classes.
Definition: Singleton.h:114
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
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
#define _CoreExport
Definition: CorePrereqs.h:61
Definition of the Singleton template that is used as base class for classes that allow only one insta...
const std::map< std::string, std::map< std::string, ConsoleCommand * > > & getCommands()
Returns the map with all groups and commands.
Definition: ConsoleCommandManager.h:58
std::map< std::string, std::map< std::string, ConsoleCommand * > > commandMap_
Definition: ConsoleCommandManager.h:75