- Timestamp:
- Aug 27, 2010, 2:41:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.h
r7222 r7228 329 329 static inline const std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommands() 330 330 { return _ConsoleCommand::getCommandMap(); } 331 332 static inline const _ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false) 331 static inline const std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandsLC() 332 { return _ConsoleCommand::getCommandMapLC(); } 333 334 static inline _ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false) 333 335 { return _ConsoleCommand::getCommand("", name, bPrintError); } 334 static const _ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false); 336 static inline _ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false) 337 { return _ConsoleCommand::getCommandLC("", name, bPrintError); } 338 339 static _ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false); 340 static _ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false); 335 341 336 342 static void destroyAll(); … … 338 344 private: 339 345 static std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandMap(); 346 static std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandMapLC(); 347 340 348 static void registerCommand(const std::string& group, const std::string& name, _ConsoleCommand* command); 341 349 static void unregisterCommand(_ConsoleCommand* command);
Note: See TracChangeset
for help on using the changeset viewer.