AgentXcpp  Version:0.3
API Documentation
 All Classes Functions Variables Enumerations Enumerator Friends Pages
agentxcpp::DisplayStringVariable Class Reference

A DisplayString variable. More...

#include <DisplayStringVariable.hpp>

Inheritance diagram for agentxcpp::DisplayStringVariable:
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

agentxcpp::DisplayStringVariable::DisplayStringVariable ( QString  _value = QString())
inline

(Default) constructor.

Create a DisplayString variable.

Parameters
_valueThe initial value of the variable.
Exceptions
None.

Member Function Documentation

void agentxcpp::DisplayStringVariable::setValue ( QString  _value)
inline

Set the value of the variable.

Parameters
_valueThe new value.
Exceptions
None.
QString agentxcpp::DisplayStringVariable::value ( )
inline

Get the value of the variable.

Returns
The current value.
Exceptions
None.