This class represents a SNMP variable. More...
#include <variable.hpp>
Public Member Functions | |
| virtual binary | serialize () const =0 |
| Serialize the variable. | |
| virtual | ~variable () |
| Destructor. | |
| virtual void | update ()=0 |
| Update the internal state of the variable. | |
This class represents a SNMP variable.
This class is used as base class for the SNMP variable types (such as Octet_String or Integer). It has no functions or members exposed to the API.
Definition at line 33 of file variable.hpp.
|
inlinevirtual |
Destructor.
Definition at line 54 of file variable.hpp.
|
pure virtual |
Serialize the variable.
This function must be implemented by all derived classes. The function shall generate a serialized form of the variable.
| None,: | The function shall not throw. |
Implemented in agentxcpp::oid, agentxcpp::Counter32, agentxcpp::Counter64, agentxcpp::Gauge32, agentxcpp::TimeTicks, agentxcpp::IpAddress, agentxcpp::Integer, agentxcpp::Octet_String, and agentxcpp::Opaque.
|
pure virtual |
Update the internal state of the variable.
This function must be implemented in derived classes. It shall update the internal state of the object.
| generic_error | If obtaining the new value failed. The state of such an object cannot be updated. |
Implemented in agentxcpp::oid, agentxcpp::Octet_String, agentxcpp::IpAddress, agentxcpp::Counter32, agentxcpp::Integer, agentxcpp::Counter64, agentxcpp::Gauge32, agentxcpp::TimeTicks, and agentxcpp::Opaque.