#include <mib.h>

Public Member Functions | |
| snmpRowStatus () | |
| Default constructor. | |
| snmpRowStatus (const Oidx &) | |
| Construct a snmpRowStatus instance with default access READCREATE. | |
| snmpRowStatus (const Oidx &, mib_access) | |
| Construct a snmpRowStatus instance. | |
| virtual | ~snmpRowStatus () |
| Destructor. | |
| virtual boolean | value_ok (const Vbx &) |
| Check whether the receiver's value may be set to a given new value. | |
| virtual boolean | transition_ok (const Vbx &) |
| Check whether the a transition to a given new value is possible in general. | |
| virtual MibEntryPtr | clone () |
| Clone the receiver. | |
| virtual boolean | check_state_change (const Vbx &, Request *req=0) |
| Check whether the state of the receiver's row may be changed. | |
| virtual int | set (const Vbx &) |
| Set the receiver's value and backup its old value for a later undo. | |
| virtual int | unset () |
| Undo a previous set. | |
| long | get () |
| Get the receiver's value. | |
| virtual int | prepare_set_request (Request *, int &) |
| Let the receiver prepare a SNMP SET subrequest. | |
The snmpRowStatus class is an encapsulation of the SMIv2 row status textual convention. Figure RowStatusStates demonstrates the states which the snmpRowStatus object can traverse.
| snmpRowStatus::snmpRowStatus | ( | ) | [inline] |
Default constructor.
| snmpRowStatus::snmpRowStatus | ( | const Oidx & | ) |
Construct a snmpRowStatus instance with default access READCREATE.
| o | - The row status column subidentifier. |
| snmpRowStatus::snmpRowStatus | ( | const Oidx & | , | |
| mib_access | ||||
| ) |
Construct a snmpRowStatus instance.
| o | - The row status column subidentifier. | |
| a | - The maximum access rights for the managed object. |
| virtual snmpRowStatus::~snmpRowStatus | ( | ) | [virtual] |
Destructor.
| virtual boolean snmpRowStatus::value_ok | ( | const Vbx & | ) | [virtual] |
Check whether the receiver's value may be set to a given new value.
NOTE: This checks only if the value may be set at all. Thus notReady(3) will return FALSE. All other RowStatus enumerated values will return TRUE.
| value | a new value. |
Reimplemented from MibLeaf.
| virtual boolean snmpRowStatus::transition_ok | ( | const Vbx & | ) | [virtual] |
Check whether the a transition to a given new value is possible in general.
This does not check any values of the row. Use check_state_change to determine whether a row has sufficient information to actually perform a transition.
| value | a new value. |
Reimplemented in SimRowStatus.
| virtual MibEntryPtr snmpRowStatus::clone | ( | ) | [virtual] |
Clone the receiver.
Reimplemented from MibLeaf.
Reimplemented in SimRowStatus, VacmAccessTableStatus, and VacmViewTreeFamilyTableStatus.
Check whether the state of the receiver's row may be changed.
| v | a variable binding that holds the requested new state. | |
| req | an optional reference to the request being processed. If req is not 0 the snmpRowStatus attempts to look forward within the request for sets that will affect its row. |
| virtual int snmpRowStatus::set | ( | const Vbx & | ) | [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.
Reimplemented in VacmViewTreeFamilyTableStatus.
| virtual int snmpRowStatus::unset | ( | ) | [virtual] |
Undo a previous set.
Reimplemented from MibLeaf.
| long snmpRowStatus::get | ( | ) |
Get the receiver's value.
| virtual int snmpRowStatus::prepare_set_request | ( | Request * | , | |
| int & | ||||
| ) | [virtual] |
Let the receiver prepare a SNMP SET subrequest.
| req | a pointer to the whole SNMP SET request. | |
| ind | the index of the subrequest to be processed. |
Reimplemented from MibLeaf.
1.5.6