MibStaticTable Class Reference

#include <mib_complex_entry.h>

Inheritance diagram for MibStaticTable:

MibComplexEntry MibEntry ThreadManager Synchronized

List of all members.

Public Member Functions

 MibStaticTable (const Oidx &)
 Construct a static table (entry) instance with a given object identifier.
 MibStaticTable (MibStaticTable &)
 Copy constructor.
virtual ~MibStaticTable ()
 Destructor.
virtual MibEntryclone ()
 Return a clone of the receiver.
virtual void add (const MibStaticEntry &)
 Add an instance to the table.
virtual void remove (const Oidx &)
 Remove an instance from the table.
virtual MibStaticEntryget (const Oidx &, boolean suffixOnly=FALSE)
 Get the entry instance with the given OID.
virtual Oidx find_succ (const Oidx &, Request *req=0)
 Return the successor of a given object identifier within the receiver's scope and the context of a given Request.
virtual void get_request (Request *, int)
 Let the receiver process a SNMP GET subrequest.
virtual void get_next_request (Request *, int)
 Let the receiver process a SNMP GETNEXT subrequest.

Protected Attributes

OidList< MibStaticEntrycontents


Constructor & Destructor Documentation

MibStaticTable::MibStaticTable ( const Oidx  ) 

Construct a static table (entry) instance with a given object identifier.

Parameters:
oid an object identifier.

MibStaticTable::MibStaticTable ( MibStaticTable  ) 

Copy constructor.

Parameters:
other another MibComplexEntry instance.

virtual MibStaticTable::~MibStaticTable (  )  [virtual]

Destructor.


Member Function Documentation

virtual MibEntry* MibStaticTable::clone (  )  [inline, virtual]

Return a clone of the receiver.

Returns:
a pointer to a clone of the MibStaticTable object.

Implements MibComplexEntry.

virtual void MibStaticTable::add ( const MibStaticEntry  )  [virtual]

Add an instance to the table.

If such an instance already exists, it will be removed. (SYNCHRONIZED)

Parameters:
instance a MibStaticEntry instance.

virtual void MibStaticTable::remove ( const Oidx  )  [virtual]

Remove an instance from the table.

(SYNCHRONIZED)

Parameters:
oid the object ID of the entry to be removed.

virtual MibStaticEntry* MibStaticTable::get ( const Oidx ,
boolean  suffixOnly = FALSE 
) [virtual]

Get the entry instance with the given OID.

If suffixOnly is FALSE (the default), the specified OID must be the full OID of the entry, including the OID prefix from the MibStaticTable. (NOT SYBCHRONIZED)

Parameters:
oid the OID (or OID suffix) of the requested entry.
suffixOnly determines whether the given OID should be interpreted as suffix appended to the table's OID or whether the given OID fully specifies the requested entry.
Returns:
the entry with the given OID or 0 if such an object does not exist.

virtual Oidx MibStaticTable::find_succ ( const Oidx ,
Request req = 0 
) [virtual]

Return the successor of a given object identifier within the receiver's scope and the context of a given Request.

Parameters:
oid an object identifier
request a pointer to a Request instance.
Returns:
an object identifier if a successor could be found, otherwise (if no successor exists or is out of scope) a zero length oid is returned

Implements MibComplexEntry.

virtual void MibStaticTable::get_request ( Request ,
int   
) [virtual]

Let the receiver process a SNMP GET subrequest.

Parameters:
req - A pointer to the whole SNMP GET request.
ind - The index of the subrequest to be processed.

Implements MibComplexEntry.

virtual void MibStaticTable::get_next_request ( Request ,
int   
) [virtual]

Let the receiver process a SNMP GETNEXT subrequest.

Parameters:
req - A pointer to the whole SNMP GETNEXT request.
ind - The index of the subrequest to be processed.

Implements MibComplexEntry.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Fri May 29 22:36:54 2009 for AGENT++ by  doxygen 1.5.6