#include <AttributeData.h>
Inheritance diagram for aja::AttributeData:
Public Member Functions | |
AttributeData (byte_t id, const void *buffer, unsigned int size) | |
AttributeData (byte_t id) | |
construct a data attribute | |
virtual | ~AttributeData () |
destruct a data item.This destructor dont free allocated data space.For this operation you must call clearData(). | |
buffer_t | getData () |
Function return pointer to data buffer. | |
dbyte_t | getDataSize () |
Function return size of data buffer. | |
void | clearData () |
Function clear stored data. | |
bool | copyData (buffer_t buffer, unsigned int size) |
Fuction copy data into inner buffer. | |
bool | copyData (const char *buffer, unsigned int size) |
Fuction copy char[] data into inner buffer. | |
bool | setData (buffer_t buffer, unsigned int size) |
Function set data as inner store buffer. | |
number_t | getItemSize () |
Function return complete size of data attribute in bytes. | |
bool | parseAttrData (buffer_t buffer, unsigned int size, unsigned int &pos) |
Function parse data for data attribute. | |
void | getValueStr (std::string &out) |
Abstract function put into string parameter his value in string form. | |
bool | buildAja (OutputBuffer &out) |
Function build AJA binary form of Data Attribute. | |
Protected Attributes | |
dbyte_t | mDataSize |
buffer_t | mData |
Data attribute store a data like a array of bytes. Class contain pointer to this array 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 a data attribute
|
|
destruct a data item.This destructor dont free allocated data space.For this operation you must call clearData().
|
|
Function build AJA binary form of Data Attribute.
Reimplemented from aja::AttributeItem. |
|
Function clear stored data. This class store data at buffer created in heap.This function clear data and dealocate memory block of buffer. |
|
Fuction copy char[] data into inner buffer. Function first dealocate old data buffer,then allocate new space for new buffer and copy data into new inner buffer.Size of copied data can be maximal 16bit(0xFFFF) long.
|
|
Fuction copy data into inner buffer. Function first dealocate old data buffer,then allocate new space for new buffer and copy data into new inner buffer.Size of copied data can be maximal 16bit(0xFFFF) long.
|
|
Function return pointer to data buffer.
|
|
Function return size of data buffer.
|
|
Function return complete size of data attribute in bytes.
Reimplemented from aja::AttributeItem. |
|
Abstract function put into string parameter his value in string form. In this overriden function is code for every child attribute type who convert his value to string form.
Implements aja::AttributeItem. |
|
Function parse data for data attribute. This function is overriden and is called when is needed parse data for DATA ATTRIBUTE.Function dont copied parsed data, only set inner pointer to parsed data.When parsed data are deallocated, attribute lost your data.
Implements aja::AttributeItem. |
|
Function set data as inner store buffer. Function only set inner pointers to this set buffer. Size of copied data can be maximal 16bit(0xFFFF)
|
|
|
|
|