CEmbeddedStore Class Reference
class CEmbeddedStore : public CPersistentStore
|
Encapsulates an embedded store.
The embedded store may contain an arbitrarily complex network of streams, but is viewed as simply another stream by the embedding store. This means that the embedded store can dealt with as a single stream for purposes of copying or deleting.
Once streams within the embedded store have been committed and closed, they cannot subsequently be changed, i.e. streams cannot be replaced, deleted, extended or changed in any way.
CPersistentStore
Constructor & Destructor Documentation
CEmbeddedStore(MStreamBuf *)
~CEmbeddedStore()
IMPORT_C
|
~CEmbeddedStore
|
(
|
)
|
|
Member Functions Documentation
ConstructL(RWriteStream &)
DoCommitL()
IMPORT_C void
|
DoCommitL
|
(
|
)
|
[private, virtual]
|
DoCreateL(TStreamId &)
Creates a new stream in the store. The function gets the allocated stream id in the anId parameter. A stream buffer for the stream should be returned, ready to write into the new stream. This provides the implementation for the
RStoreWriteStream::CreateL()
functions.
Parameters
TStreamId
& anId
|
On return, contains the allocated stream id.
|
DoSetRootL(TStreamId)
IMPORT_C void
|
DoSetRootL
|
(
|
TStreamId
|
anId
|
)
|
[private, virtual]
|
Host()
Returns a pointer to the stream buffer which is acting as host to this embedded store. The embedded store retains ownership of the host stream buffer.
Position(TStreamId)
Returns the position of the specified stream, within the host stream.
Parameters
TStreamId
anId
|
The stream id of the stream in the embedded store whose position within the host stream is to be returned.
|
Reattach(MStreamBuf *)
Takes ownership of the specified stream buffer. On return from this function, the embedded store assumes this to be the host stream buffer.
Parameters
MStreamBuf
* aHost
|
A pointer to the stream buffer over which the embedded store is to take ownership.
|
Start()
Returns the start position of this embedded store within the host stream.
Member Data Documentation
__MUTABLE TStreamExchange iHost
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.