WriteToMany—externalizing to more than one stream/deferred
loadingThis example shows how a network of objects can be written to more than one stream in a direct file store, and how the loading of an object from the store into memory may be deferred.
RStoreWriteStream: supports creation and
manipulation of a stream in a store
RStoreReadStream: supports opening and
manipulation of a stream in a store
CDirectFileStore: a direct file store
TStreamId: stream identification
TSwizzle: deferred loading mechanism
This example shows how an object can be externalized to a store embedded within a permanent file store.
RStoreWriteStream: supports creation and
manipulation of a stream in a store
RStoreReadStream: supports opening and
manipulation of a stream in a store
CPermanentFileStore: a permanent file
store
TStreamId: stream identification
CEmbeddedStore: an embedded store derived from
CPersistentStore
This example demonstrates the streaming of a compound object to
multiple streams with deferred loading. It also illustrates the use of a store
map (CStoreMap).
RStoreWriteStream: supports creation and
manipulation of a stream in a store
RStoreReadStream: supports opening and
manipulation of a stream in a store
CPermanentFileStore: a permanent file
store
CStoreMap: the store map (a table of streamids
and associated swizzles; externalizes swizzles as streamids)
TSwizzle: a device for handling the dual
representation of an object as a streamid or as a pointer