#include <ElementData.h>
Inheritance diagram for aja::ElementData:
Public Member Functions | |
ElementData (number_t id, const void *buffer, unsigned int size) | |
construct empty data element with current id | |
ElementData (number_t id) | |
construct empty data element with current id | |
virtual | ~ElementData () |
destroy element. Before destroying is necessary call clearData() when data buffer was allocated by this class(copyData for example) | |
buffer_t | getData () |
Function return pointer to data buffer. | |
number_t | getDataSize () |
Function return size of data. | |
void | clearData () |
Function erase-free data of element. | |
bool | copyData (buffer_t buffer, number_t size) |
Function copy data into element. | |
bool | copyData (const char *buffer, unsigned int size) |
Function copy char[] into element. | |
bool | setData (buffer_t buffer, number_t size) |
Function set data for element. | |
bool | setData (const char *buffer, unsigned int size) |
Function set data for element. | |
bool | buildAja (OutputBuffer &out) |
Function build AJA binary form of DATA ELEMENT. | |
bool | parseElmData (buffer_t buffer, unsigned int size, unsigned int &pos) |
Function parse data in element. | |
std::string | getElementContent () |
Function return content of data element like string. | |
number_t | getItemSize () |
Function return complete size of element data. | |
Protected Attributes | |
buffer_t | mData |
pointer to buffer containing data od element | |
number_t | mSize |
size of data buffer |
class representing data element for storing, parsing and manipulating with any data in element.
This class contain inner pointer to data buffer and his size.Before you destroy this class, you must clear data because class dont deallocate inner buffer. It is needed because element can contain pointer to data allocated by someone other(AML document for example).
|
construct empty data element with current id Data are referenced, not copied.Be carrefull when you free these data.Then this element dont work good.
|
|
construct empty data element with current id
|
|
destroy element. Before destroying is necessary call clearData() when data buffer was allocated by this class(copyData for example)
|
|
Function build AJA binary form of DATA ELEMENT.
Reimplemented from aja::ElementItem. |
|
Function erase-free data of element. Function free allocated space for element data buffer. |
|
Function copy char[] into element. This function first erase element data when exist.Then allocate needed memory space and copy data form source buffer into this space.
|
|
Function copy data into element. This function first erase element data when exist.Then allocate needed memory space and copy data form source buffer into this space.
|
|
Function return pointer to data buffer.
|
|
Function return size of data.
|
|
Function return content of data element like string.
Implements aja::ElementItem. |
|
Function return complete size of element data.
Reimplemented from aja::ElementItem. |
|
Function parse data in element. Function dont allocate new memory-space. Function only set pointer to data.Be carefull, when parsed data are deallocated, element lost his data.
Implements aja::ElementItem. |
|
Function set data for element. This function first erase old data.Be carrefull, function dont create new space for data, only set element's inner members for using current data pointer and size
|
|
Function set data for element. This function first erase old data.Be carrefull, function dont create new space for data, only set element's inner members for using current data pointer and size
|
|
pointer to buffer containing data od element
|
|
size of data buffer
|