|
SNMP++
3.3.4
|
Counter64 Class encapsulates two unsigned integers into a a single entity. More...
#include <ctr64.h>


Public Member Functions | |
| Counter64 (unsigned long hi, unsigned long lo) | |
| Constructs a valid Counter64 with the given values. More... | |
| Counter64 (pp_uint64 val=0) | |
| Constructs a valid Counter64 with the given value (default 0). More... | |
| Counter64 (const Counter64 &ctr64) | |
| Copy constructor. More... | |
| ~Counter64 () | |
| Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden). More... | |
| operator pp_uint64 () const | |
| unsigned long | high () const |
| Get the high 32 bit part. More... | |
| unsigned long | low () const |
| Get the low 32 bit part. More... | |
| void | set_high (const unsigned long h) |
| Set the high 32 bit part. More... | |
| void | set_low (const unsigned long l) |
| Set the low 32 bit part. More... | |
| const char * | get_printable () const |
| Get a printable ASCII string representing the current value. More... | |
| SmiUINT32 | get_syntax () const |
| Get the Syntax of the object. More... | |
| SnmpSyntax * | clone () const |
| Clone the object. More... | |
| SnmpSyntax & | operator= (const SnmpSyntax &val) |
| Overloaded assignement 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... | |
| Counter64 & | operator= (const Counter64 &ctr64) |
| Assign a Counter64 to a Counter64. More... | |
| Counter64 & | operator= (const pp_uint64 i) |
| Assign a unsigned long to a Counter64. More... | |
Public Member Functions inherited from SnmpSyntax | |
| virtual | ~SnmpSyntax () |
| Virtual destructor to ensure deletion of derived classes... More... | |
Protected Attributes | |
| SNMP_PP_MUTABLE char | output_buffer [CTR64OUTBUF] |
| SNMP_PP_MUTABLE bool | m_changed |
Protected Attributes inherited from SnmpSyntax | |
| SmiVALUE | smival |
Additional Inherited Members | |
Protected Member Functions inherited from SnmpSyntax | |
| SnmpSyntax () | |
Counter64 Class encapsulates two unsigned integers into a a single entity.
This type has is available in SNMPv2 but may be used anywhere where needed.
|
inline |
Constructs a valid Counter64 with the given values.
| hi | - value for the high 32 bits (0..MAX_UINT32) |
| lo | - value for the low 32 bits (0..MAX_UINT32) |
Definition at line 100 of file ctr64.h.
References sNMP_SYNTAX_CNTR64.
|
inline |
Constructs a valid Counter64 with the given value (default 0).
| val | - value (full 64-bit) |
Definition at line 113 of file ctr64.h.
References sNMP_SYNTAX_CNTR64, and UINT32_MAX.
|
inline |
Copy constructor.
| ctr64 | - value |
Definition at line 126 of file ctr64.h.
References SmiVALUE::hNumber, SnmpSyntax::smival, sNMP_SYNTAX_CNTR64, and SmiVALUE::value.
|
inline |
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden).
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Return the space needed for serialization.
Implements SnmpSyntax.
|
virtual |
Get a printable ASCII string representing the current value.
Implements SnmpSyntax.
|
inlinevirtual |
Get the Syntax of the object.
Implements SnmpSyntax.
Definition at line 222 of file ctr64.h.
References sNMP_SYNTAX_CNTR64.
|
inline |
Get the high 32 bit part.
Definition at line 179 of file ctr64.h.
Referenced by operator=().
|
inline |
Get the low 32 bit part.
Definition at line 186 of file ctr64.h.
Referenced by operator=().
|
virtual |
Overloaded assignement operator.
| val | - Try to map the given value to a Counter64 and assign it |
Implements SnmpSyntax.
Assign a unsigned long to a Counter64.
| i | - The new low part. The high part is cleared. |
Definition at line 281 of file ctr64.h.
References UINT32_MAX.
|
inline |
|
inline |
|
inlinevirtual |
|
protected |
|
protected |