SNMP++
3.3.11
|
32 bit unsigned integer class. More...
#include <integer.h>
Public Member Functions | |
SnmpUInt32 (const unsigned long i=0) | |
Constructor with value (defaults to 0). More... | |
SnmpUInt32 (const SnmpUInt32 &c) | |
Copy constructor. More... | |
virtual | ~SnmpUInt32 () |
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden). More... | |
virtual SmiUINT32 | get_syntax () const |
Return the syntax. More... | |
SnmpUInt32 & | operator= (const unsigned long i) |
Overloaded assignment for unsigned longs. More... | |
SnmpUInt32 & | operator= (const SnmpUInt32 &uli) |
Overloaded assignment for SnmpUInt32. More... | |
SnmpSyntax & | operator= (const SnmpSyntax &val) |
Map other SnmpSyntax objects to SnmpUInt32. More... | |
operator unsigned long () const | |
Behave like an unsigned long. More... | |
virtual const char * | get_printable () const |
Get a printable ASCII value. More... | |
virtual SnmpSyntax * | clone () const |
Clone operator. More... | |
bool | valid () const |
Return validity of the object. More... | |
int | get_asn1_length () const |
Return the space needed for serialization. More... | |
void | clear () |
Reset the object. More... | |
Public Member Functions inherited from SnmpSyntax | |
virtual | ~SnmpSyntax () |
Virtual destructor to ensure deletion of derived classes... More... | |
Protected Attributes | |
bool | valid_flag |
SNMP_PP_MUTABLE char | output_buffer [INTOUTBUF] |
SNMP_PP_MUTABLE bool | m_changed |
Protected Attributes inherited from SnmpSyntax | |
SmiVALUE | smival |
Additional Inherited Members | |
Protected Member Functions inherited from SnmpSyntax | |
SnmpSyntax () | |
32 bit unsigned integer class.
The integer class allows all the functionality of the various integers but is contained in a Value object for consistency among the various types. class objects may be set or get into Vb objects.
|
inline |
Constructor with value (defaults to 0).
i | - initial value |
Definition at line 87 of file integer.h.
References sNMP_SYNTAX_UINT32.
|
inline |
Copy constructor.
c | - initial value |
Definition at line 99 of file integer.h.
References SnmpSyntax::smival, sNMP_SYNTAX_UINT32, SmiVALUE::uNumber, and SmiVALUE::value.
|
inlinevirtual |
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden).
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Return the space needed for serialization.
Implements SnmpSyntax.
|
virtual |
|
inlinevirtual |
Return the syntax.
Implements SnmpSyntax.
Reimplemented in Gauge32, TimeTicks, and Counter32.
Definition at line 116 of file integer.h.
References sNMP_SYNTAX_UINT32.
|
inline |
|
inline |
Overloaded assignment for unsigned longs.
i | - new value |
Definition at line 124 of file integer.h.
Referenced by Counter32::operator=(), Gauge32::operator=(), and TimeTicks::operator=().
|
inline |
Overloaded assignment for SnmpUInt32.
uli | - new value |
Definition at line 138 of file integer.h.
References SnmpSyntax::smival, SmiVALUE::uNumber, valid_flag, and SmiVALUE::value.
|
virtual |
Map other SnmpSyntax objects to SnmpUInt32.
Implements SnmpSyntax.
|
inlinevirtual |
Return validity of the object.
An SnmpUInt32 will only be invalid after a failed asignment of another SnmpSyntax object.
Implements SnmpSyntax.
|
protected |
|
protected |
|
protected |
Definition at line 193 of file integer.h.
Referenced by Counter32::operator=(), Gauge32::operator=(), TimeTicks::operator=(), and operator=().