Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2015, 11:08:26 PM (10 years ago)
Author:
landauf
Message:

moved Scope and ScopedSingletonManager from util to core.
TODO I had to disable two tests in ScopeTest.cc because now that it runs in the core library, there are too many singletons which get loaded in graphics scope (with too many dependencies). this should be fixed

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  
    4242
    4343To 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 util library.
     44registers in orxonox::ScopeManager, where they are linked statically in the core library.
    4545
    4646Scopes are usually used to control the creation and destruction of Singletons.
     
    5050*/
    5151
    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"
    5656
    5757#include <cassert>
     
    6060#include <loki/ScopeGuard.h>
    6161
    62 #include "Output.h"
     62#include "util/Output.h"
    6363
    6464namespace orxonox
     
    6767        @brief The ScopeManager stores the variables of the Scope templates in a statically linked context.
    6868
    69         If all Scope objects are managed by this class, they are statically linked in the util library.
     69        If all Scope objects are managed by this class, they are statically linked in the core library.
    7070        Without this, a new instance of Scope<T> for each T would be created in every library of Orxonox,
    7171        which is of course not the desired behavior.
     
    7373        @see See @ref Scope "this description" for details about the interrelationship of Scope, ScopeListener, and ScopeManager.
    7474    */
    75     class _UtilExport ScopeManager
     75    class _CoreExport ScopeManager
    7676    {
    7777        template <ScopeID::Value scope>
     
    9090        @see See @ref Scope "this description" for details about the interrelationship of Scope, ScopeListener, and ScopeManager.
    9191    */
    92     class _UtilExport ScopeListener
     92    class _CoreExport ScopeListener
    9393    {
    9494        template <ScopeID::Value scope>
     
    198198}
    199199
    200 #endif /* __Util_Scope_H__ */
     200#endif /* __Core_Scope_H__ */
  • code/branches/core7/src/libraries/core/singleton/ScopedSingletonManager.h

    r10406 r10407  
    4545#define __ScopedSingletonManager_H__
    4646
    47 #include "UtilPrereqs.h"
     47#include "core/CorePrereqs.h"
    4848
    4949#include <cassert>
    5050#include <map>
    5151#include "util/Exception.h"
    52 #include "util/Scope.h"
    5352#include "util/Singleton.h"
     53#include "Scope.h"
    5454
    5555/**
     
    7676        map, sorted by the scope they belong to.
    7777    */
    78     class _UtilExport ScopedSingletonManager
     78    class _CoreExport ScopedSingletonManager
    7979    {
    8080        public:
Note: See TracChangeset for help on using the changeset viewer.