#include <snmp.h>
Inheritance diagram for PSNMP_VarBind:
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. | |
PObject * | Clone () const |
Create a copy of the class on the heap. | |
Public Attributes | |
PRFC1155_ObjectName | m_name |
PRFC1155_ObjectSyntax | m_value |
PSNMP_VarBind::PSNMP_VarBind | ( | unsigned | tag = UniversalSequence , |
|
TagClass | tagClass = UniversalTagClass | |||
) |
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.
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.
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.