Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Gauge32 Class Reference

#include <gauge.h>

Inheritance diagram for Gauge32:

[legend]
Collaboration diagram for Gauge32:
[legend]
List of all members.

Detailed Description

The gauge class allows all the functionality of unsigned integers but is recognized as a distinct SMI type.

Gauge32 objects may be set or get into Vb objects.

Definition at line 81 of file gauge.h.

Public Member Functions

 Gauge32 ()
 Constructs a valid Gauge32 with value 0.

 Gauge32 (const unsigned long ul)
 Constructs a valid Gauge32 with the given value.

 Gauge32 (const Gauge32 &g32)
 Copy constructor.

 ~Gauge32 ()
 Destructor (ensure that SnmpUInt32::~SnmpUInt32() is overridden).

SmiUINT32 get_syntax () const
 Get the Syntax of the object.

SnmpSyntaxclone () const
 Clone the object.

Gauge32operator= (const Gauge32 &uli)
 Assign a Gauge32 to a Gauge32.

Gauge32operator= (const unsigned long ul)
 Assign a unsigned long to a Gauge32.

 operator unsigned long ()
 Cast a Gauge32 to unsigned long.


Constructor & Destructor Documentation

Gauge32::Gauge32  )  [inline]
 

Constructs a valid Gauge32 with value 0.

Definition at line 90 of file gauge.h.

References sNMP_SYNTAX_GAUGE32.

Gauge32::Gauge32 const unsigned long  ul  )  [inline]
 

Constructs a valid Gauge32 with the given value.

Parameters:
ul - value (0..MAX_UINT32)

Definition at line 97 of file gauge.h.

References sNMP_SYNTAX_GAUGE32.

Gauge32::Gauge32 const Gauge32 g32  ) 
 

Copy constructor.

Parameters:
g32 - value

Gauge32::~Gauge32  )  [inline]
 

Destructor (ensure that SnmpUInt32::~SnmpUInt32() is overridden).

Definition at line 110 of file gauge.h.


Member Function Documentation

SnmpSyntax* Gauge32::clone  )  const [inline, virtual]
 

Clone the object.

Returns:
A cloned Gauge32 object allocated through new.

Reimplemented from SnmpUInt32.

Definition at line 126 of file gauge.h.

SmiUINT32 Gauge32::get_syntax  )  const [inline, virtual]
 

Get the Syntax of the object.

Returns:
This method always returns sNMP_SYNTAX_GAUGE32.

Reimplemented from SnmpUInt32.

Definition at line 119 of file gauge.h.

References SmiUINT32, and sNMP_SYNTAX_GAUGE32.

Gauge32::operator unsigned long  )  [inline]
 

Cast a Gauge32 to unsigned long.

Returns:
Current value as unsigned long.

Definition at line 150 of file gauge.h.

Gauge32& Gauge32::operator= const unsigned long  ul  )  [inline]
 

Assign a unsigned long to a Gauge32.

Parameters:
ul - New value

Reimplemented from SnmpUInt32.

Definition at line 141 of file gauge.h.

Gauge32& Gauge32::operator= const Gauge32 uli  )  [inline]
 

Assign a Gauge32 to a Gauge32.

Definition at line 133 of file gauge.h.

References SnmpSyntax::smival, and SmiVALUE::value.


The documentation for this class was generated from the following file:
Generated on Tue Jan 4 22:42:18 2005 for SNMP++ by doxygen 1.3.2