#include "MercuryObject.h"
#include "MercuryUtil.h"
Go to the source code of this file.
Classes | |
class | MercuryObjectFactory |
Class Register for Object creation. More... | |
Defines | |
#define | REGISTER_OBJECT_TYPE(x) |
Variables | |
static InstanceCounter< MercuryObjectFactory > | MOFcounter |
#define REGISTER_OBJECT_TYPE | ( | x | ) |
Value:
MercuryObject * CreateClassType##x( const MString & sName ) \ { \ x * ret = new x; \ ret->SetName( sName ); \ return (MercuryObject*)ret; \ } \ \ bool GlobalClassRegisterSuccess##x = MercuryObjectFactory::GetInstance().RegisterObjectClass( #x, CreateClassType##x );
Definition at line 31 of file MercuryObjectFactory.h.
InstanceCounter<MercuryObjectFactory> MOFcounter [static] |
Definition at line 29 of file MercuryObjectFactory.h.