class CStreamDictionary : public CBase |
Public Member Functions | |
---|---|
CStreamDictionary () | |
~CStreamDictionary () | |
IMPORT_C void | AssignL ( TUid , TStreamId ) |
IMPORT_C TStreamId | At ( TUid ) |
IMPORT_C void | ExternalizeL ( RWriteStream &) |
IMPORT_C void | InternalizeL ( RReadStream &) |
IMPORT_C TBool | IsNull () |
IMPORT_C CStreamDictionary * | NewL () |
IMPORT_C CStreamDictionary * | NewLC () |
IMPORT_C void | Remove ( TUid ) |
Private Attributes | |
---|---|
CArrayFixSeg < TEntry > | iArray |
IMPORT_C | ~CStreamDictionary | ( | ) |
Frees resources owned by the object, prior to its destruction.
IMPORT_C void | AssignL | ( | TUid | aUid, |
TStreamId | anId | |||
) |
Creates or changes an association between a UID and a stream id.
If the stream dictionary already contains an entry with the same UID as aUid, then the associated stream id in that entry is replaced by anId.
If anId has the value KNullStreamId, then the function attempts to remove the entry whose unique identifier matches aUid.
IMPORT_C TStreamId | At | ( | TUid | aUid | ) | const |
Returns the stream id associated with the specified UID.
TUid aUid | The UID whose associated stream id is to be returned. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises an object of this class to a write stream.
The presence of this function means that the standard templated operator<<() can be used to externalise objects of this class.
RWriteStream & aStream | Stream to which the object should be externalised |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalises an object of this class from a read stream.
The presence of this function means that the standard templated operator>>() can be used to internalise objects of this class.
Note that this function has assignment semantics. It replaces the old value of the object with a new value read from the read stream.
RReadStream & aStream | Stream from which the object should be internalised. |
IMPORT_C CStreamDictionary * | NewL | ( | ) | [static] |
Allocates, constructs and returns a pointer to a new stream dictionary.
The function leaves if it cannot complete successfully.
IMPORT_C CStreamDictionary * | NewLC | ( | ) | [static] |
Allocates, constructs and returns a pointer to a new stream dictionary, putting the pointer onto the cleanup stack.
Putting the pointer onto the cleanup stack allows the object and allocated resources to be cleaned up if a subsequent leave occurs.
The function leaves if it cannot complete successfully.
IMPORT_C void | Remove | ( | TUid | aUid | ) |
Removes an association from the stream dictionary.
The function searches the stream dictionary for an entry whose UID matches aUid. If a match is found, the entry is removed. If no match is found, the stream dictionary remains unchanged.
TUid aUid | The UID whose matching entry is to be removed from the stream dictionary. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.