Deleting all rows in MibTable
Kjersti Grønnevik
kgr____morecom.no
Thu Mar 21 09:27:00 CET 2002
Hi Alex,
Where do I put this code?
I wrote it in the main function after a request has been processed, but it's called before the request process has finished.
........
while (run) {
req = reqList->receive(2);
if (req) {
mib->process_request(req);
lvAptEntry *ae = lvAptEntry::instance;
ae->removeAllAPTEntries();
//char buffer[200];
//sprintf( buffer, "main.removeRows..(.)" );
Log::addEvent( Log::INFO, "main.removeRows ...", LOC ); //only used for debugging...
}
else {
mib->cleanup();
}
}
delete mib;
return 0;
}
void lvAptEntry::removeAllAPTEntries()
{
//remove old rows from MibTable, the aptEntry class inheritates from MibTable
clear();
delete_rows.clearAll();
notready_rows.clearAll();
}
Hope this is understandable and thanks so much for great help so far!
Regards,
Kjersti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20020321/7b7de786/attachment.htm
More information about the AGENTPP
mailing list