ChspsDomStringPool Class Reference

class ChspsDomStringPool : public CBase

Class utilize flyweight pattern. Dom strings are stored once and referred with index. Class can be serialized.

xndomdocument.lib
Since
Series 60 3.1

Inherits from

Constructor & Destructor Documentation

ChspsDomStringPool(const TBool)

ChspsDomStringPool ( const TBool aAllowDuplicates ) [private]

C++ default constructor.

Parameters

const TBool aAllowDuplicates ETrue if duplicates are to be allowed. Supported for legacy reasons.

~ChspsDomStringPool()

~ChspsDomStringPool ( ) [virtual]

Destructor.

Member Functions Documentation

AddAllL(ChspsDomStringPool &)

void AddAllL ( ChspsDomStringPool & aStringPool )

Add all string from another string pool.

Parameters

ChspsDomStringPool & aStringPool Source string pool.

AddStringL(const TDesC8 &)

IMPORT_C TInt AddStringL ( const TDesC8 & aString )

Set dom string into string pool.

Parameters

const TDesC8 & aString String to add to string pool

AddStringL(HBufC8 *)

TInt AddStringL ( HBufC8 * aString )

Set dom string into string pool.

Parameters

HBufC8 * aString String to add to string pool. OWNERSHIP TRANSFERRED!

CloneL()

ChspsDomStringPool * CloneL ( )
Make a copy from original StringPool.
Since
Series 60 3.1

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

Count()

TInt Count ( ) const

Get amount of strings.

DoAddStringL(HBufC8 *)

TInt DoAddStringL ( HBufC8 * aNewString ) [private]

Add string to string pool and to optimizer also.

Parameters

HBufC8 * aNewString String to be added. OWNERSHIP TRANSFERRED.

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const

Parameters

RWriteStream & aStream Output stream

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream )

Parameters

RReadStream & aStream Input stream

NewL(const TBool)

ChspsDomStringPool * NewL ( const TBool aAllowDuplicates = EFalse ) [static]

Two-phased constructor.

Parameters

const TBool aAllowDuplicates = EFalse ETrue if duplicates are to be allowed. Supported for legacy reasons.

NewL(RReadStream &, const TBool)

ChspsDomStringPool * NewL ( RReadStream & aStream,
const TBool aAllowDuplicates = EFalse
) [static]

Two-phased stream constructor.

Parameters

RReadStream & aStream Stream where string pool is internalized.
const TBool aAllowDuplicates = EFalse ETrue if duplicates are to be allowed. Supported for legacy reasons.

Reset()

void Reset ( )

Reset string pool to be reused.

Since
Series 60 5.2

Size()

TInt Size ( ) const

Get object's data size in bytes.

String(const TInt)

const TDesC8 & String ( const TInt aStringRef )

Get reference to string.

Parameters

const TInt aStringRef

Member Data Documentation

TBool iAllowDuplicates

TBool iAllowDuplicates [private]

ETrue if string pool can contain duplicate entries. Must be supported for legacy reasons while loading xuikon odts.

RPointerArray< HBufC8 > iStringPool

RPointerArray < HBufC8 > iStringPool [private]

ThspsDomStringPoolOptimizer iStringPoolOptimizer

ThspsDomStringPoolOptimizer iStringPoolOptimizer [private]

String pool optimizer.