AGENT++
4.0.3
|
#include <mib.h>
Public Member Functions | |
MibTableRow () | |
Default constructor. | |
MibTableRow (const Oidx &base) | |
Construct a row with specified base. | |
MibTableRow (const MibTableRow &) | |
Copy Constructor. | |
virtual | ~MibTableRow () |
Destructor - destroys the row and all the MibLeaf objects it contains. | |
MibTableRow * | clone () |
Clone the receiver. | |
MibLeaf * | add (MibLeaf *l) |
Append a MibLeaf instance to the end of the receiver row. | |
snmpRowStatus * | add (snmpRowStatus *l) |
Append a snmpRowStatus instance to the end of the receiver row. | |
MibLeaf * | get_nth (int i) |
Get the MibLeaf instance at the n-th (starting from 0) column of this row. | |
MibLeaf * | first () |
Get the MibLeaf object at the first column of this row. | |
MibLeaf * | last () |
Get the MibLeaf object at the last column of this row. | |
int | size () |
Get the size of this row. | |
MibLeaf * | get_element (const Oidx &) |
Return the element of the receiver row with a given oid. | |
bool | remove (int) |
Remove the object at a specified column from this row. | |
void | replace_element (unsigned int, MibLeaf *) |
Replace the element at the given column. | |
int | operator< (const MibTableRow &) |
Operator <. | |
int | operator> (const MibTableRow &) |
Operator > | |
int | operator== (const MibTableRow &) |
Operator ==. | |
MibTableRow & | operator= (const MibTableRow &) |
Operator =. | |
bool | contains (const Oidx &) const |
Return whether the receiver row contains an object with a given oid. | |
int | index_of (const Oidx &) const |
Return the index (counted from 0) of the row's object whose OID equals the given oid. | |
int | index_of (MibLeaf *l) const |
Return the index (counted from 0) of the row's object whose that equals the given object. | |
int | index_of_upper (const Oidx &) const |
Return the index (counted from 0) of the row's object whose OID is greater or equal the given oid. | |
int | index_of_lower (const Oidx &) const |
Return the index (counted from 0) of the row's object whose OID is less or equal the given oid. | |
virtual void | set_index (const Oidx &ind) |
Set the index of the receiver�s row. | |
Oidx | get_index () |
Return the index of the receiver row. | |
Oidx * | key () |
Return a pointer to the index of the receiver row. | |
void | get_vblist (Vbx *, int, bool returnVolatileAsNull=FALSE) |
Returns a list of variable bindings representing the object identifiers and values of this row. | |
snmpRowStatus * | get_row_status () |
Return the row status object of the receiver row, if it has one. | |
void | read_only () |
Convert the row to a read-only row. | |
void | set_access (mib_access) |
Sets the access value of all columnar objects (MibLeaf instances) of this row. | |
Protected Member Functions | |
virtual void | set_base (const Oidx &b) |
Set the base (i.e. | |
void | set_reference_to_table (MibTable *) |
Set a reference to the receiver�s table in all of its columns. | |
void | set_reference_to_row () |
Set a reference to the receiver in all of its columns. | |
Protected Attributes | |
Oidx | index |
Oidx | base |
OrderedList< MibLeaf > | row |
snmpRowStatus * | row_status |
Friends | |
class | MibTable |
MibTableRow::MibTableRow | ( | ) |
Default constructor.
MibTableRow::MibTableRow | ( | const Oidx & | base | ) |
Construct a row with specified base.
b | - A base object identifier (the object identifier of the table's entry object type). |
MibTableRow::MibTableRow | ( | const MibTableRow & | ) |
Copy Constructor.
other | - Another MibTableRow instance. |
|
virtual |
Destructor - destroys the row and all the MibLeaf objects it contains.
snmpRowStatus* MibTableRow::add | ( | snmpRowStatus * | l | ) |
Append a snmpRowStatus instance to the end of the receiver row.
Each row can only contain zero or one snmpRowStatus object, but that's not checked here.
l | - A pointer to the snmpRowStatus object to append. |
MibTableRow* MibTableRow::clone | ( | ) |
Clone the receiver.
bool MibTableRow::contains | ( | const Oidx & | ) | const |
Return whether the receiver row contains an object with a given oid.
oid | - The object identfier to search for. |
|
inline |
Return the element of the receiver row with a given oid.
oid | - The object identifier to search for. |
|
inline |
Return the index of the receiver row.
|
inline |
|
inline |
Return the row status object of the receiver row, if it has one.
Returns a list of variable bindings representing the object identifiers and values of this row.
vbs | the array of Vbx instances to store the values. |
sz | the size of the array. |
returnVolatileAsNull | if set to TRUE (FALSE is the default), volatile columns will return a Null value instead of their real value. |
int MibTableRow::index_of | ( | const Oidx & | ) | const |
Return the index (counted from 0) of the row's object whose OID equals the given oid.
oid | - The object id to search for. |
|
inline |
Return the index (counted from 0) of the row's object whose that equals the given object.
column | a pointer to an MibLeaf column to search for. |
int MibTableRow::index_of_lower | ( | const Oidx & | ) | const |
Return the index (counted from 0) of the row's object whose OID is less or equal the given oid.
oid | - The object id to search for. |
int MibTableRow::index_of_upper | ( | const Oidx & | ) | const |
Return the index (counted from 0) of the row's object whose OID is greater or equal the given oid.
oid | - The object id to search for. |
|
inline |
Return a pointer to the index of the receiver row.
|
inline |
int MibTableRow::operator< | ( | const MibTableRow & | ) |
Operator <.
other | - The MibTableRow the receiver is compared with. |
MibTableRow& MibTableRow::operator= | ( | const MibTableRow & | ) |
Operator =.
other | - The MibTableRow the receiver is assigned to. |
int MibTableRow::operator== | ( | const MibTableRow & | ) |
Operator ==.
other | - The MibTableRow the receiver is compared with. |
int MibTableRow::operator> | ( | const MibTableRow & | ) |
Operator >
other | - The MibTableRow the receiver is compared with. |
void MibTableRow::read_only | ( | ) |
Convert the row to a read-only row.
bool MibTableRow::remove | ( | int | ) |
Remove the object at a specified column from this row.
i | - The index (starting from 0) of the column to be removed. |
void MibTableRow::replace_element | ( | unsigned | int, |
MibLeaf * | |||
) |
Replace the element at the given column.
column | the column to be replaced (counted from 0). |
entry | a MibLeaf instance. |
void MibTableRow::set_access | ( | mib_access | ) |
Sets the access value of all columnar objects (MibLeaf instances) of this row.
access | the mib_access value that should be applied to the row. |
|
inlineprotectedvirtual |
Set the base (i.e.
the table's entry object's oid) oid value. An oid of an object of an SNMP table consists of the following three parts: base + column + index
b | - The base oid. |
|
virtual |
Set the index of the receiver�s row.
ind | - The (new) index of the receiver�s row. |
|
protected |
Set a reference to the receiver in all of its columns.
|
protected |
Set a reference to the receiver�s table in all of its columns.
t | - The MibTable object the reciever belongs to. |
|
inline |
Get the size of this row.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |