#include <agentpp_simulation_mib.h>
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 agentppSimMode * | instance |
"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."
agentppSimMode::agentppSimMode | ( | ) |
virtual agentppSimMode::~agentppSimMode | ( | ) | [virtual] |
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.
vb | - The variable binding that holds the new value. |
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.
v | - A new value. |
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.
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.
agentppSimMode* agentppSimMode::instance [static] |