Changeset 10404
- Timestamp:
- Apr 26, 2015, 8:47:52 PM (10 years ago)
- Location:
- code/branches/core7/src/libraries/core
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/CoreIncludes.h
r10396 r10404 246 246 } 247 247 248 virtual void unload() 249 { 250 } 251 248 252 inline Identifier& getIdentifier() 249 253 { return *this->identifier_; } -
code/branches/core7/src/libraries/core/command/ConsoleCommandIncludes.cc
r10354 r10404 37 37 ConsoleCommandManager::registerCommand(this->command_); 38 38 } 39 40 void StaticallyInitializedConsoleCommand::unload() 41 { 42 ConsoleCommandManager::unregisterCommand(this->command_); 43 } 39 44 } -
code/branches/core7/src/libraries/core/command/ConsoleCommandIncludes.h
r10352 r10404 313 313 314 314 virtual void load(); 315 virtual void unload(); 315 316 316 317 inline ConsoleCommand& getCommand() -
code/branches/core7/src/libraries/core/commandline/CommandLineIncludes.h
r10353 r10404 63 63 { CommandLineParser::addArgument(this->argument_); } 64 64 65 virtual void unload() 66 { CommandLineParser::removeArgument(this->argument_); } 67 65 68 inline CommandLineArgument& getArgument() 66 69 { return *this->argument_; } -
code/branches/core7/src/libraries/core/commandline/CommandLineParser.cc
r10345 r10404 354 354 _getInstance().cmdLineArgs_[argument->getName()] = argument; 355 355 } 356 357 /** 358 * @brief Removes a CommandLineArgument from the internal map. 359 */ 360 void CommandLineParser::removeArgument(CommandLineArgument* argument) 361 { 362 _getInstance().cmdLineArgs_.erase(argument->getName()); 363 } 356 364 } -
code/branches/core7/src/libraries/core/commandline/CommandLineParser.h
r10345 r10404 151 151 static const MultiType& getValue(const std::string& name) 152 152 { return getArgument(name)->getValue(); } 153 153 154 static void addArgument(CommandLineArgument* argument); 155 static void removeArgument(CommandLineArgument* argument); 154 156 155 157 static bool existsArgument(const std::string& name) -
code/branches/core7/src/libraries/core/module/ModuleInstance.cc
r10344 r10404 53 53 } 54 54 55 void ModuleInstance::unloadAllStaticallyInitializedInstances() 56 { 57 for (std::list<StaticallyInitializedInstance*>::iterator it = this->staticallyInitializedInstances_.begin(); it != this->staticallyInitializedInstances_.end(); ++it) 58 (*it)->unload(); 59 } 60 55 61 void ModuleInstance::removeStaticallyInitializedInstance(StaticallyInitializedInstance* instance) 56 62 { -
code/branches/core7/src/libraries/core/module/ModuleInstance.h
r10344 r10404 43 43 void addStaticallyInitializedInstance(StaticallyInitializedInstance* instance); 44 44 void loadAllStaticallyInitializedInstances(); 45 void unloadAllStaticallyInitializedInstances(); 45 46 void removeStaticallyInitializedInstance(StaticallyInitializedInstance* instance); 46 47 -
code/branches/core7/src/libraries/core/module/StaticallyInitializedInstance.h
r10344 r10404 41 41 42 42 virtual void load() = 0; 43 virtual void unload() = 0; 43 44 }; 44 45 }
Note: See TracChangeset
for help on using the changeset viewer.