|
||
class RStoreWriteStream : public RWriteStream;
Supports the writing of a stream to a store.
The class allows:
creation of a new stream
overwriting of an existing stream
replacement of an existing stream
appending to an existing stream
RWriteStream
- ...
RStoreWriteStream
-
Supports the writing of a stream to a store.
Defined in RStoreWriteStream
:
AppendL(CStreamStore &,TStreamId)
Opens an existing stream and prepares it for appending.AppendLC(CStreamStore &,TStreamId)
Opens an existing stream, prepares it for appending, and puts a cleanup item ont...CreateL(CStreamStore &)
Creates a new stream.CreateLC(CStreamStore &)
Creates a new stream, putting a cleanup item onto the cleanup stack.OpenL(CStreamStore &,TStreamId)
Opens an existing stream and prepares it for overwriting.OpenLC(CStreamStore &,TStreamId)
Opens an existing stream, prepares it for overwriting, and puts a cleanup item o...RStoreWriteStream()
Constructs an uninitialised object. It is necessary because there are also non-d...RStoreWriteStream(const MExternalizer< TStreamRef > &)
Constructs an object with an externaliser. The store map CStoreMap is an example...ReplaceL(CStreamStore &,TStreamId)
Opens an existing stream and prepares it for replacement.ReplaceLC(CStreamStore &,TStreamId)
Opens an existing stream, prepares it for replacement and puts a cleanup item on...Inherited from RWriteStream
:
Attach(MStreamBuf *)
Sets the stream buffer sink for this write stream. The existing sink, if there i...Close()
Commits data to the stream before freeing resources used by the stream. This ens...CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...Detach()
Sets the stream buffer sink for this write stream to NULL. The existing sink, if...Pop()
Removes the cleanup item for this write stream object from the cleanup stack. PushL()
Puts a cleanup item for this write stream object onto the cleanup stack. This al...RWriteStream(MStreamBuf *)
Constructs a write stream over the supplied stream buffer. The stream has no ass...RWriteStream(const MExternalizer< TStreamRef > &)
Constructs a write stream with an associated store map. The stream buffer sink i...Release()
Frees resources before abandoning the stream. The function is called after data ...Sink()
Gets the underlying stream buffer for the write stream. This provides access to ...WriteInt16L(TInt)
Writes a TInt value as a 16Â bit value to this stream.WriteInt32L(TInt32)
Writes a TInt32 value as a 32 bit value to this stream.WriteInt8L(TInt)
Writes a TInt value as an 8Â bit value to this stream.WriteL(RReadStream &)
Writes the content of the specified read stream to this write stream.WriteL(RReadStream &,TInt)
Writes data of the specified length from the specified read stream to this strea...WriteL(const TDesC16 &)
Writes the content of the 16 bit descriptor to the stream. No other information ...WriteL(const TDesC16 &,TInt)
Writes data of the specified length from the 16 bit descriptor to the stream. No...WriteL(const TDesC8 &)
Writes the content of the 8 bit descriptor to the stream. No other information i...WriteL(const TDesC8 &,TInt)
Writes data of the specified length from the 8 bit descriptor to the stream. No ...WriteL(const TUint16 *,TInt)
Writes 16 bit data of the specified length from the specified location to this w...WriteL(const TUint8 *,TInt)
Writes 8 bit data of the specified length from the specified location to this wr...WriteReal32L(TReal)
Writes a TReal value as a 32 bit value to this stream.WriteReal64L(TReal64)
Writes a TReal64 value as a 64 bit value to this stream.WriteUint16L(TUint)
Writes a TUint value as a 16 bit value to this stream.WriteUint32L(TUint32)
Writes a TUint32 value as a 32 bit value to this stream.WriteUint8L(TUint)
Writes a TUint value as an 8 bit value to this stream.inline RStoreWriteStream();
Constructs an uninitialised object. It is necessary because there are also non-default constructors in this class.
inline RStoreWriteStream(const MExternalizer< TStreamRef > &anExter);
Constructs an object with an externaliser. The store map CStoreMap
is an example of an externalizer.
|
IMPORT_C TStreamId CreateL(CStreamStore &aStore);
Creates a new stream.
The function creates a new stream in the specified store and prepares the stream for writing. The function returns the new stream id, and leaves if it cannot complete successfully.
Note that a call to this function must be matched by a call to RWriteStream::CommitL()
before this object is disposed of.
|
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...IMPORT_C TStreamId CreateLC(CStreamStore &aStore);
Creates a new stream, putting a cleanup item onto the cleanup stack.
The function creates a new stream in the specified store and prepares the stream for writing. The function returns the new stream id, and leaves if it cannot complete successfully.
Putting a cleanup item onto the cleanup stack allows allocated resources to be cleaned up if a subsequent leave occurs.
Note that a call to this function must be matched by a call to RWriteStream::CommitL()
before this object is disposed of.
|
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...IMPORT_C void OpenL(CStreamStore &aStore, TStreamId anId);
Opens an existing stream and prepares it for overwriting.
The function leaves if cannot complete successfully.
Note that a call to this function must be matched by a call to RWriteStream::CommitL()
before this object is disposed of.
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...IMPORT_C void OpenLC(CStreamStore &aStore, TStreamId anId);
Opens an existing stream, prepares it for overwriting, and puts a cleanup item onto the cleanup stack.
The function leaves if cannot complete successfully.
Putting a cleanup item onto the cleanup stack allows allocated resources to be cleaned up if a subsequent leave occurs.
Note that a call to this function must be matched by a call to RWriteStream::CommitL()
before this object is disposed of.
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...IMPORT_C void ReplaceL(CStreamStore &aStore, TStreamId anId);
Opens an existing stream and prepares it for replacement.
The function leaves if it cannot complete successfully.
Note that a call to this function must be matched by a call to RWriteStream::CommitL()
before this object is disposed of.
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...IMPORT_C void ReplaceLC(CStreamStore &aStore, TStreamId anId);
Opens an existing stream, prepares it for replacement and puts a cleanup item onto the cleanup stack.
The function leaves if it cannot complete successfully.
Placing a cleanup item onto the cleanup stack allows allocated resources to be cleaned up if a subsequent leave occurs.
Note that a call to this function must be matched by a call to RWriteStream::CommitL()
before this object is disposed of.
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...IMPORT_C void AppendL(CStreamStore &aStore, TStreamId anId);
Opens an existing stream and prepares it for appending.
The function leaves if it cannot complete successfully.
Note that a call to this function must be matched by a call to RWriteStream::CommitL()
before this object is disposed of.
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...IMPORT_C void AppendLC(CStreamStore &aStore, TStreamId anId);
Opens an existing stream, prepares it for appending, and puts a cleanup item onto the cleanup stack.
The function leaves if it cannot complete successfully.
Putting a cleanup item onto the cleanup stack allows allocated resources to be cleaned up if a subsequent leave occurs.
Note that call to this function must be matched by a call to RWriteStream::CommitL()
before the RStoreWriteStream object is disposed of.
|
RWriteStream::Release()
Frees resources before abandoning the stream. The function is called after data ...RWriteStream::CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...