Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_ObjectManager Class Reference

A class for managing a list of CP_Objects.

Inheritance diagram for CP_ObjectManager:

CP_NoCopy List of all members.

Public Member Functions

 CP_ObjectManager ()
virtual ~CP_ObjectManager ()
UInt32 Count ()
void Append (CP_Object *inDocument)
void Remove (CP_Object *inDocument)
CP_ObjectFindByID (FourCharCode inObjectID)

Static Public Member Functions

static CP_ObjectManagerInstance ()

Protected Attributes

CP_Objects_ListfObjects

Static Protected Attributes

static CP_ObjectManagerfsInstance = NULL

Constructor & Destructor Documentation

CP_ObjectManager::CP_ObjectManager  ) 
 

Constructor.

CP_ObjectManager::~CP_ObjectManager  )  [virtual]
 

Destructor.


Member Function Documentation

CP_ObjectManager * CP_ObjectManager::Instance  )  [static]
 

UInt32 CP_ObjectManager::Count  ) 
 

Returns the number of objects managed by this class.

Returns:
UInt32 Number of objects managed by this class.

void CP_ObjectManager::Append CP_Object inObject  ) 
 

Adds the passed in CP_Object to the list of objects managed by this class. This will only add the object if it is not currently in the list of known objects for this object. So it is safe to call with the same object more than once. You normally do not need to call this, as it is called in the objects constructor.

Parameters:
inObject A CP_Object to add to list of known Objects.
Returns:
void

void CP_ObjectManager::Remove CP_Object inObject  ) 
 

Remove an object from this list. This is called for you automatically when a CP_Object is deleted. A std::runtime_error is thrown if the object is not in the list. You normally do not need to call this, as it is called in the objects destructor.

Parameters:
inObject A CP_Object to remove from this list.
Returns:
void

CP_Object * CP_ObjectManager::FindByID FourCharCode  inObjectID  ) 
 

Returns the CP_Object in the list with the passed in object id.

Parameters:
inObjectID The objects identifier we are looking for.
Returns:
CP_Object * The object in the list that matches the passed in id.


Member Data Documentation

CPLAT_Begin_Namespace_CPLAT CP_ObjectManager * CP_ObjectManager::fsInstance = NULL [static, protected]
 

CP_Objects_List* CP_ObjectManager::fObjects [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:21:53 2005 for CPLAT_MacOS by  doxygen 1.4.0