Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2015, 11:08:26 PM (9 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:
1 added
1 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__ */
Note: See TracChangeset for help on using the changeset viewer.