The Nebula Device 3: c:/nebula3/code/foundation/core/win32/win32singleton.h File Reference

The Nebula Device 3

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"