18#include <OgreSingleton.h>
void(* ConfigCmdParams)(const Ogre::StringVector ¶ms)
Definition: ConfigCmd.h:23
void(* ConfigCmdCompletion)(Ogre::StringVector &complete_params)
Definition: ConfigCmd.h:25
A handler for configuration commands.
Definition: ConfigCmdHandler.h:26
ConfigCmd * GetConfigCmd(unsigned int i) const
Retrieves a command by index.
Definition: ConfigCmdHandler.cpp:54
ConfigCmdHandler(const ConfigCmdHandler &rhs)=delete
Forbidden copy constructor.
ConfigCmdHandler operator=(const ConfigCmdHandler &rhs)=delete
Forbidden copy constructor.
~ConfigCmdHandler()
Destructor.
Definition: ConfigCmdHandler.cpp:28
void InitCmd()
Initializes the command.
Definition: ConfigCmdHandlerCommands.h:428
ConfigCmd * Find(const Ogre::String &name) const
Finds a command by name.
Definition: ConfigCmdHandler.cpp:46
void AddCommand(const Ogre::String &name, const Ogre::String &description, const Ogre::String ¶ms_description, ConfigCmdParams params, ConfigCmdCompletion completion)
Adds a command to the manager.
Definition: ConfigCmdHandler.cpp:30
int GetConfigCmdNumber()
Counts the commands in the manager.
Definition: ConfigCmdHandler.cpp:52
std::vector< std::unique_ptr< ConfigCmd > > commands_
List of command in the manager.
Definition: ConfigCmdHandler.h:110
void ExecuteString(const Ogre::String &cmd_string)
Executes a command.
Definition: ConfigCmdHandler.cpp:44
ConfigCmdHandler()
Constructor.
Definition: ConfigCmdHandler.cpp:26
A configuration command.
Definition: ConfigCmd.h:31
Ogre::String String
Definition: TypeDefine.h:37