PCStore::CDirectFileStore Class Reference

#include <pcstore/directfilestore.h>

class PCStore::CDirectFileStore

Detailed Description

Direct file store.

A direct file store implements a set of the operations to open store, create streams(CStoreWriteStream and CStoreReadStream), set root stream id to the store.

Objects can be externalized to streams represented by class CStoreWriteStream. Once the streams have been closed, they cannot subsequently be changed, i.e. streams cannot be replaced, deleted, extended or changed in any way.

Existing direct file stores can be opened with this class. Objects can be restored with class CStoreReadStream.

Before closing a new store, the root stream id must be set. After opening an existing store, the first thing done is to look up the root stream id. The root stream can then be opened and data read from the store.

See also: CStoreWriteStream CStoreReadStream

Member Enumeration Documentation

Enum TStoreMode

EnumeratorValueDescription
EReadStore0
EWriteStore1

Constructor & Destructor Documentation

~CDirectFileStore ( )

~CDirectFileStore()

Member Function Documentation

CreateReadStream ( TStreamId )

CStoreReadStream *CreateReadStream(TStreamIdaId)

CreateWriteStream ( TStreamId & )

CStoreWriteStream *CreateWriteStream(TStreamId &aId)

Open ( const char * )

CDirectFileStore *Open(const char *aFileName)[static]

Replace ( const char * )

CDirectFileStore *Replace(const char *aFileName)[static]

Replace ( const char *, const TUidType & )

CDirectFileStore *Replace(const char *aFileName,
const TUidType &aType
)[static]

Root ( )

TStreamId Root()const

SetRoot ( TStreamId )

voidSetRoot(TStreamIdaId)