RStoreWriteStream Class Reference

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

Inherits from

Constructor & Destructor Documentation

RStoreWriteStream()

RStoreWriteStream()[inline]

Constructs an uninitialised object. It is necessary because there are also non-default constructors in this class.

RStoreWriteStream(const MExternalizer< TStreamRef > &)

RStoreWriteStream(const MExternalizer< TStreamRef > &anExter)[inline]

Constructs an object with an externaliser. The store map CStoreMap is an example of an externalizer.

Parameters

const MExternalizer< TStreamRef > & anExterSpecifies an externaliser

Member Functions Documentation

AppendL(CStreamStore &, TStreamId)

IMPORT_C voidAppendL(CStreamStore &aStore,
TStreamIdanId
)

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 CommitL() before this object is disposed of.

RWriteStream::Release() RWriteStream::CommitL() CDirectFileStore CPermanentFileStore

Parameters

CStreamStore & aStoreA reference to the store containing the stream.
TStreamId anIdThe id of the stream to be appended.

AppendLC(CStreamStore &, TStreamId)

IMPORT_C voidAppendLC(CStreamStore &aStore,
TStreamIdanId
)

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 CommitL() before the RStoreWriteStream object is disposed of.

RWriteStream::Release() RWriteStream::CommitL() CDirectFileStore CPermanentFileStore

Parameters

CStreamStore & aStoreA reference to the store containing the stream.
TStreamId anIdThe id of the stream to be appended.

CreateL(CStreamStore &)

IMPORT_C TStreamIdCreateL(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 CommitL() before this object is disposed of.

RWriteStream::Release() RWriteStream::CommitL()

Parameters

CStreamStore & aStoreA reference to the store which is to contain the new stream.

CreateLC(CStreamStore &)

IMPORT_C TStreamIdCreateLC(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 CommitL() before this object is disposed of.

RWriteStream::Release() RWriteStream::CommitL()

Parameters

CStreamStore & aStoreA reference to the store which is to contain the new stream.

OpenL(CStreamStore &, TStreamId)

IMPORT_C voidOpenL(CStreamStore &aStore,
TStreamIdanId
)

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 CommitL() before this object is disposed of.

RWriteStream::Release() RWriteStream::CommitL() CDirectFileStore

Parameters

CStreamStore & aStoreA reference to the store containing the stream.
TStreamId anIdThe id of the stream to be overwritten.

OpenLC(CStreamStore &, TStreamId)

IMPORT_C voidOpenLC(CStreamStore &aStore,
TStreamIdanId
)

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 CommitL() before this object is disposed of.

RWriteStream::Release() RWriteStream::CommitL() CDirectFileStore

Parameters

CStreamStore & aStoreA reference to the store containing the stream.
TStreamId anIdThe id of the stream to be overwritten.

ReplaceL(CStreamStore &, TStreamId)

IMPORT_C voidReplaceL(CStreamStore &aStore,
TStreamIdanId
)

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 CommitL() before this object is disposed of.

RWriteStream::Release() RWriteStream::CommitL() CDirectFileStore

Parameters

CStreamStore & aStoreA reference to the store containing the stream.
TStreamId anIdThe id of the stream to be replaced.

ReplaceLC(CStreamStore &, TStreamId)

IMPORT_C voidReplaceLC(CStreamStore &aStore,
TStreamIdanId
)

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 CommitL() before this object is disposed of.

RWriteStream::Release() RWriteStream::CommitL() CDirectFileStore

Parameters

CStreamStore & aStoreA reference to the store containing the stream.
TStreamId anIdThe id of the stream to be replaced.