OctetStrMinMax Class Reference

OctetStrMinMax. More...

#include <snmp_textual_conventions.h>

Inheritance diagram for OctetStrMinMax:

MibLeaf MibEntry ThreadManager Synchronized SnmpAdminString

List of all members.

Public Member Functions

 OctetStrMinMax (const Oidx &, mib_access, NS_SNMP OctetStr *, int, u_int, u_int)
 Construct a OctetStrMinMax with initial value.
 OctetStrMinMax (const Oidx &, mib_access, u_int, u_int)
 Construct a SnmpIn32MinMax without initial value (will be 0).
virtual int prepare_set_request (Request *, int &)
 Let the receiver prepare a SNMP SET subrequest.
MibEntryPtr clone ()
 Clone the receiver object.
int get ()
 Return the integer value of the receiver.

Protected Attributes

unsigned int min
unsigned int max


Detailed Description

OctetStrMinMax.

This object contains a integer value. The range of possible values can be set.

Author:
Jochen Katz
Version:
3.3

Constructor & Destructor Documentation

OctetStrMinMax::OctetStrMinMax ( const Oidx ,
mib_access  ,
NS_SNMP OctetStr *  ,
int  ,
u_int  ,
u_int   
)

Construct a OctetStrMinMax 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.
string a pointer to an OctetStr instance.
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.
min the minimum length of the receiver's value.
max the maximum length of the receiver's value.

OctetStrMinMax::OctetStrMinMax ( const Oidx ,
mib_access  ,
u_int  ,
u_int   
)

Construct a SnmpIn32MinMax without initial value (will be 0).

Parameters:
oid the oid of the leaf or the column of the columnar object.
access the max-access rights for the object.
min the minimum length of the receiver's value.
max the maximum length of the receiver's value.


Member Function Documentation

virtual int OctetStrMinMax::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.

MibEntryPtr OctetStrMinMax::clone (  )  [virtual]

Clone the receiver object.

Returns:
A pointer to the clone.

Reimplemented from MibLeaf.

Reimplemented in SnmpAdminString.

int OctetStrMinMax::get (  ) 

Return the integer value of the receiver.

Returns:
an int.

Reimplemented in SnmpAdminString.


Member Data Documentation

unsigned int OctetStrMinMax::min [protected]

unsigned int OctetStrMinMax::max [protected]


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