#include <HEventManager.h>
Public Member Functions | |
HObject * | AddHObject (HObject *hobject) |
HObject * | GetHObject (const char *name) |
HObjectManager () | |
HObject * | RemoveHObject (const char *name) |
Static Public Member Functions | |
static void | FileLoadHObjectCheck (HC_KEY segkey) |
static HC_KEY | FindHObjectSegment (HC_KEY segkey, char *res=0, char *ores=0) |
static void | SetHObjectInfo (const char *objectinfo) |
static void | SetHObjectSegment (const char *objecttype) |
Protected Attributes | |
struct vhash_s * | m_pObjectHash |
Static Protected Attributes | |
static long | object_segment_count |
By registering with the HObjectManager, a class derived from HObject can store persistent data and receive events.
HObjectManager::HObjectManager | ( | ) |
Constructs an HObjectManager object.
static void HObjectManager::FileLoadHObjectCheck | ( | HC_KEY | segkey | ) | [static] |
This method is called when a file finishes loading. This function checks whether there are any object segments.
segkey | The segment to search from. |
static HC_KEY HObjectManager::FindHObjectSegment | ( | HC_KEY | segkey, | |
char * | res = 0 , |
|||
char * | ores = 0 | |||
) | [static] |
Given a segment key, this methods finds the next object segment that this segment is contained in.
segkey | The segment to search from. | |
res | If non-zero, returns name of object. | |
ores | If non-zero, returns object information. |
HObject* HObjectManager::GetHObject | ( | const char * | name | ) |
This method retrieves an object from object list based on object name.
name | The name of the object to be retrieved. |
HObject* HObjectManager::RemoveHObject | ( | const char * | name | ) |
This method removes an object from the object list.
name | The name of the object to be removed. |
static void HObjectManager::SetHObjectInfo | ( | const char * | objectinfo | ) | [static] |
The method declares the currently open segment an object segment, associates an object name with it if it doesn't have one and set the object info.
objectinfo | A pointer to the infodata for object. |
static void HObjectManager::SetHObjectSegment | ( | const char * | objecttype | ) | [static] |
This method declares the currently open segment an object segment and associates an object name with it.
objecttype | The name which you want to label the object as. |
struct vhash_s* HObjectManager::m_pObjectHash [read, protected] |
Object Hash