It is often necessary to persist a data structure such as an object by writing it to memory as a sequence of bytes called a stream. A complex object is persisted as multiple streams collectively known as a store. The Store component provides access to stores in Symbian OS.
The Store component requires no specific background apart from C++ and Symbian OS.
The API has the following key concepts.
a store consisting of streams, implemented by
a store which persists beyond the lifetime of the application which creates it, implemented by
a store which can itself be stored as a stream in another store, implemented by
a store which resides in memory and exists only for the life of the store object, implemented by
a sequence of streams accessed by a UID, implemented by
A stream is a representation of a data structure (such as an object) as a sequence of bytes. Structures as complex as most applications require multiple streams to store their state. This is termed a store. Stream types that work with stores are provided by the
The Stores API defines both base classes that define store abstractions without specifying the storage medium, and some concrete store types.
The abstract classes are used as the base classes of separate APIs which use particular storage media. In particular the
Dictionary stores are accessed by a UID whereas stream stores are accessed by a stream ID. Persistent stores persist beyond the lifetime of the application that created them: they have a root stream from which the other streams in the store can be found. Embedded stores can be stored as streams in other stores: once written they cannot be modified.
Stores are integrated with the application architecture as defined in the Uikon Core API. That expects file-based and embeddable applications to handle their data storage through stores.
Stores are also the basis of the relational database provided by
A typical use of stores is to write files to memory without using the file server. This is a good thing to do when an application uses embedded documents.
It +is often necessary to persist a data structure such as an object by writing +it to memory as a sequence of bytes called a stream. A complex object is persisted +as multiple streams collectively known as a store. The Store component provides +access to stores in Symbian platform.
The +Store component requires no specific background apart from C++ and Symbian +platform.
The API has the following key concepts.
a store consisting of streams, implemented by
a store which persists beyond the lifetime of the application which
+creates it, implemented by
a store which can itself be stored as a stream in another store, implemented
+by
a store which resides in memory and exists only for the life of the
+store object, implemented by
a sequence of streams accessed by a UID, implemented by
A
+stream is a representation of a data structure (such as an object) as a sequence
+of bytes. Structures as complex as most applications require multiple streams
+to store their state. This is termed a store. Stream types that work with
+stores are provided by the
The Stores API defines both base classes that +define store abstractions without specifying the storage medium, and some +concrete store types.
The abstract classes are used as the base classes
+of separate APIs which use particular storage media. In particular the
Dictionary +stores are accessed by a UID whereas stream stores are accessed by a stream +ID. Persistent stores persist beyond the lifetime of the application that +created them: they have a root stream from which the other streams in the +store can be found. Embedded stores can be stored as streams in other stores: +once written they cannot be modified.
Stores are integrated with the +application architecture as defined in the Uikon Core API. That expects file-based +and embedded applications to handle their data storage through stores.
Stores
+are also the basis of the relational database provided by
A +typical use of stores is to write files to memory without using the file server. +This is a good thing to do when an application uses embedded documents.