Changeset 10532 for code/branches/core7/src/libraries/core/module
- Timestamp:
- Jun 6, 2015, 4:38:45 PM (10 years ago)
- Location:
- code/branches/core7/src/libraries/core/module
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/module/CMakeLists.txt
r10531 r10532 2 2 ModuleInstance.cc 3 3 StaticallyInitializedInstance.cc 4 StaticInitializationHandler.cc5 4 StaticInitializationHandlerIncludes.cc 6 5 StaticInitializationManager.cc -
code/branches/core7/src/libraries/core/module/StaticInitializationHandler.h
r10531 r10532 39 39 StaticInitializationHandler() {} 40 40 virtual ~StaticInitializationHandler() {} 41 42 virtual void setupHandler() = 0; 43 virtual void shutdownHandler() = 0; 44 45 virtual void loadModule(ModuleInstance* module) = 0; 46 virtual void unloadModule(ModuleInstance* module) = 0; 41 47 }; 42 48 } -
code/branches/core7/src/libraries/core/module/StaticInitializationManager.cc
r10531 r10532 29 29 #include "StaticInitializationManager.h" 30 30 31 #include "StaticInitializationHandler.h" 32 31 33 namespace orxonox 32 34 { … … 47 49 } 48 50 49 void StaticInitializationManager:: addCoreHandler()51 void StaticInitializationManager::loadModule(ModuleInstance* module) 50 52 { 51 // TODO 53 for (std::list<StaticInitializationHandler*>::iterator it = this->handlers_.begin(); it != this->handlers_.end(); ++it) 54 (*it)->loadModule(module); 55 } 56 57 void StaticInitializationManager::unloadModule(ModuleInstance* module) 58 { 59 for (std::list<StaticInitializationHandler*>::iterator it = this->handlers_.begin(); it != this->handlers_.end(); ++it) 60 (*it)->unloadModule(module); 52 61 } 53 62 } -
code/branches/core7/src/libraries/core/module/StaticInitializationManager.h
r10531 r10532 49 49 void removeHandler(StaticInitializationHandler* handler); 50 50 51 void loadModule(ModuleInstance* module); 52 void unloadModule(ModuleInstance* module); 53 51 54 private: 52 void addCoreHandler();53 54 55 std::list<StaticInitializationHandler*> handlers_; 55 56 };
Note: See TracChangeset
for help on using the changeset viewer.