Dangerous SNMP
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
VarBind Class Reference

This defines a variable binding, or "varbind". More...

#include <types.hpp>

Public Member Functions

 VarBind ()
 Default constructor; both the OID and the Variant are null values.
 
 VarBind (const VarBind &varbind)
 Copy constructor; this copies the contents of another VarBind.
 
 VarBind (const NumericOid &oid)
 OID constructor; the OID is set accordingly and the Variant is null. More...
 
 VarBind (const NumericOid &oid, const Variant &value)
 OID/value constructor; the OID is set accordingly and the Variant is as well. More...
 
 ~VarBind ()
 TODO.
 

Public Attributes

NumericOid oid
 This is the OID.
 
Variant value
 This is its value. More...
 

Detailed Description

This defines a variable binding, or "varbind".

This maps an OID to a particular value.

Constructor & Destructor Documentation

VarBind ( const NumericOid oid)
inline

OID constructor; the OID is set accordingly and the Variant is null.

Parameters
oidThe value of the OID.
VarBind ( const NumericOid oid,
const Variant value 
)
inline

OID/value constructor; the OID is set accordingly and the Variant is as well.

Parameters
oidThe value of the OID.
valueThe value of variant.

Member Data Documentation

Variant value

This is its value.

Since the OID can be mapped to any kind of value, a Variant is used.


The documentation for this class was generated from the following file: