#include <AttributeItem.h>
Inheritance diagram for aja::AttributeItem:
Public Member Functions | |
AttributeItem (byte_t id, attributeType_t type) | |
Constructor create attribute of current type and ID. | |
virtual | ~AttributeItem () |
attributeType_t | getAttrType () |
Function return a type of Attribute. | |
byte_t | getAttrId () |
Function return attribute's ID. | |
void | setAttrId (byte_t id) |
Function set ID of attribute. | |
virtual bool | buildAja (OutputBuffer &out) |
Function build AJA binary form of Attrs/. | |
virtual number_t | getItemSize () |
Function return complete size of attribute item(size of attribute's header + data size). | |
virtual bool | parseAttrData (buffer_t buffer, unsigned int size, unsigned int &pos)=0 |
abstract function contain code for parsing data of attribute. | |
virtual void | getValueStr (std::string &out)=0 |
Abstract function put into string parameter his value in string form. | |
Static Public Member Functions | |
static AttributeItem * | parseAttribute (const buffer_t buffer, unsigned int size, unsigned int &pos) |
Parse data and create attribute instance by parsed data. | |
Protected Attributes | |
byte_t | mAttrId |
ID of attribute. | |
attributeType_t | mAttrType |
Attribute type. |
This class is inherited from Item class.It is basic class for all ITM_ATTRIBUTE items.This class have abstract function parseAttrData() and into this funciton you add your won code for parsing data part of attribue
|
Constructor create attribute of current type and ID.
|
|
|
|
Function build AJA binary form of Attrs/. In this function is implemented build process of every attribute item child like AttributeNumber, AttributeData, etc.
Implements aja::Item. Reimplemented in aja::AttributeData, and aja::AttributeNumber. |
|
Function return attribute's ID.
|
|
Function return a type of Attribute.
|
|
Function return complete size of attribute item(size of attribute's header + data size).
Implements aja::Item. Reimplemented in aja::AttributeData, and aja::AttributeNumber. |
|
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.
Implemented in aja::AttributeData, and aja::AttributeNumber. |
|
abstract function contain code for parsing data of attribute. This function take pointer to data(buffer), size of data and reference to position in data buffer. Into this function put your own code for parsing data part of attribute.
Implemented in aja::AttributeData, and aja::AttributeNumber. |
|
Parse data and create attribute instance by parsed data. This is main process of parsing attributes contained checking of attribute, factoring current type and parsing data part of attribute.Result is new created instance of attribute on heap.Function after parsing set pos reference after parsed data.
|
|
Function set ID of attribute.
|
|
ID of attribute.
|
|
Attribute type.
|