- Timestamp:
- Apr 11, 2015, 10:36:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/command/ConsoleCommandManager.cc
r10346 r10354 118 118 static std::map<std::string, std::map<std::string, ConsoleCommand*> > commandMapLC; 119 119 return commandMapLC; 120 } 121 122 /** 123 @brief Registers a new command with the groups and names that are defined by ConsoleCommand::getNames(). 124 */ 125 /* static */ void ConsoleCommandManager::registerCommand(ConsoleCommand* command) 126 { 127 for (size_t i = 0; i < command->getNames().size(); ++i) 128 { 129 const ConsoleCommand::CommandName& name = command->getNames()[i]; 130 ConsoleCommandManager::registerCommand(name.group_, name.name_, command); 131 } 120 132 } 121 133
Note: See TracChangeset
for help on using the changeset viewer.