- Timestamp:
- Aug 25, 2010, 7:07:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.h
r7203 r7216 57 57 static const CommandEvaluation& getLastEvaluation(); 58 58 59 static ConsoleCommand& addConsoleCommandShortcut(ConsoleCommand* command, bool bDeleteAtExit = false);60 static ConsoleCommand* getConsoleCommandShortcut(const std::string& name);61 static ConsoleCommand* getLowercaseConsoleCommandShortcut(const std::string& name);62 63 /** @brief Returns the map that stores all console commands. @return The const_iterator */64 static inline const std::map<std::string, ConsoleCommand*>& getConsoleCommandShortcutMap() { return CommandExecutor::getInstance().consoleCommandShortcuts_; }65 /** @brief Returns a const_iterator to the beginning of the map that stores all console commands. @return The const_iterator */66 static inline std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandShortcutMapBegin() { return CommandExecutor::getInstance().consoleCommandShortcuts_.begin(); }67 /** @brief Returns a const_iterator to the end of the map that stores all console commands. @return The const_iterator */68 static inline std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandShortcutMapEnd() { return CommandExecutor::getInstance().consoleCommandShortcuts_.end(); }69 70 /** @brief Returns the map that stores all console commands with their names in lowercase. @return The const_iterator */71 static inline const std::map<std::string, ConsoleCommand*>& getLowercaseConsoleCommandShortcutMap() { return CommandExecutor::getInstance().consoleCommandShortcuts_LC_; }72 /** @brief Returns a const_iterator to the beginning of the map that stores all console commands with their names in lowercase. @return The const_iterator */73 static inline std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandShortcutMapBegin() { return CommandExecutor::getInstance().consoleCommandShortcuts_LC_.begin(); }74 /** @brief Returns a const_iterator to the end of the map that stores all console commands with their names in lowercase. @return The const_iterator */75 static inline std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandShortcutMapEnd() { return CommandExecutor::getInstance().consoleCommandShortcuts_LC_.end(); }76 77 static void destroyExternalCommands();78 79 59 private: 80 60 CommandExecutor() {} … … 107 87 108 88 CommandEvaluation evaluation_; 109 std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_;110 std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_LC_;111 std::set<ConsoleCommand*> consoleCommandExternals_;112 89 }; // tolua_export 113 90 } // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.