These examples demonstrate aspects of streaming and file stores.
Download the examples:
WriteDirectFS.zip, WritePermFS1.zip and WritePermFS2.zip
Download the additional files required for all the examples: CommonFramework.zip.
Example code
Click: browse to view the example code.
View the additional files: CommonFramework.
Description
This example externalizes a network of objects to a direct file store and then internalizes them again. It demonstrates the persistence of a direct file store and the idea of the root stream.
Class summary
RStoreWriteStream - Supports the writing of a stream to a store.
RStoreReadStream - Supports the opening and manipulation of an existing stream in a store.
CDirectFileStore - Direct file store.
Example code
Click: browse to view the example code.
Description
This example constructs and writes a network of objects to a permanent file store. Each object is then loaded back in, one at a time, its content displayed at the console and then destroyed.
Class summary
RStoreWriteStream - Supports the writing of a stream to a store.
RStoreReadStream - Supports the opening and manipulation of an existing stream in a store.
CPermanentFileStore - Permanent file store.
Example code
Click: browse to view the example code.
Description
This example shows further use of a permanent file store.
Class summary
RStoreWriteStream - Supports the writing of a stream to a store.
RStoreReadStream - Supports the opening and manipulation of an existing stream in a store.
CPermanentFileStore - Permanent file store.