Table question

Frank Fock Frank.Fock____t-online.de
Fri Jun 9 18:50:49 CEST 2000



Arend Melissant wrote:

> > Use a timer (you can use the Timer class from tools.h) to determine,
> > when the last update occured. Override the MyTable::is_empty() and the
> > MyTable::get_request methods and check the timer before you call the
> > MibTable's variants of these methods. If the table date is, for example
> > 2 seconds, old, then you can make an update of the table before going on.
> >
>
> OK, but how many rows do I add to the table. Is there a way to add and
> delete rows when a value is requested??
>

Yes, within the overriden methods you may add or remove rows before
you call the corresponding superclass methods. In the is_empty()
method you have to call the MibTable::start_synch() before you call
MibTable::add_row(..) or MibTable::remove_row(..) and
MibTable::end_synch() afterwards. Within the MyMibTable::get_request
method this is not needed because it is already synchronized.

Best regards,
Frank





More information about the AGENTPP mailing list