#include <snmp_textual_conventions.h>
Public Member Functions | |
TimeStampTable (const Oidx &, const index_info *, unsigned int, TimeStamp *) | |
Constructor with object identifier and given index structure. | |
virtual | ~TimeStampTable () |
virtual void | row_added (MibTableRow *, const Oidx &, MibTable *) |
Is called after a new row has been created and automatic index generation has taken place. | |
virtual void | row_delete (MibTableRow *, const Oidx &, MibTable *) |
Is called before a row is deleted by MibTable. | |
virtual void | updated () |
This method should be called whenever the reciever is changed, except when a row is added or deleted (row_added and row_deleted already call updated()). | |
Protected Attributes | |
TimeStamp * | lastChange |
TimeStampTable::TimeStampTable | ( | const Oidx & | , | |
const index_info * | , | |||
unsigned | int, | |||
TimeStamp * | ||||
) |
Constructor with object identifier and given index structure.
In AGENT++ the structure of a table's index is given by an array of integer values. Each element represents an object of the index. A value of -1 represents a implied variable length string or oid. A value of 0 a variable length string or oid index object. A value greater than 0 determines the length of the index object meassured in subidentifiers.
o | the object identifier of the table, which has to be the oid of the the SMI table entry object (table.1). | |
index | an integer array. The length of the array corresponds to the number of objects in the INDEX clause. | |
timeStamp | a pointer to a TimeStamp instance. |
virtual TimeStampTable::~TimeStampTable | ( | ) | [virtual] |
virtual void TimeStampTable::row_added | ( | MibTableRow * | , | |
const Oidx & | , | |||
MibTable * | t | |||
) | [virtual] |
Is called after a new row has been created and automatic index generation has taken place.
row | A pointer to MibTableRow that has been created. | |
index | - The index of the row. | |
source | a pointer to the source MibTable of the event, or 0 if the event is local. |
Reimplemented from MibTable.
virtual void TimeStampTable::row_delete | ( | MibTableRow * | , | |
const Oidx & | , | |||
MibTable * | t | |||
) | [virtual] |
Is called before a row is deleted by MibTable.
row | A pointer to MibTableRow that will be deleted. | |
index | - The index of the row. | |
source | a pointer to the source MibTable of the event, or 0 if the event is local. |
Reimplemented from MibTable.
virtual void TimeStampTable::updated | ( | ) | [virtual] |
This method should be called whenever the reciever is changed, except when a row is added or deleted (row_added and row_deleted already call updated()).
TimeStamp* TimeStampTable::lastChange [protected] |