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... | |
![]() | |
binary | serialize () const |
Encode the object as described in RFC 2741, section 5.3. More... | |
OctetStringVariable (binary _value=binary()) | |
(Default) constructor. More... | |
OctetStringVariable (QString initial_value) | |
Construct object from a string. More... | |
OctetStringVariable (binary::const_iterator &pos, const binary::const_iterator &end, bool big_endian=true) | |
Parse Constructor. 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 | handle_get () |
Handle a Get Request. More... | |
virtual void | perform_get () |
Perform a Get request. More... | |
virtual testset_result_t | handle_testset (QSharedPointer< AbstractVariable > _v) |
Handle a TestSet request. More... | |
virtual testset_result_t | perform_testset (const binary &_v) |
Handle a TestSet request. More... | |
virtual void | handle_cleanupset () |
Handle a CleanupSet request. More... | |
virtual void | perform_cleanupset (const binary &_v) |
Perform an SNMP CleanupSet request. More... | |
virtual bool | handle_commitset () |
Handle a CommitSet request. More... | |
virtual bool | perform_commitset (const binary &_v) |
Perform an SNMP CommitSet request. More... | |
virtual bool | handle_undoset () |
Handle an UndoSet request. More... | |
virtual bool | perform_undoset (const binary &_v) |
Perform an SNMP UndoSet request. More... | |
![]() | |
virtual | ~AbstractVariable () |
Virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
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.
Definition at line 37 of file DisplayStringVariable.hpp.
|
inline |
(Default) constructor.
Create a DisplayString variable.
_value | The initial value of the variable. |
None. |
Definition at line 51 of file DisplayStringVariable.hpp.
References agentxcpp::OctetStringVariable::setValue().
|
inline |
Set the value of the variable.
_value | The new value. |
None. |
Definition at line 63 of file DisplayStringVariable.hpp.
References agentxcpp::OctetStringVariable::setValue().
|
inline |
Get the value of the variable.
None. |
Definition at line 75 of file DisplayStringVariable.hpp.
References agentxcpp::OctetStringVariable::toString().