CHAI SDK
Version 1.3
|
Object base interface. More...
Public Member Functions | |
virtual CPNS::ICHAI * | GetCHAI ()=0 |
Get a pointer to the CHAI hosting this object. More... | |
virtual void | RegisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0 |
Register an Object's notification handler. More... | |
virtual void | UnregisterObjectNotificationHandler (CPNS::IObject_NotificationHandler *const pHandler)=0 |
Unregister an Object's notification handler. More... | |
virtual CPNS::Enums::ObjectTypes | GetObjectType () const =0 |
Get the object type. More... | |
virtual CPNS::uint32 | GetHandle () const =0 |
Get a unique handle to the object if this object is handled by the trashcan. More... | |
virtual void | SetUserDataPtr (void const *const pData)=0 |
Set a custom user ptr data. More... | |
virtual void * | GetUserDataPtr () const =0 |
Get custom user ptr data. More... | |
virtual void | SetUserDataUInt32 (const CPNS::uint32 dwData)=0 |
Set a custom user uint32 data. More... | |
virtual CPNS::uint32 | GetUserDataUInt32 () const =0 |
Get custom user uint32 data. More... | |
Object base interface.
Each object whose lifetime is handled by the CHAI derives from this class. Its allowing to perform generic operations such as getting the detailed object type, assigning user data, being notified on destruction,...
|
pure virtual |
Get a pointer to the CHAI hosting this object.
|
pure virtual |
Get a unique handle to the object if this object is handled by the trashcan.
|
pure virtual |
Get the object type.
Use this method to determine the object type related to the pointer.
|
pure virtual |
Get custom user ptr data.
|
pure virtual |
Get custom user uint32 data.
|
pure virtual |
Register an Object's notification handler.
The Object's notification handler is used to signal application side that the object is ready to be destroyed. Can be used to clean User Data pointer.
[in] | pHandler | Pointer to the application object implementing IObject_NotificationHandler. If pHandler is NULL, clear all registered handlers. |
|
pure virtual |
Set a custom user ptr data.
[in] | pData | User data pointer |
|
pure virtual |
Set a custom user uint32 data.
[in] | dwData | User uint32 data |
|
pure virtual |
Unregister an Object's notification handler.
[in] | pHandler | Pointer to the application object implementing IObject_NotificationHandler. If pHandler is NULL, clear all registered handlers. |