Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from RWriteStream:


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(const MExternalizer< TStreamRef > &)

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.

[Top]


Member functions


AssignL(CDictionaryStore &,TUid)

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(CDictionaryStore &,TUid)

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.