Copying and Serializing Table Objects

A table object can be copied with the IliTable::copyTable member function.

IliTable* origTable;

...

IliTable* cloneTable = origTable->copyTable();

Note that, in the case of two-tier tables, the row cache is not copied.

A table object can be written to a stream with the IliTable::writeTable member function:

IliTable* tbl;

ostream& os;

...

tbl->writeTable(os);

At a later date, the table object can be rebuilt by reading from a stream:

istream& is;

...

IliTable* tbl = IliTable::ReadTable(is);

Note that, in the case of two-tier tables, the row cache is not written to the stream.