#include <mib_complex_entry.h>
Public Member Functions | |
MibComplexEntry (const Oidx &, mib_access) | |
Construct a MibComplexEntry instance with a given object identifier and maximum access rights. | |
MibComplexEntry (const MibComplexEntry &) | |
Copy constructor. | |
virtual | ~MibComplexEntry () |
Destructor. | |
virtual mib_type | type () const |
Return the type of the receiver MIB node. | |
virtual MibEntry * | clone ()=0 |
Return a clone of the receiver. | |
virtual Oidx | find_succ (const Oidx &, Request *req=0)=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)=0 |
Let the receiver process a SNMP GET subrequest. | |
virtual void | get_next_request (Request *, int)=0 |
Let the receiver process a SNMP GETNEXT subrequest. | |
virtual int | commit_set_request (Request *, int) |
Let the receiver commit a SNMP SET subrequest. | |
virtual int | prepare_set_request (Request *, int &) |
Let the receiver prepare a SNMP SET subrequest. | |
virtual int | undo_set_request (Request *, int &) |
Let the receiver undo a SNMP SET subrequest. | |
virtual void | cleanup_set_request (Request *, int &) |
Clean up resources used for performing (or undoing) set requests. | |
virtual boolean | serialize (char *&, int &) |
Serialize the value of the receiver. | |
virtual boolean | deserialize (char *, int &) |
Read the value of the receiver from a byte stream. | |
virtual boolean | is_empty () |
Check whether the receiver node contains any instance of a managed object. | |
virtual OidxPtr | max_key () |
Return the immediate successor of the greatest object identifier within the receiver's scope. | |
Protected Attributes | |
Oidx | upperBound |
Friends | |
class | Mib |
Complex nodes access their managed objects (e.g., MibLeafs) via an implementation specific way. This interface can be used to implement light weight tables, i.e. tables that access their management information through a proprietary protocol (other than SNMP or AgentX).
MibComplexEntry::MibComplexEntry | ( | const Oidx & | , | |
mib_access | ||||
) |
Construct a MibComplexEntry instance with a given object identifier and maximum access rights.
oid | an object identifier. | |
access | the maximum access rights for the receiver. |
MibComplexEntry::MibComplexEntry | ( | const MibComplexEntry & | ) |
virtual MibComplexEntry::~MibComplexEntry | ( | ) | [virtual] |
Destructor.
virtual mib_type MibComplexEntry::type | ( | ) | const [inline, virtual] |
Return the type of the receiver MIB node.
Reimplemented from MibEntry.
virtual MibEntry* MibComplexEntry::clone | ( | ) | [pure virtual] |
Return a clone of the receiver.
Reimplemented from MibEntry.
Implemented in MibStaticTable.
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. |
Reimplemented from MibEntry.
Implemented in MibStaticTable.
virtual void MibComplexEntry::get_request | ( | Request * | , | |
int | ||||
) | [pure 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. |
Reimplemented from MibEntry.
Implemented in MibStaticTable.
virtual void MibComplexEntry::get_next_request | ( | Request * | , | |
int | ||||
) | [pure 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. |
Reimplemented from MibEntry.
Implemented in MibStaticTable.
virtual int MibComplexEntry::commit_set_request | ( | Request * | , | |
int | ||||
) | [inline, virtual] |
Let the receiver commit a SNMP SET subrequest.
req | - A pointer to the whole SNMP SET request. | |
ind | - The index of the subrequest to be processed. |
Reimplemented from MibEntry.
virtual int MibComplexEntry::prepare_set_request | ( | Request * | , | |
int & | ||||
) | [inline, virtual] |
Let the receiver prepare a SNMP SET subrequest.
req | - A pointer to the whole SNMP SET request. | |
ind | - The index of the subrequest to be processed. |
Reimplemented from MibEntry.
virtual int MibComplexEntry::undo_set_request | ( | Request * | , | |
int & | ||||
) | [inline, virtual] |
Let the receiver undo a SNMP SET subrequest.
req | - A pointer to the whole SNMP SET request. | |
ind | - The index of the subrequest to be processed. |
Reimplemented from MibEntry.
virtual void MibComplexEntry::cleanup_set_request | ( | Request * | , | |
int & | ||||
) | [inline, virtual] |
Clean up resources used for performing (or undoing) set requests.
req | - A pointer to the whole SNMP SET request. | |
ind | - The index of the subrequest to be processed. |
Reimplemented from MibEntry.
virtual boolean MibComplexEntry::serialize | ( | char *& | , | |
int & | ||||
) | [inline, virtual] |
Serialize the value of the receiver.
buf | - A pointer to byte stream buffer returned. | |
sz | - The size of the buffer returned. |
Reimplemented from MibEntry.
virtual boolean MibComplexEntry::deserialize | ( | char * | , | |
int & | ||||
) | [inline, virtual] |
Read the value of the receiver from a byte stream.
buf | a pointer to the input byte stream. | |
sz | the size of the input buffer. On output it contains the size remaining unread in the input buffer. |
Reimplemented from MibEntry.
virtual boolean MibComplexEntry::is_empty | ( | ) | [inline, virtual] |
Check whether the receiver node contains any instance of a managed object.
Reimplemented from MibEntry.
virtual OidxPtr MibComplexEntry::max_key | ( | ) | [inline, virtual] |
Return the immediate successor of the greatest object identifier within the receiver's scope.
Reimplemented from MibEntry.
Oidx MibComplexEntry::upperBound [protected] |