SnmpTagValue Class Reference

SnmpTagValue. More...

#include <snmp_textual_conventions.h>

Inheritance diagram for SnmpTagValue:

MibLeaf MibEntry ThreadManager Synchronized

List of all members.

Public Member Functions

 SnmpTagValue (const Oidx &, mib_access, NS_SNMP OctetStr *, int)
 Construct a SnmpTagValue with initial value.
 SnmpTagValue (const Oidx &)
virtual ~SnmpTagValue ()
virtual MibEntryPtr clone ()
 Clone the receiver object.
virtual boolean value_ok (const Vbx &)
 Check whether the receiver's value may be set to the given new value.
virtual int prepare_set_request (Request *, int &)
 Let the receiver prepare a SNMP SET subrequest.

Static Public Member Functions

static boolean is_delimiter (char)


Detailed Description

SnmpTagValue.

Author:
Frank Fock
Version:
3.3

Constructor & Destructor Documentation

SnmpTagValue::SnmpTagValue ( const Oidx ,
mib_access  ,
NS_SNMP OctetStr *  ,
int   
)

Construct a SnmpTagValue with initial value.

Parameters:
oid the oid of the leaf or the column of the columnar object.
access the max-access rights for the object.
octetstr a pointer to an OctetStr containing the initial value for the object.
valueMode contains an ored value of one or more of the following modes: VMODE_DEFAULT: the value of the object pointed by value will be used as default value, otherwise the managed object has no default value. VMODE_LOCKED: value is locked (cannot be modified) while the row status of the receiver's row is active(1). This mode has no effect, if the the leaf is a scalar or otherwise if the receiver's row has no snmpRowStatus.

SnmpTagValue::SnmpTagValue ( const Oidx  ) 

virtual SnmpTagValue::~SnmpTagValue (  )  [virtual]


Member Function Documentation

virtual MibEntryPtr SnmpTagValue::clone (  )  [virtual]

Clone the receiver object.

Returns:
A pointer to the clone.

Reimplemented from MibLeaf.

virtual boolean SnmpTagValue::value_ok ( const Vbx  )  [virtual]

Check whether the receiver's value may be set to the given new value.

Note:
Override this mehtod in subclasses.
Parameters:
v - A new value.
Returns:
TRUE if the new value is valid, otherwise FALSE.

Reimplemented from MibLeaf.

virtual int SnmpTagValue::prepare_set_request ( Request ,
int &   
) [virtual]

Let the receiver prepare a SNMP SET subrequest.

Parameters:
req - A pointer to the whole SNMP SET request.
ind - The index of the subrequest to be processed.
Returns:
SNMP_ERROR_SUCCESS on success and SNMP_ERROR_WRONG_VALUE, SNMP_ERROR_WRONG_TYPE, or SNMP_ERROR_NOT_WRITEABLE on failure.

Reimplemented from MibLeaf.

static boolean SnmpTagValue::is_delimiter ( char   )  [static]


The documentation for this class was generated from the following file:

Generated on Fri May 29 22:36:55 2009 for AGENT++ by  doxygen 1.5.6