PSNMP_VarBind Class Reference

#include <snmp.h>

Inheritance diagram for PSNMP_VarBind:

PASN_Sequence PASN_Object PObject List of all members.

Public Member Functions

 PSNMP_VarBind (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

PRFC1155_ObjectName m_name
PRFC1155_ObjectSyntax m_value

Constructor & Destructor Documentation

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


Member Function Documentation

PObject* PSNMP_VarBind::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.

Comparison PSNMP_VarBind::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_VarBind::Decode ( PASN_Stream strm  )  [virtual]

Reimplemented from PASN_Sequence.

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

Reimplemented from PASN_Sequence.

PINDEX PSNMP_VarBind::GetDataLength (  )  const [virtual]

Reimplemented from PASN_Sequence.

void PSNMP_VarBind::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

PRFC1155_ObjectName PSNMP_VarBind::m_name

PRFC1155_ObjectSyntax PSNMP_VarBind::m_value


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