03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

File Name Purpose<br />

s32stor.h CStreamStore Base class, with extend, delete, commit,<br />

revert, reclaim, and compact functions – not<br />

all of which are available in all<br />

implementations.<br />

s32stor.h CPersistentStore Adds a root stream to CstreamStore.<br />

s32file.h CEmbeddedStore An embedded store: opens a new one on a<br />

write stream or an old one on a read stream.<br />

s32stor.h CFileStore File-based persistent store. Constructors<br />

specify either an RFs and a filename or an<br />

already open RFile.<br />

s32file.h CDirectFileStore Direct file store. Has a wide variety of<br />

constructors supporting all file-related open<br />

functions(open, create, replace, and temp).<br />

Can also be constructed from an already<br />

open RFile.<br />

s32file.h CPermanentFileStore Permanent file store. Has a wide variety of<br />

constructors.<br />

s32mem.h CBufStore Nonpersistent store in a privately owned<br />

CbufBase.<br />

s32crypt.h CSecureStore Secure store with encrypted streams and<br />

the like. Constructors specify host stream<br />

store, CSecurityBase encryption<br />

algorithm, and an initialization string.<br />

Beware of the following sources of potential confusion:<br />

� Don't get confused between a persistent store and a permanent file store. A<br />

persistent store has a root stream and can persist after you've closed it. A permanent<br />

file store is the type of file store that's used by database applications; the database itself<br />

is permanent, although its entries may be saved, deleted, or replaced.<br />

� Don't use file write streams and file read streams to access file stores; you use them to<br />

access files when the file is not a file store. All store types should be accessed with<br />

store write streams and store read streams – most often, you only need to use the write<br />

stream and read stream interfaces.<br />

13.8 Dictionary Stores and .ini Files<br />

A persistent stream store includes a stream network in which streams may contain stream<br />

IDs that refer to other streams and which has a single root stream.<br />

In contrast, a dictionary store contains a list of streams, each of which is accessed using a<br />

UID, rather than a stream ID:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!