Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2015, 10:22:59 AM (9 years ago)
Author:
landauf
Message:

don't store scope in ScopeListener - instead register the listener in ScopeManager for a specific scope

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/singleton/ScopedSingletonIncludes.h

    r10481 r10514  
    7373    className* className::singletonPtr_s = NULL; \
    7474    static ScopedSingletonWrapper& className##ScopedSingletonWrapper \
    75         = (new orxonox::SI_SSW(new ClassScopedSingletonWrapper<className, scope, allowedToFail>(#className)))->getWrapper()
     75        = (new orxonox::SI_SSW(new ClassScopedSingletonWrapper<className, allowedToFail>(#className), scope))->getWrapper()
    7676
    7777namespace orxonox
     
    8080    {
    8181        public:
    82             StaticallyInitializedScopedSingletonWrapper(ScopedSingletonWrapper* wrapper) : wrapper_(wrapper) {}
     82            StaticallyInitializedScopedSingletonWrapper(ScopedSingletonWrapper* wrapper, ScopeID::Value scope)
     83                : wrapper_(wrapper)
     84                , scope_(scope)
     85            {}
    8386
    8487            virtual void load();
     
    9093        private:
    9194            ScopedSingletonWrapper* wrapper_;
     95            ScopeID::Value scope_;
    9296    };
    9397
Note: See TracChangeset for help on using the changeset viewer.