#include <SIBCNode.h>
Public Member Functions |
|
| CSIBCUserData () | |
| CSIBCUserData (SI_Char *in_pName, SI_Void *in_pData, SI_ReleaseMethod in_pReleaseMethod) | |
| CSIBCString & | Name () |
| virtual void * | GetData () |
| virtual void | SetData (void *in_pData) |
| virtual SI_ReleaseMethod | GetReleaseMethod () |
| virtual SI_Void | SetReleaseMethod (SI_ReleaseMethod in_pReleaseMethod) |
Instances of this class are created by instances of CSIBCNode objects or their derivatives using CSIBCNode::AttachUserData. These instances are stored within the CSIBCNode object until it is destroyed, at which point all user data object attached to it are destroyed aswell. These objects can also be used by an application outside of CSIBCNode objects, as an interface to user defined data.
| CSIBCUserData | ( | ) | [inline] |
Default constructor. Sets the data pointer, and release method for the data to NULL.
| CSIBCUserData | ( | SI_Char * | in_pName, | |
| SI_Void * | in_pData, | |||
| SI_ReleaseMethod | in_pReleaseMethod | |||
| ) | [inline] |
Constructor. Sets the new object's data to the given parameters.
| in_pName | The tag name associated with this object. | |
| in_pData | Data pointer to the data associated with this object. | |
| in_pReleaseMethod | Function pointer to the function used when this object is destroyed (NULL if no release method is required). |
| CSIBCString& Name | ( | ) | [inline] |
Returns a reference to the string which holds the tag name for this object.
Returns a pointer to the data associated with this object.
Sets the user data associated with this object
| in_pData | Pointer to the data to be associated with this object |
Gets the release method for this object.
Sets the release method for this object.
| in_pReleaseMethod | Pointer to the release method to be used on the user data pointer in this object, upon object deletion. NULL indicates that no function should be used. |