|
Yate
|
Information Element container. More...
#include <yateiax.h>
Public Member Functions | |
| IAXIEList () | |
| IAXIEList (const IAXFullFrame *frame, bool incoming=true) | |
| ~IAXIEList () | |
| bool | invalidIEList () const |
| void | clear () |
| bool | empty () |
| void | insertVersion () |
| bool | validVersion () |
| void | appendIE (IAXInfoElement *ie) |
| bool | appendIE (IAXIEList &src, IAXInfoElement::Type type) |
| void | appendNull (IAXInfoElement::Type type) |
| void | appendString (IAXInfoElement::Type type, const String &src) |
| void | appendString (IAXInfoElement::Type type, unsigned char *src, unsigned len) |
| void | appendNumeric (IAXInfoElement::Type type, u_int32_t value, u_int8_t len) |
| void | appendBinary (IAXInfoElement::Type type, unsigned char *data, unsigned len) |
| bool | createFromFrame (const IAXFullFrame *frame, bool incoming=true) |
| void | toBuffer (DataBlock &buf) |
| void | toString (String &dest, const char *indent=0) |
| IAXInfoElement * | getIE (IAXInfoElement::Type type, bool remove=false) |
| bool | getString (IAXInfoElement::Type type, String &dest) |
| bool | getNumeric (IAXInfoElement::Type type, u_int32_t &dest) |
| bool | getBinary (IAXInfoElement::Type type, DataBlock &dest) |
Information Element container.
Management class for a list of Information Elements
| IAXIEList | ( | ) |
Constructor
Referenced by appendIE().
| IAXIEList | ( | const IAXFullFrame * | frame, |
| bool | incoming = true ) |
Constructor. Construct the list from an IAXFullFrame object
| frame | Source object |
| incoming | True if it is an incoming frame |
| ~IAXIEList | ( | ) |
Destructor
|
inline |
Append a binary Information Element to the list
| type | The type of the IAXInfoElementBinary to append |
| data | The source data to append |
| len | Source length |
|
inline |
Append an Information Element taken from another list
| src | Source IE list |
| type | IE to move |
References appendIE(), getIE(), and IAXIEList().
|
inline |
Append an Information Element to the list
| ie | IAXInfoElement pointer to append |
Referenced by appendIE().
|
inline |
Append an Information Element to the list
| type | The type of the IAXInfoElement to append |
|
inline |
Append a numeric Information Element to the list
| type | The type of the IAXInfoElementNumeric to append |
| value | The source |
| len | Source length |
|
inline |
Append a text Information Element to the list from a String
| type | The type of the IAXInfoElementString to append |
| src | The source |
References String::c_str(), and String::length().
|
inline |
Append a text Information Element to the list from a buffer
| type | The type of the IAXInfoElementString to append |
| src | The source |
| len | Source length |
|
inline |
Clear the list
| bool createFromFrame | ( | const IAXFullFrame * | frame, |
| bool | incoming = true ) |
Construct the list from an IAXFullFrame object. On exit m_invalidIEList will contain the opposite of the returned value
| frame | Source object |
| incoming | True if it is an incoming frame |
|
inline |
Check if the list is empty
| bool getBinary | ( | IAXInfoElement::Type | type, |
| DataBlock & | dest ) |
Get the data of a list item into a DataBlock. Before any operation dest is cleared
| type | The desired type |
| dest | The destination buffer |
| IAXInfoElement * getIE | ( | IAXInfoElement::Type | type, |
| bool | remove = false ) |
Retrieve an IAXInfoElement from the list
| type | The desired type |
| remove | True to remove from list. The caller will own the object |
Referenced by appendIE().
| bool getNumeric | ( | IAXInfoElement::Type | type, |
| u_int32_t & | dest ) |
Get the data of a list item into a numeric destination
| type | The desired type |
| dest | The destination |
Referenced by validVersion().
| bool getString | ( | IAXInfoElement::Type | type, |
| String & | dest ) |
| void insertVersion | ( | ) |
Insert a VERSION Information Element in the list if not already done
|
inline |
Get the invalid IE list flag
| void toBuffer | ( | DataBlock & | buf | ) |
Construct a buffer from this list
| buf | Destination buffer |
| void toString | ( | String & | dest, |
| const char * | indent = 0 ) |
Add this list to a string
| dest | Destination string |
| indent | Optional indent for each element |
|
inline |
Get the validity of the VERSION Information Element of the list if any
References getNumeric().