Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 6, 2015, 11:52:25 PM (10 years ago)
Author:
landauf
Message:

statically initialized instances are now registered with a type. CoreStaticInitializationHandler initializes all instances in core, NetworkStaticInitializationHandler initializes all instances in network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/core/singleton/ScopeTest.cc

    r10530 r10535  
    22#include "core/singleton/ScopedSingletonIncludes.h"
    33#include "core/module/ModuleInstance.h"
     4#include "core/CoreIncludes.h"
    45
    56namespace orxonox
     
    2728                virtual void SetUp()
    2829                {
    29                     ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(0);
     30                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
     31                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER);
    3032                }
    3133
    3234                virtual void TearDown()
    3335                {
    34                     ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(0);
     36                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::SCOPED_SINGLETON_WRAPPER);
     37                    ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
    3538                }
    3639        };
Note: See TracChangeset for help on using the changeset viewer.