Changeset 10407 for code/branches/core7/src/libraries/core/singleton
- Timestamp:
- Apr 27, 2015, 11:08:26 PM (10 years ago)
- Location:
- code/branches/core7/src/libraries/core/singleton
- Files:
-
- 2 added
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/singleton/Scope.h
r10406 r10407 42 42 43 43 To avoid multiple instances of orxonox::Scope<@a scope> in different libraries, each instance of orxonox::Scope 44 registers in orxonox::ScopeManager, where they are linked statically in the utillibrary.44 registers in orxonox::ScopeManager, where they are linked statically in the core library. 45 45 46 46 Scopes are usually used to control the creation and destruction of Singletons. … … 50 50 */ 51 51 52 #ifndef __ Util_Scope_H__53 #define __ Util_Scope_H__54 55 #include " UtilPrereqs.h"52 #ifndef __Core_Scope_H__ 53 #define __Core_Scope_H__ 54 55 #include "core/CorePrereqs.h" 56 56 57 57 #include <cassert> … … 60 60 #include <loki/ScopeGuard.h> 61 61 62 #include " Output.h"62 #include "util/Output.h" 63 63 64 64 namespace orxonox … … 67 67 @brief The ScopeManager stores the variables of the Scope templates in a statically linked context. 68 68 69 If all Scope objects are managed by this class, they are statically linked in the utillibrary.69 If all Scope objects are managed by this class, they are statically linked in the core library. 70 70 Without this, a new instance of Scope<T> for each T would be created in every library of Orxonox, 71 71 which is of course not the desired behavior. … … 73 73 @see See @ref Scope "this description" for details about the interrelationship of Scope, ScopeListener, and ScopeManager. 74 74 */ 75 class _ UtilExport ScopeManager75 class _CoreExport ScopeManager 76 76 { 77 77 template <ScopeID::Value scope> … … 90 90 @see See @ref Scope "this description" for details about the interrelationship of Scope, ScopeListener, and ScopeManager. 91 91 */ 92 class _ UtilExport ScopeListener92 class _CoreExport ScopeListener 93 93 { 94 94 template <ScopeID::Value scope> … … 198 198 } 199 199 200 #endif /* __ Util_Scope_H__ */200 #endif /* __Core_Scope_H__ */ -
code/branches/core7/src/libraries/core/singleton/ScopedSingletonManager.h
r10406 r10407 45 45 #define __ScopedSingletonManager_H__ 46 46 47 #include " UtilPrereqs.h"47 #include "core/CorePrereqs.h" 48 48 49 49 #include <cassert> 50 50 #include <map> 51 51 #include "util/Exception.h" 52 #include "util/Scope.h"53 52 #include "util/Singleton.h" 53 #include "Scope.h" 54 54 55 55 /** … … 76 76 map, sorted by the scope they belong to. 77 77 */ 78 class _ UtilExport ScopedSingletonManager78 class _CoreExport ScopedSingletonManager 79 79 { 80 80 public:
Note: See TracChangeset
for help on using the changeset viewer.