#include <mib_complex_entry.h>
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 MibEntry * | clone () |
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 MibStaticEntry * | get (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< MibStaticEntry > | contents |
MibStaticTable::MibStaticTable | ( | const Oidx & | ) |
Construct a static table (entry) instance with a given object identifier.
oid | an object identifier. |
MibStaticTable::MibStaticTable | ( | MibStaticTable & | ) |
virtual MibStaticTable::~MibStaticTable | ( | ) | [virtual] |
Destructor.
virtual MibEntry* MibStaticTable::clone | ( | ) | [inline, virtual] |
Return a clone of the receiver.
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)
instance | a MibStaticEntry instance. |
virtual void MibStaticTable::remove | ( | const Oidx & | ) | [virtual] |
Remove an instance from the table.
(SYNCHRONIZED)
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)
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. |
Return the successor of a given object identifier within the receiver's scope and the context of a given Request.
oid | an object identifier | |
request | a pointer to a Request instance. |
Implements MibComplexEntry.
virtual void MibStaticTable::get_request | ( | Request * | , | |
int | ||||
) | [virtual] |
Let the receiver process a SNMP GET subrequest.
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.
req | - A pointer to the whole SNMP GETNEXT request. | |
ind | - The index of the subrequest to be processed. |
Implements MibComplexEntry.
OidList<MibStaticEntry> MibStaticTable::contents [protected] |