#include <DocumentHeader.h>
Inheritance diagram for aja::DocumentHeader:
Public Member Functions | |
DocumentHeader () | |
create document header for version 1.0 | |
byte_t | getVersion () |
Function return version of document. | |
number_t | getItemSize () |
function return a complete size of item. | |
bool | buildAja (OutputBuffer &out) |
Function build AJA binary form of document header. | |
std::string | getValueStr (const char *value_name) |
Function return value by name like string. | |
int | getValueInt (const char *value_name) |
Function return value by name like 32 bit integer. | |
bool | setValue (const char *value_name, const std::string &value) |
bool | setValue (const char *value_name, const char *value) |
Function create new value or when value exist then set it. | |
bool | setValue (const char *value_name, const int value) |
Function create new value or when value exist then set it. | |
transElm_t * | getTransElement (number_t elm_id) |
Function return pointer to Element in translation table by element's ID. | |
transElm_t * | getTransElement (const char *elm_name) |
Function return pointer to Element in translation table by element's name. | |
transAttr_t * | getTransAttribute (number_t elm_id, byte_t attr_id) |
Function return pointer to Attribute in translation table by attribute's ID. | |
transAttr_t * | getTransAttribute (number_t elm_id, const char *attr_name) |
Function return pointer to Attribute in translation table by attribute's name. | |
std::string | getAttrName (number_t elm_id, byte_t attr_id) |
Function return attribute's name from trans. table by ID. | |
std::string | getElmName (number_t elm_id) |
Function return element's name from trans. table by ID. | |
bool | setTransElement (number_t elm_id, const char *elm_name, elementType_t elm_type=ELM_STRING, const char *elm_desc="") |
Function set existing element in translation table or create new element's informations when dont exist in translation table. | |
bool | setTransAttr (number_t elm_id, byte_t attr_id, const char *attr_name, attributeType_t attr_type=ATTR_STRING, const char *attr_desc="") |
Function set existing atrribute in translation table or create new attribute's informations when dont exist in translation tab. | |
Static Public Member Functions | |
static DocumentHeader * | parseDocument (const buffer_t buffer, unsigned int size, unsigned int &pos) |
This function parse document header in buffer. |
This class contain all needed functions manipulating with document values and translation table. This class parse data to AJA-ML documents, convert from AJA-ML to XML and build AJA-ML document. Class contain information about version of AJA-ML document.
|
create document header for version 1.0
|
|
Function build AJA binary form of document header.
Implements aja::Item. |
|
Function return attribute's name from trans. table by ID.
|
|
Function return element's name from trans. table by ID.
|
|
function return a complete size of item.
Implements aja::Item. |
|
Function return pointer to Attribute in translation table by attribute's name.
|
|
Function return pointer to Attribute in translation table by attribute's ID.
|
|
Function return pointer to Element in translation table by element's name.
|
|
Function return pointer to Element in translation table by element's ID.
|
|
Function return value by name like 32 bit integer.
|
|
Function return value by name like string.
|
|
Function return version of document.
|
|
This function parse document header in buffer. Function start building of document header at current position in buffer.When data in buffer are incorrect,not complete or is occured other error in parsing, then is returned NULL, otherwise is returned pointer to DocumentHeader class.
|
|
Function set existing atrribute in translation table or create new attribute's informations when dont exist in translation tab.
|
|
Function set existing element in translation table or create new element's informations when dont exist in translation table.
|
|
Function create new value or when value exist then set it.
|
|
Function create new value or when value exist then set it.
|
|
|