PSNMP_PDU Class Reference

#include <snmp.h>

Inheritance diagram for PSNMP_PDU:

PASN_Sequence PASN_Object PObject PSNMP_GetNextRequest_PDU PSNMP_GetRequest_PDU PSNMP_GetResponse_PDU PSNMP_SetRequest_PDU List of all members.

Public Member Functions

 PSNMP_PDU (unsigned tag=UniversalSequence, TagClass tagClass=UniversalTagClass)
PINDEX GetDataLength () const
PBoolean Decode (PASN_Stream &strm)
void Encode (PASN_Stream &strm) const
void PrintOn (ostream &strm) const
 Output the contents of the object to the stream.
Comparison Compare (const PObject &obj) const
 Compare the two objects and return their relative rank.
PObjectClone () const
 Create a copy of the class on the heap.

Public Attributes

PASN_Integer m_request_id
PASN_Integer m_error_status
PASN_Integer m_error_index
PSNMP_VarBindList m_variable_bindings

Constructor & Destructor Documentation

PSNMP_PDU::PSNMP_PDU ( unsigned  tag = UniversalSequence,
TagClass  tagClass = UniversalTagClass 
)


Member Function Documentation

PObject* PSNMP_PDU::Clone (  )  const [virtual]

Create a copy of the class on the heap.

The exact semantics of the descendent class determine what is required to make a duplicate of the instance. Not all classes can even do a clone operation.

The main user of the clone function is the PDictionary class as it requires copies of the dictionary keys.

The default behaviour is for this function to assert.

Returns:
pointer to new copy of the class instance.

Reimplemented from PASN_Sequence.

Reimplemented in PSNMP_GetRequest_PDU, PSNMP_GetNextRequest_PDU, PSNMP_GetResponse_PDU, and PSNMP_SetRequest_PDU.

Comparison PSNMP_PDU::Compare ( const PObject obj  )  const [virtual]

Compare the two objects and return their relative rank.

This function is usually overridden by descendent classes to yield the ranking according to the semantics of the object.

The default function is to use the CompareObjectMemoryDirect() function to do a byte wise memory comparison of the two objects.

Returns:
LessThan, EqualTo or GreaterThan according to the relative rank of the objects.

Reimplemented from PASN_Sequence.

PBoolean PSNMP_PDU::Decode ( PASN_Stream strm  )  [virtual]

Reimplemented from PASN_Sequence.

void PSNMP_PDU::Encode ( PASN_Stream strm  )  const [virtual]

Reimplemented from PASN_Sequence.

PINDEX PSNMP_PDU::GetDataLength (  )  const [virtual]

Reimplemented from PASN_Sequence.

void PSNMP_PDU::PrintOn ( ostream &  strm  )  const [virtual]

Output the contents of the object to the stream.

The exact output is dependent on the exact semantics of the descendent class. This is primarily used by the standard operator<< function.

The default behaviour is to print the class name.

Reimplemented from PASN_Sequence.


Member Data Documentation

PASN_Integer PSNMP_PDU::m_error_index

PASN_Integer PSNMP_PDU::m_error_status

PASN_Integer PSNMP_PDU::m_request_id

PSNMP_VarBindList PSNMP_PDU::m_variable_bindings


The documentation for this class was generated from the following file:
Generated on Fri Oct 14 01:44:13 2011 for PTLib by  doxygen 1.4.7