Changeset 10520 for code/branches/core7/src/libraries/core/command
- Timestamp:
- May 31, 2015, 11:54:06 AM (9 years ago)
- Location:
- code/branches/core7/src/libraries/core/command
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/command/ConsoleCommand.cc
r10484 r10520 92 92 ConsoleCommand::~ConsoleCommand() 93 93 { 94 ConsoleCommandManager::getInstance().unregisterCommand(this);95 94 } 96 95 -
code/branches/core7/src/libraries/core/command/ConsoleCommandIncludes.h
r10484 r10520 311 311 public: 312 312 StaticallyInitializedConsoleCommand(ConsoleCommand* command) : command_(command) {} 313 ~StaticallyInitializedConsoleCommand() { delete command_; } 313 314 314 315 virtual void load(); -
code/branches/core7/src/libraries/core/command/ConsoleCommandManager.cc
r10484 r10520 191 191 } 192 192 } 193 194 /**195 @brief Deletes all commands196 */197 void ConsoleCommandManager::destroyAll()198 {199 // delete entries until the map is empty200 while (!this->commandMap_.empty() && !this->commandMap_.begin()->second.empty())201 delete this->commandMap_.begin()->second.begin()->second;202 }203 193 } -
code/branches/core7/src/libraries/core/command/ConsoleCommandManager.h
r10484 r10520 68 68 ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false); 69 69 70 void destroyAll();71 72 70 private: 73 71 std::map<std::string, std::map<std::string, ConsoleCommand*> > commandMap_;
Note: See TracChangeset
for help on using the changeset viewer.