SimMibLeaf Class Reference

The class SimMibLeaf can be used to create simulation agents. More...

#include <sim_mib.h>

Inheritance diagram for SimMibLeaf:

MibLeaf MibEntry ThreadManager Synchronized simSysUpTime

List of all members.

Public Member Functions

 SimMibLeaf ()
 Default constructor.
 SimMibLeaf (const Oidx &, mib_access, NS_SNMP SmiUINT32)
 Construct a MibLeaf object.
 SimMibLeaf (const Oidx &, mib_access, NS_SNMP SnmpSyntax *)
 Construct a MibLeaf object.
 SimMibLeaf (const Oidx &, mib_access, NS_SNMP SnmpSyntax *, boolean)
 Construct a MibLeaf object.
 SimMibLeaf (const SimMibLeaf &)
 Copy Constructor.
virtual ~SimMibLeaf ()
 Destructor.
virtual MibEntryPtr clone ()
 Clone the receiver object.
virtual mib_access get_access ()
 Return the maximum access rights for the managed object represented by the receiver node.

Static Public Member Functions

static void set_config_mode ()
 Set config mode.
static void unset_config_mode ()
 Unset config mode.
static boolean get_config_mode ()
 Get the current config mode.

Static Protected Attributes

static boolean configMode


Detailed Description

The class SimMibLeaf can be used to create simulation agents.

Author:
Frank Fock
Version:
3.1c

Constructor & Destructor Documentation

SimMibLeaf::SimMibLeaf (  ) 

Default constructor.

SimMibLeaf::SimMibLeaf ( const Oidx ,
mib_access  ,
NS_SNMP  SmiUINT32 
)

Construct a MibLeaf object.

Parameters:
o - The object identifier of the managed object. If it is part of a table, only the column subidentifier is given. If it is a scalar object the object identifier given includes the full registration oid including the suffix ".0".
a - The maximum access rights for the managed object.
s - The syntax of the managed object.
See also:
Oidx, mib_access

SimMibLeaf::SimMibLeaf ( const Oidx ,
mib_access  ,
NS_SNMP SnmpSyntax *   
)

Construct a MibLeaf object.

Parameters:
o - The object identifier of the managed object. If it is part of a table, only the column subidentifier is given. If it is a scalar object the object identifier given includes the full registration oid including the suffix ".0".
a - The maximum access rights for the managed object.
s - A pointer to the SnmpSyntax object to be used for storing the value of the managed object. NOTE: Do not delete this pointer from outside MibLeaf. It will be deleted by ~MibLeaf
See also:
Oidx, mib_access

SimMibLeaf::SimMibLeaf ( const Oidx ,
mib_access  ,
NS_SNMP SnmpSyntax *  ,
boolean   
)

Construct a MibLeaf object.

Parameters:
o - The object identifier of the managed object. If it is part of a table, only the column subidentifier is given. If it is a scalar object the object identifier given includes the full registration oid including the suffix ".0".
a - The maximum access rights for the managed object.
s - A pointer to the SnmpSyntax object to be used for storing the value of the managed object. NOTE: Do not delete this pointer from outside MibLeaf. It will be deleted by ~MibLeaf
d - If TRUE the value of the object pointed by s will be used as default value, otherwise the managed object has no default value.
See also:
Oidx, mib_access

SimMibLeaf::SimMibLeaf ( const SimMibLeaf  ) 

Copy Constructor.

virtual SimMibLeaf::~SimMibLeaf (  )  [virtual]

Destructor.


Member Function Documentation

virtual MibEntryPtr SimMibLeaf::clone (  )  [virtual]

Clone the receiver object.

Returns:
A pointer to the clone.

Reimplemented from MibLeaf.

virtual mib_access SimMibLeaf::get_access (  )  [virtual]

Return the maximum access rights for the managed object represented by the receiver node.

Returns:
The maximum access (one of the following values: NOACCESS, READONLY, READWRITE, or READCREATE)

Reimplemented from MibEntry.

static void SimMibLeaf::set_config_mode (  )  [static]

Set config mode.

All SimMibLeaf objects acting as a leaf object get access rights of read-write and all SimMibLeaf objects acting as a columnar object get read-create access rights.

static void SimMibLeaf::unset_config_mode (  )  [static]

Unset config mode.

All SimMibLeaf objects get their original access rights (i.e., those rights they got when they have been constructed).

static boolean SimMibLeaf::get_config_mode (  )  [static]

Get the current config mode.

Returns:
true if the config mode is set, false otherwise.


Member Data Documentation

boolean SimMibLeaf::configMode [static, 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