|
Dangerous SNMP
|
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... | |
This defines a variable binding, or "varbind".
This maps an OID to a particular value.
|
inline |
OID constructor; the OID is set accordingly and the Variant is null.
| oid | The value of the OID. |
|
inline |
OID/value constructor; the OID is set accordingly and the Variant is as well.
| oid | The value of the OID. |
| value | The value of variant. |
| Variant value |
This is its value.
Since the OID can be mapped to any kind of value, a Variant is used.