IAXInfoElementNumeric Class Reference

A single IAX2 numeric Information Element. More...

#include <yateiax.h>

Inheritance diagram for IAXInfoElementNumeric:

IAXInfoElement RefObject GenObject

List of all members.

Public Member Functions

 IAXInfoElementNumeric (Type type, u_int32_t val, u_int8_t len)
virtual ~IAXInfoElementNumeric ()
int length () const
u_int32_t data () const
virtual void toBuffer (DataBlock &buf)
virtual void toString (String &buf)


Detailed Description

A single IAX2 numeric Information Element.

This class holds a single Information Element with 1, 2 or 4 byte(s) length data


Constructor & Destructor Documentation

IAXInfoElementNumeric ( Type  type,
u_int32_t  val,
u_int8_t  len 
)

Constructor

Parameters:
type Type of this IE
val Source value to construct this IE
len Value length

virtual ~IAXInfoElementNumeric (  )  [inline, virtual]

Destructor


Member Function Documentation

int length (  )  const [inline]

Get the data length

Returns:
The data length

u_int32_t data (  )  const [inline]

Get the data

Returns:
The data

virtual void toBuffer ( DataBlock buf  )  [virtual]

Constructs a buffer containing this Information Element

Parameters:
buf Destination buffer

Reimplemented from IAXInfoElement.

virtual void toString ( String buf  )  [virtual]

Add this element to a string

Parameters:
buf Destination string

Reimplemented from IAXInfoElement.


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 16:18:52 2008 for Yate by  doxygen 1.5.6