|
||
class CPersistentStore : public CStreamStore;
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.
CBase
-
Base class for all classes to be instantiated on the heap.
CStreamStore
- ...
CPersistentStore
- ...
Defined in CPersistentStore
:
CPersistentStore()
DoSetRootL(TStreamId)
Implements the setting of theroot stream.Root()const
Returns the stream id of the root stream.SetRootL(TStreamId)
Sets the specified stream as the root stream.iRoot
Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from CStreamStore
:
Commit()
Commits changes.CommitL()
Commit changes and leaves if unsuccessful.CompactL()
Compacts the store. This returns free space to the appropriate system pool, for ...Delete(TStreamId)
Deletes the specified stream from this store.DeleteL(TStreamId)
Deletes the specified stream from this store, leaving if unsuccessful.ExtendL()
Generates a new stream within this store, and returns its id. This function can ...ReclaimL()
Reclaims space within a store, returning the total amount of free space availabl...Revert()
Rolls back the store to its state at the last commit point.RevertL()
Rolls back the store to its state at the last commit point and leaves if unsucce...inline TStreamId Root() const;
Returns the stream id of the root stream.
|
inline void SetRootL(TStreamId anId);
Sets the specified stream as the root stream.
|
private: IMPORT_C virtual void DoSetRootL(TStreamId anId);
Implements the setting of theroot stream.
This function is called by CPersistentStore::SetRootL(TStreamId)
|
CPersistentStore::SetRootL(TStreamId)
Sets the specified stream as the root stream.protected: TStreamId iRoot;