#include <MercuryObject.h>
Collaboration diagram for MercuryObjectRegister:
Public Member Functions | |
MercuryObjectRegister () | |
void | Register (MercuryObject *obj, const MString &name) |
void | Unregister (const MString &name) |
MercuryObject * | GetObjectFromName (const MString &name) |
void | ShutDown () |
Static Public Member Functions | |
static void | SendCompiledMessage (const MString &message, void *data, PStack &info) |
static int | GetCountOfObject (const MString &name) |
Private Attributes | |
const int | NOTFOUND |
Static Private Attributes | |
static MHash< MercuryObject * > | m_mObjects |
static MHash< int > | m_mObjectCounts |
While objects should never be created in static time if you do, it won't break this class.
Definition at line 224 of file MercuryObject.h.
MercuryObjectRegister::MercuryObjectRegister | ( | ) |
void MercuryObjectRegister::Register | ( | MercuryObject * | obj, | |
const MString & | name | |||
) |
void MercuryObjectRegister::Unregister | ( | const MString & | name | ) |
MercuryObject* MercuryObjectRegister::GetObjectFromName | ( | const MString & | name | ) |
static void MercuryObjectRegister::SendCompiledMessage | ( | const MString & | message, | |
void * | data, | |||
PStack & | info | |||
) | [static] |
static int MercuryObjectRegister::GetCountOfObject | ( | const MString & | name | ) | [static] |
void MercuryObjectRegister::ShutDown | ( | ) |
const int MercuryObjectRegister::NOTFOUND [private] |
Definition at line 235 of file MercuryObject.h.
MHash< MercuryObject * > MercuryObjectRegister::m_mObjects [static, private] |
Definition at line 236 of file MercuryObject.h.
MHash< int > MercuryObjectRegister::m_mObjectCounts [static, private] |
Definition at line 237 of file MercuryObject.h.