This reference page is linked to from the following overview topics: Application Data.
An application/plugin specific custom data that can be attached to animatables.
Instances of this class store custom data defined by plugins and are attached to animatables when plugins call Animatable::AddAppDataChunk. Plugins don't need to instanciate directly objects of type AppDataChunk, but can get to the instances stored on animatables by calling Animatable::GetAppDataChunk.
#include <AppDataChunk.h>
Public Member Functions |
|
CoreExport | AppDataChunk (Class_ID cid, SClass_ID sid, DWORD sbid, DWORD len, void *data) |
Constructor. |
|
CoreExport | AppDataChunk () |
Constructor The length of the data buffer is
set to 0 and the data pointer set to NULL. |
|
CoreExport | ~AppDataChunk () |
Destructor. |
|
CoreExport IOResult | Load (ILoad *iload) |
Loads this
AppDataChunk. |
|
CoreExport IOResult | Save (ISave *isave) |
Saves this
AppDataChunk. |
|
Public Attributes |
|
Class_ID | classID |
The Class_ID of the owner of this chunk.
|
|
SClass_ID | superClassID |
The SuperClassID of the owner of this chunk.
|
|
DWORD | subID |
An extra ID that lets the owner identify its
sub chunks. |
|
DWORD | length |
The length of the data in bytes. |
|
void * | data |
The chunk data itself. |
CoreExport AppDataChunk | ( | Class_ID | cid, |
SClass_ID | sid, | ||
DWORD | sbid, | ||
DWORD | len, | ||
void * | data | ||
) |
Constructor.
The data members are initialized to the values passed.
cid | - The Class_ID of the owner of the custom data. |
sid | - The SuperClassID of the owner of the custom data. |
sbid | - An extra ID that lets the owner identify its sub-custom-data (chunks). |
len | - The length of the data in bytes. |
data | - Pointer to the actual data. The data should be allocated on the heap by client code using MAX_malloc(). This will allow the system to free it safely (using MAX_free()). MAX_malloc() and MAX_free() are memory management routines implemented by the system. |
CoreExport AppDataChunk | ( | ) |
Constructor The length of the data buffer is set to 0 and the data pointer set to NULL.
CoreExport ~AppDataChunk | ( | ) |
Destructor.
The data buffer is freed using MAX_free(). This implies that plug-ins must use MAX_malloc() to allocate it.
Loads this AppDataChunk.
The system implements this method to load the AppDataChunk from disk.
Saves this AppDataChunk.
The system implements this method to save the AppDataChunk to disk.
The Class_ID of the owner of this chunk.
SClass_ID superClassID |
The SuperClassID of the owner of this chunk.
DWORD subID |
An extra ID that lets the owner identify its sub chunks.
DWORD length |
The length of the data in bytes.
void* data |
The chunk data itself.