MercuryObjectFactory.h File Reference

#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< MercuryObjectFactoryMOFcounter


Define Documentation

#define REGISTER_OBJECT_TYPE (  ) 

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.


Variable Documentation

InstanceCounter<MercuryObjectFactory> MOFcounter [static]

Definition at line 29 of file MercuryObjectFactory.h.


Hosted by SourceForge.net Logo