#include <RO_RegistryBlock.h>
Public Member Functions | |
| s_RO_RegistryBlock (int id, p_RO_Func *pfunc, p_RO_FuncDelete *pfunc_delete, const char *name=0) | |
| int | GetClassID (void) |
| ReplicaObject * | CallBackAllocate (void) |
| void | CallBackDelete (ReplicaObject *object) |
| const char * | GetName (void) const |
| s_RO_RegistryBlock | ( | int | id, | |
| p_RO_Func * | pfunc, | |||
| p_RO_FuncDelete * | pfunc_delete, | |||
| const char * | name = 0 | |||
| ) |
This ctor fills in the parameters in the structure
| id | the class id to use for this block | |
| pfunc | the function pointer that can allocate this class id | |
| pfunc_delete | the function that can delete this class id | |
| name | the name of the class. The default value is null |
| int GetClassID | ( | void | ) |
Gets the class id from the structure
| ReplicaObject* CallBackAllocate | ( | void | ) |
Calls the allocate function pointer registered for this block and returns the ReplicaObject pointer
| void CallBackDelete | ( | ReplicaObject * | object | ) |
| const char* GetName | ( | void | ) | const |
Gets the class name if the preprocessor define REPLICANET_VISUALDEBUGGER is used. Otherwise the return value is null. If the class name is null then the ReplicaObject will not appear in the Visual Debugger output.
1.5.3