Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: S32STOR.H
Link against: estor.lib

Class RDictionaryWriteStream

class RDictionaryWriteStream : public RWriteStream;

Description

Supports the creation or replacement of a stream a dictionary store.

Derivation

Members

Defined in RDictionaryWriteStream:
AssignL(), AssignLC(), RDictionaryWriteStream(), RDictionaryWriteStream()

Inherited from RWriteStream:
Attach(), Close(), CommitL(), Detach(), Pop(), PushL(), Release(), Sink(), WriteInt16L(), WriteInt32L(), WriteInt8L(), WriteL(), WriteReal32L(), WriteReal64L(), WriteUint16L(), WriteUint32L(), WriteUint8L()

See also:


Construction and destruction


RDictionaryWriteStream()

inline RDictionaryWriteStream();

Description

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


RDictionaryWriteStream()

inline RDictionaryWriteStream(const MExternalizer< TStreamRef > &anExter);

Description

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

Parameters

const MExternalizer< TStreamRef > &anExter

Specifies an externaliser.

See also:

[Top]


Member functions


AssignL()

IMPORT_C void AssignL(CDictionaryStore &aDictStore, TUid aUid);

Description

Prepares a stream in the specified dictionary store for writing.

If no stream is associated with the specified UID, then a new stream is created and an association is made between the resulting stream id and the specified UID. If a stream is currently associated with the specified UID, then this existing stream is prepared for replacement.

Parameters

CDictionaryStore &aDictStore

The dictionary store which contains the new or replacement stream.

TUid aUid

The UID associated with the stream.

See also:


AssignLC()

IMPORT_C void AssignLC(CDictionaryStore &aDictStore, TUid aUid);

Description

Prepares a stream in the specified dictionary store for writing, and places a cleanup item for this RDictionaryWriteStream object onto the cleanup stack.

If no stream is associated with the specified UID, then a new stream is created and an association is made between the resulting stream id and the specified UID. If a stream is currently associated with the specified UID, then this existing stream is prepared for replacement.

Placing a cleanup item onto the cleanup stack allows allocated resources to be cleaned up if a subsequent leave occurs.

Parameters

CDictionaryStore &aDictStore

The dictionary store which contains the new or replacement stream.

TUid aUid

The UID associated with the stream.