C:/nebula3/code/foundation/core/win32/win32singleton.h File Reference
Detailed Description
Provides helper macros to implement singleton objects:
- DeclareSingleton put this into class declaration
- ImplementSingleton put this into the implemention file
- ConstructSingleton put this into the constructor
- DestructSingleton put this into the destructor
Get a pointer to a singleton object using the static Instance() method:
Core::Server* coreServer = Core::Server::Instance();
(C) 2007 Radon Labs GmbH
#include "core/types.h"