MercuryObjectFactory Class Reference

Class Register for Object creation. More...

#include <MercuryObjectFactory.h>

Collaboration diagram for MercuryObjectFactory:

Collaboration graph
List of all members.

Public Member Functions

MercuryObjectGenerateObject (const MString &sClass, const MString &sName)
bool RegisterObjectClass (const MString &sClassName, MakeObjectCommand pCmd)
void FinalizeCallbacks ()
void RegisterFunction (ClassCallback *pCallback, const MString &sClassName, const MString &sCallbackName)
ClassCallbackGetCallback (const MString &sClassName, const MString &sFunctionName)
void GetAllClasses (MVector< MString > &vRet)
void GetAllFunctions (const MString &sClass, MVector< MString > vRet)

Static Public Member Functions

static MercuryObjectFactoryGetInstance ()

Private Attributes

MHash< MakeObjectCommandm_mClasses
MHash< MHash< ClassCallback * > > m_mPreCallbacks
MHash< MHash< ClassCallback * > > m_mFinalCallbacks
MVector< MercuryObject * > m_vTemplateObjects

Detailed Description

Class Register for Object creation.

Definition at line 8 of file MercuryObjectFactory.h.

Member Function Documentation

MercuryObjectFactory & MercuryObjectFactory::GetInstance (  )  [static]

Definition at line 5 of file MercuryObjectFactory.cpp.

MercuryObject * MercuryObjectFactory::GenerateObject ( const MString sClass,
const MString sName 

Definition at line 24 of file MercuryObjectFactory.cpp.

bool MercuryObjectFactory::RegisterObjectClass ( const MString sClassName,
MakeObjectCommand  pCmd 

Definition at line 18 of file MercuryObjectFactory.cpp.

void MercuryObjectFactory::FinalizeCallbacks (  ) 

Definition at line 31 of file MercuryObjectFactory.cpp.

void MercuryObjectFactory::RegisterFunction ( ClassCallback pCallback,
const MString sClassName,
const MString sCallbackName 

Definition at line 67 of file MercuryObjectFactory.cpp.

ClassCallback * MercuryObjectFactory::GetCallback ( const MString sClassName,
const MString sFunctionName 

Definition at line 72 of file MercuryObjectFactory.cpp.

void MercuryObjectFactory::GetAllClasses ( MVector< MString > &  vRet  ) 

Definition at line 89 of file MercuryObjectFactory.cpp.

void MercuryObjectFactory::GetAllFunctions ( const MString sClass,
MVector< MString vRet 

Definition at line 94 of file MercuryObjectFactory.cpp.

Member Data Documentation

MHash< MakeObjectCommand > MercuryObjectFactory::m_mClasses [private]

Definition at line 21 of file MercuryObjectFactory.h.

MHash< MHash< ClassCallback * > > MercuryObjectFactory::m_mPreCallbacks [private]

Definition at line 22 of file MercuryObjectFactory.h.

MHash< MHash< ClassCallback * > > MercuryObjectFactory::m_mFinalCallbacks [private]

Definition at line 23 of file MercuryObjectFactory.h.

MVector< MercuryObject * > MercuryObjectFactory::m_vTemplateObjects [private]

Definition at line 24 of file MercuryObjectFactory.h.

The documentation for this class was generated from the following files:
Hosted by Logo