#include <snmp_textual_conventions.h>
Public Member Functions | |
StorageType (const Oidx &, int) | |
Construct a storageType instance. | |
virtual boolean | row_is_volatile () |
Return whether the row of the receiver is volatile or permanent. | |
virtual long | get_state () |
Return the receiver's value. | |
virtual void | set_state (long) |
Sets the type of this storage type. | |
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. |
A row which is volatile(2) is lost upon reboot. A row which is either nonVolatile(3), permanent(4) or readOnly(5), is backed up by stable storage. A row which is permanent(4) can be changed but not deleted. A row which is readOnly(5) cannot be changed nor deleted.
If the value of an object with this syntax is either permanent(4) or readOnly(5), it cannot be modified. Conversely, if the value is either other(1), volatile(2) or nonVolatile(3), it cannot be modified to be permanent(4) or readOnly(5).
Every usage of this textual convention is required to specify the columnar objects which a permanent(4) row must at a minimum allow to be writable.
StorageType::StorageType | ( | const Oidx & | , | |
int | ||||
) |
Construct a storageType instance.
o | The storageType column subidentifier. | |
default | A default storageType value, should be nonVolatile(3) |
virtual boolean StorageType::row_is_volatile | ( | ) | [virtual] |
Return whether the row of the receiver is volatile or permanent.
virtual long StorageType::get_state | ( | ) | [virtual] |
Return the receiver's value.
virtual void StorageType::set_state | ( | long | ) | [virtual] |
Sets the type of this storage type.
Allowed values are in range 1..5.
storageType | a long integer value between 1 and 5. |
virtual MibEntryPtr StorageType::clone | ( | ) | [virtual] |
virtual boolean StorageType::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.