Dangerous SNMP
|
An OidRegistrationEntry represents an OID that has been registered. More...
#include <agentx.hpp>
Public Types | |
enum | Type { OBJECT, INSTANCE, TREE } |
This represents the kind of OID that is being registered. More... | |
typedef std::function< bool(const NumericOid &oid, Variant &value)> | GetFunction |
The GetFunction is called when the value of an OID is requested. More... | |
typedef std::function< bool(const NumericOid &oid, NumericOid &nextOid, Variant &value)> | GetNextFunction |
The GetNextFunction is called when the next OID is requested. More... | |
Public Member Functions | |
OidRegistrationEntry () | |
Constructor. | |
Public Attributes | |
uint8_t | priority |
This is the priority of the OID. More... | |
Type | type |
This is the type of registration TODO TODO TODO. | |
GetFunction | getFunction |
This function will be called when the value of the OID is requested. | |
GetNextFunction | getNextFunction |
This function will be called when the next OID is requested. | |
An OidRegistrationEntry represents an OID that has been registered.
This contains:
The exact behavior depends on the Type:
typedef std::function<bool(const NumericOid& oid, Variant& value)> GetFunction |
The GetFunction is called when the value of an OID is requested.
oid | The OID whose value is requested. |
value | The value of the OID; this should be updated by the function. |
typedef std::function<bool(const NumericOid& oid, NumericOid& nextOid, Variant& value)> GetNextFunction |
The GetNextFunction is called when the next OID is requested.
oid | The reference OID. |
nextOid | The next OID after the reference OID; this should be updated by the function. |
value | The value of the next OID, if it is valid. |
enum Type |
uint8_t priority |
This is the priority of the OID.
The range is from 1 - 255, with a lower value having a higher priority than a higher value. If this is set to zero, the the value will be AgentX::DEFAULT_PRIORITY.