This class represents a SNMP variable. More...
#include <variable.hpp>
Public Member Functions | |
| virtual data_t | 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.
| virtual agentxcpp::variable::~variable | ( | ) | [inline, virtual] |
Destructor.
Definition at line 54 of file variable.hpp.
| virtual data_t agentxcpp::variable::serialize | ( | ) | const [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.
| virtual void agentxcpp::variable::update | ( | ) | [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::Opaque, and agentxcpp::TimeTicks.