35 #ifndef __ScopedSingletonIncludes_H__ 36 #define __ScopedSingletonIncludes_H__ 72 #define ManageScopedSingleton(className, scope, allowedToFail) \ 73 className* className::singletonPtr_s = nullptr; \ 74 static ScopedSingletonWrapper& className##ScopedSingletonWrapper \ 75 = (new orxonox::SI_SSW(new ClassScopedSingletonWrapper<className, allowedToFail>(#className), scope))->getWrapper() 89 virtual void load()
override;
90 virtual void unload()
override;
93 {
return *this->wrapper_; }
Shared library macros, enums, constants and forward declarations for the core library ...
ScopedSingletonWrapper * wrapper_
Definition: ScopedSingletonIncludes.h:96
ScopedSingletonWrapper & getWrapper()
Definition: ScopedSingletonIncludes.h:92
~StaticallyInitializedScopedSingletonWrapper()
Definition: ScopedSingletonIncludes.h:87
Definition: ScopedSingletonIncludes.h:79
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
ScopeID::Value scope_
Definition: ScopedSingletonIncludes.h:97
StaticallyInitializedScopedSingletonWrapper(ScopedSingletonWrapper *wrapper, ScopeID::Value scope)
Definition: ScopedSingletonIncludes.h:82
Definition: StaticallyInitializedInstance.h:36
Base class of ClassScopedSingletonWrapper.
Definition: ScopedSingletonWrapper.h:59
#define _CoreExport
Definition: CorePrereqs.h:61
StaticallyInitializedScopedSingletonWrapper SI_SSW
Definition: ScopedSingletonIncludes.h:100
Definition of orxonox::ScopedSingletonWrapper and orxonox::ClassScopedSingletonWrapper.
int Value
Definition: CorePrereqs.h:82
static constexpr Type SCOPED_SINGLETON_WRAPPER
Definition: CorePrereqs.h:95