#include <ElementParent.h>
Inheritance diagram for aja::ElementParent:
Public Member Functions | |
ElementParent (number_t id) | |
Construct empty parent element with current ID. | |
~ElementParent () | |
destroy parent element and his child elements. | |
void | clearChilds () |
Function destroy all child elements. | |
number_t | getChildsCount () |
Function get count of all child elements. | |
number_t | getChildsCount (number_t id) |
Function get count of all child elements where occurences ID. | |
ElementItem * | getChild (unsigned int index) |
Function return child element at current position in array. | |
ElementItem * | getChildByID (number_t id) |
Function return first child element of current ID. | |
bool | addChild (ElementItem *element) |
Function insert new child element. | |
number_t | getDataSize () |
Function return size of data in parent element. | |
bool | buildAja (OutputBuffer &out) |
Function build ElementItem AJA binary form. | |
bool | parseElmData (buffer_t buffer, unsigned int size, unsigned int &pos) |
function is called when is needed parse data part of parent element. | |
std::string | getElementContent () |
Function return content of element like a string. | |
number_t | getItemSize () |
function return complete size of element item(size of header + size of atributes + data size) | |
Protected Attributes | |
elementArray_t | mChildElements |
array of child elements |
Class contain functions for manipulating with childs, for parsing etc... Class contain inner special array who contain child elements.
|
Construct empty parent element with current ID.
|
|
destroy parent element and his child elements.
|
|
Function insert new child element.
|
|
Function build ElementItem AJA binary form. In this function is implemented build process of every ElementItem child like ElementNumber, ElementParent etc.
Reimplemented from aja::ElementItem. |
|
Function destroy all child elements.
|
|
Function return child element at current position in array. When dont exist or array is smaller like index, is returned NULL.
Reimplemented from aja::ElementItem. |
|
Function return first child element of current ID.
Reimplemented from aja::ElementItem. |
|
Function get count of all child elements where occurences ID.
Reimplemented from aja::ElementItem. |
|
Function get count of all child elements.
Reimplemented from aja::ElementItem. |
|
Function return size of data in parent element. Function go throught all element's child items and calculate size.
|
|
Function return content of element like a string.
Implements aja::ElementItem. |
|
function return complete size of element item(size of header + size of atributes + data size)
Reimplemented from aja::ElementItem. |
|
function is called when is needed parse data part of parent element. This function parse all childs elements in parent element and add it into inner array of parent element. Size of data part is limited.Sum of all childs data must be maximal 32bit unsigned int(0xFFFFFFFF)
Implements aja::ElementItem. |
|
array of child elements
|