OPAL  Version 3.10.4
IAX2IeDateAndTime Class Reference

#include <ies.h>

Inheritance diagram for IAX2IeDateAndTime:
IAX2Ie IAX2IeDateTime

Public Member Functions

construction/destruction
 IAX2IeDateAndTime (BYTE length, BYTE *srcData)
 IAX2IeDateAndTime (const PTime &newValue)
 IAX2IeDateAndTime ()
Worker methods
virtual void PrintOn (ostream &str) const
virtual BYTE GetLengthOfData ()
void SetData (const PTime &newData)
PTime ReadData ()

Protected Member Functions

virtual void WriteBinary (BYTE *data)

Protected Attributes

PTime dataValue

Detailed Description

An Information Element that contains the date and time, from a 32 bit long representation


Constructor & Destructor Documentation

IAX2IeDateAndTime::IAX2IeDateAndTime ( BYTE  length,
BYTE *  srcData 
)

Constructor - read data from source array.

Contents are valid if source array is valid.

IAX2IeDateAndTime::IAX2IeDateAndTime ( const PTime &  newValue) [inline]

Construct to an initialized value

References SetData().

Constructor to an invalid and empty result


Member Function Documentation

virtual BYTE IAX2IeDateAndTime::GetLengthOfData ( ) [inline, virtual]

return the number of bytes to hold this data element

Reimplemented from IAX2Ie.

virtual void IAX2IeDateAndTime::PrintOn ( ostream &  str) const [virtual]

print this class (nicely) to the designated stream

Reimplemented from IAX2Ie.

Reimplemented in IAX2IeDateTime.

PTime IAX2IeDateAndTime::ReadData ( ) [inline]

Report the value of the stored data for this class

Reimplemented from IAX2Ie.

References dataValue.

void IAX2IeDateAndTime::SetData ( const PTime &  newData) [inline]

Take the supplied data and copy contents into this IE

References dataValue, and IAX2Ie::validData.

Referenced by IAX2IeDateAndTime().

virtual void IAX2IeDateAndTime::WriteBinary ( BYTE *  data) [protected, virtual]

Take the data value for this particular IAX2Ie and copy into the memory region.

Reimplemented from IAX2Ie.


Field Documentation

PTime IAX2IeDateAndTime::dataValue [protected]

The actual data stored in a IAX2IeDateAndTime class

Referenced by ReadData(), SetData(), and IAX2IeDateTime::StoreDataIn().


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