| class CStreamStore : public CBase |
Provides the core abstract framework for stores allowing streams to be created and manipulated.
| Public Member Functions | |
|---|---|
| IMPORT_C TInt | Commit() |
| void | CommitL() |
| IMPORT_C TInt | CompactL() |
| IMPORT_C void | Delete(TStreamId) |
| IMPORT_C void | DeleteL(TStreamId) |
| TStreamId | ExtendL() |
| IMPORT_C TInt | ReclaimL() |
| IMPORT_C void | Revert() |
| void | RevertL() |
| Private Member Functions | |
|---|---|
| IMPORT_C void | DoCommitL() |
| IMPORT_C MIncrementalCollector * | DoCompactL() |
| MStreamBuf * | DoCreateL(TStreamId &) |
| IMPORT_C void | DoDeleteL(TStreamId) |
| IMPORT_C TStreamId | DoExtendL() |
| MStreamBuf * | DoReadL(TStreamId) |
| IMPORT_C MIncrementalCollector * | DoReclaimL() |
| IMPORT_C MStreamBuf * | DoReplaceL(TStreamId) |
| IMPORT_C void | DoRevertL() |
| IMPORT_C MStreamBuf * | DoWriteL(TStreamId) |
| MStreamBuf * | DoCreateL | ( | TStreamId & | anId | ) | [private, pure virtual] |
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.
The stream buffer to be written to.
| TStreamId & anId | On return, contains the allocated stream id. |
| IMPORT_C void | DoDeleteL | ( | TStreamId | anId | ) | [private, virtual] |
| TStreamId anId |
| MStreamBuf * | DoReadL | ( | TStreamId | anId | ) | const [private, pure virtual] |
Opens the requested stream for reading. The function should return a stream buffer positioned at the beginning of this stream.
This function is called by the OpenL() and OpenLC() member functions of RStoreReadStream.
A stream buffer positioned at the beginning of the stream to be read.
| TStreamId anId | The stream to be read. |
| IMPORT_C MStreamBuf * | DoReplaceL | ( | TStreamId | anId | ) | [private, virtual] |
| TStreamId anId |
| IMPORT_C MStreamBuf * | DoWriteL | ( | TStreamId | anId | ) | [private, virtual] |
| TStreamId anId |
| TStreamId | ExtendL | ( | ) | [inline] |
Generates a new stream within this store, and returns its id. This function can be used to create a new stream in advance of being written to.
This function is not supported by the direct file store, CDirectFileStore.
The stream id for the newly generated stream.
CDirectFileStore