Table Hook
The
IliTableHook class can be used to monitor the changes that a table object undergoes. The
IliTableHook class has a number of virtual member functions that can be overloaded in subclasses to monitor different events that occur within a table object.
In the following example, a table hook is used to print a message each time a row is inserted in a table object:
class CustomHook: public IliTableHook {
virtual void rowInserted (IlInt rowno) {
IlvPrint(“A rows has been inserted at position %d”,
(int)rowno);
}
};
int main () {
IliTable* tbl;
...
CustomHook* hook = new CustomHook;
tbl->addHook(hook);
...
tbl->removeHook(hook);
delete hook;
return 0;
}
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.