agentppSimMode Class Reference

agentppSimMode More...

#include <agentpp_simulation_mib.h>

Inheritance diagram for agentppSimMode:

MibLeaf MibEntry ThreadManager Synchronized

List of all members.

Public Member Functions

 agentppSimMode ()
virtual ~agentppSimMode ()
virtual long get_state ()
virtual void set_state (long)
virtual int set (const Vbx &)
 Set the receiver's value and backup its old value for a later undo.
virtual boolean value_ok (const Vbx &)
 Check whether the receiver's value may be set to the given new value.
virtual void init (NS_SNMP SnmpSyntax *, boolean)
 Initialize a MibLeaf object.

Static Public Attributes

static agentppSimModeinstance


Detailed Description

agentppSimMode

"Setting this object to config(2) enables the configuration mode of all simulated MIB objects. Each such object instance can then be written or created, even though its MAX-ACCESS rights are read-only or read-write."


Constructor & Destructor Documentation

agentppSimMode::agentppSimMode (  ) 

virtual agentppSimMode::~agentppSimMode (  )  [virtual]


Member Function Documentation

virtual long agentppSimMode::get_state (  )  [virtual]

virtual void agentppSimMode::set_state ( long   )  [virtual]

virtual int agentppSimMode::set ( const Vbx vb  )  [virtual]

Set the receiver's value and backup its old value for a later undo.

Note:
Override this mehtod in subclasses.
Parameters:
vb - The variable binding that holds the new value.
Returns:
SNMP_ERROR_SUCCESS if the new value has been set, SNMP_ERROR_WRONG_TYPE or SNMP_ERROR_BAD_VALUE otherwise.

Reimplemented from MibLeaf.

virtual boolean agentppSimMode::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 void agentppSimMode::init ( NS_SNMP SnmpSyntax *  ,
boolean   
) [virtual]

Initialize a MibLeaf object.

This method is typically called either from a constructor with value or when loading a value from persistent storage.

Parameters:
initialValue a pointer to a SnmpSyntax object which will hold the value of this MibLeaf 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.

Reimplemented from MibLeaf.


Member Data Documentation


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

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