A DisplayString variable. More...
#include <DisplayStringVariable.hpp>
Public Member Functions | |
| DisplayStringVariable (QString _value=QString()) | |
| (Default) constructor. More... | |
| void | setValue (QString _value) |
| Set the value of the variable. More... | |
| QString | value () |
| Get the value of the variable. More... | |
Public Member Functions inherited from agentxcpp::OctetStringVariable | |
| OctetStringVariable (binary _value=binary()) | |
| (Default) constructor. More... | |
| OctetStringVariable (QString initial_value) | |
| Construct object from a string. More... | |
| void | setValue (binary _value) |
| Set the value. More... | |
| void | setValue (QString _value) |
| Set the value. More... | |
| binary | value () const |
| Get the current value. More... | |
| QString | toString () const |
| Get the current value as string. More... | |
| virtual Oid | toOid () const |
| Convert the value to an OID. More... | |
| virtual void | perform_get () |
| Perform a Get request. More... | |
| virtual testset_result_t | perform_testset (const binary &_v) |
| Handle a TestSet request. More... | |
| virtual void | perform_cleanupset (const binary &_v) |
| Perform an SNMP CleanupSet request. More... | |
| virtual bool | perform_commitset (const binary &_v) |
| Perform an SNMP CommitSet request. More... | |
| virtual bool | perform_undoset (const binary &_v) |
| Perform an SNMP UndoSet request. More... | |
Public Member Functions inherited from agentxcpp::AbstractVariable | |
| virtual | ~AbstractVariable () |
| Virtual destructor. More... | |
Additional Inherited Members | |
Public Types inherited from agentxcpp::AbstractVariable | |
| enum | testset_result_t { noError = 0, genErr = 5, noAccess = 6, wrongType = 7, wrongLength = 8, wrongValue = 10, noCreation = 11, inconsistentValue = 12, resourceUnavailable = 13, notWritable = 17, inconsistentName = 18 } |
| Result type for the TestSet validation. More... | |
Protected Attributes inherited from agentxcpp::OctetStringVariable | |
| binary | v |
| The value. More... | |
A DisplayString variable.
This class represent an SNMP variable with SYNTAX DisplatString. The data is stored and processed as an OctetStringVariable, but this class provides additional methods for easy string handling.
|
inline |
(Default) constructor.
Create a DisplayString variable.
| _value | The initial value of the variable. |
| None. |
|
inline |
Set the value of the variable.
| _value | The new value. |
| None. |
|
inline |
Get the value of the variable.
| None. |