Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <S32STOR.H>
Link against: estor.lib

Class CPersistentStore

class CPersistentStore : public CStreamStore;

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

Members

Defined in CPersistentStore:

Inherited from CBase:

Inherited from CStreamStore:


Construction and destruction


CPersistentStore()

protected: inline CPersistentStore();

Description

[Top]


Member functions


Root()const

inline TStreamId Root() const;

Description

Returns the stream id of the root stream.

Return value

TStreamId

The id of the root stream.


SetRootL(TStreamId)

inline 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.


DoSetRootL(TStreamId)

private: IMPORT_C virtual void DoSetRootL(TStreamId anId);

Description

Implements the setting of theroot stream.

This function is called by CPersistentStore::SetRootL(TStreamId)

Parameters

TStreamId anId

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

See also:

[Top]


Member data


iRoot

protected: TStreamId iRoot;

Description