#include <Item.h>
Inheritance diagram for aja::Item:

Public Member Functions | |
| Item () | |
| construct a item | |
| Item (itemType_t type) | |
| construct a item with current type | |
| virtual | ~Item () |
| destructor of item | |
| itemType_t | getItemType () |
| Function return a type of item. | |
| Item * | getParent () |
| Function return parent of item. | |
| void | setParent (Item *parent) |
| Function set parent for this item. | |
| virtual number_t | getItemSize ()=0 |
| This function return complete size of item in bytes. | |
| virtual bool | buildAja (OutputBuffer &out)=0 |
| This function build binary AJA form of item. | |
Protected Attributes | |
| itemType_t | mItemType |
| member contain information about item type | |
| Item * | mParent |
| pointer to parent item in hierarchy tree | |
Class contain pointer to parent item and method for checking about element type.This class do nothing but from this class are ingerited other classes like ElementItem, AttributeItem or CommentItem.
|
|
construct a item
|
|
|
construct a item with current type
|
|
|
destructor of item
|
|
|
This function build binary AJA form of item. Every AJA item have in this function implemented his own binary-build code.Building is realized into OutputBuffer.In the end is in OutputBuffer complete builded binary form of item.
Implemented in aja::AttributeData, aja::AttributeItem, aja::AttributeNumber, aja::DocumentHeader, aja::ElementData, aja::ElementItem, aja::ElementNumber, aja::ElementParent, and aja::ElementString. |
|
|
This function return complete size of item in bytes. It is calculation of header size + data size. This function is abstract and every item type compute size by yourself. Computing code is situated in classes inherited from this Item class(like ElemenItem etc.)
Implemented in aja::AttributeData, aja::AttributeItem, aja::AttributeNumber, aja::DocumentHeader, aja::ElementData, aja::ElementItem, aja::ElementNumber, aja::ElementParent, and aja::ElementString. |
|
|
Function return a type of item.
|
|
|
Function return parent of item.
Reimplemented in aja::ElementItem. |
|
|
Function set parent for this item.
|
|
|
member contain information about item type
|
|
|
pointer to parent item in hierarchy tree
Reimplemented in aja::ElementItem. |
1.4.6