CStreamStore
In general, it is sufficient for application classes to reference an existing store object through the base abstract class CStreamStore
.
This allows applications to avoid commitment to specific types of store and allows for re-use of application code. For example, given a class called CCompound
, its StoreL()
and RestoreL()
member functions take a reference to a store through CStreamStore
.
They are prototyped as:
TStreamId StoreL(CStreamStore& store);
void RestoreL(CStreamStore& aStore,TStreamId anId);