Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: s32stor.h
Link against: estor.lib

Class CPersistentStore

CPersistentStore

Support

Supported from 5.0

Description

Persistent store abstract base class. It provides the behaviour for setting and retrieving the root stream id.

Before closing a persistent store, the root stream id must be set. After opening a persistent 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.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CPersistentStorePersistent store abstract base class
CStreamStoreProvides the core abstract framework for stores allowing streams to be created and manipulated

Defined in CPersistentStore:
CPersistentStore(), DoSetRootL(), Root(), SetRootL()

Inherited from CBase:
operator new()

Inherited from CStreamStore:
Commit(), CommitL(), CompactL(), Delete(), DeleteL(), DoCommitL(), DoCompactL(), DoCreateL(), DoDeleteL(), DoReadL(), DoReclaimL(), DoReplaceL(), DoRevertL(), DoWriteL(), ExtendL(), ReclaimL(), Revert(), RevertL()

See also:


Construction and destruction


CPersistentStore()

protected: CPersistentStore();

Description

Protected constructor. Prevents objects of this type being constructed.

[Top]


Setting and getting the root stream id


Root()

TStreamId Root() const;

Description

Returns the stream id of the root stream.

Return value

TStreamId

The id of the root stream.


SetRootL()

void SetRootL(TStreamId anId);

Description

Sets the specified stream as the root stream.

Parameters

TStreamId anId

The id of the stream which is to be the root stream of this store.

[Top]


Store framework functions


DoSetRootL()

private: virtual void DoSetRootL(TStreamId anId);

Description

Implements the setting of theroot stream.

This function is called by SetRootL()

Parameters

TStreamId anId

The id of the stream which is to be the root stream of the store.

See also: