#include <datablockclass.h>
Collaboration diagram for DataBlockClass:
Public Member Functions | |
DataBlockClass () | |
DataBlockClass (struct DataBlock *dataBlock) | |
DataBlockClass (char *data, int size) | |
~DataBlockClass () | |
DataBlock * | detatch () |
char * | getData () |
int | getSize () |
void | setData (char *data, int size) |
The base unit data used in communication among Processes. This class provides several constructions and destruction for struct DataBlock. The underlying struct exists to ease communciation of data to other languages.
|
Default constructor.
|
|
Construct from an existing dataBlock. No new memory is allocated. Destruction of the struct DataBlock will now be handled by the newly constructed DataBlockClass
|
|
Construct a DataBlockClass from existing data. Internally new memory is allocated and the data is copyed.
|
|
|
|
Release the internal struct DataBlock. This ensures that destruction of the DataBlockClass will not destruct the struct DataBlock.
|
|
|
|
|
|
Frees any current data and copies the new data.
|