Copying and Serializing Table Objects
A table object can be copied with the
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
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.
Version 5.5.1
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.