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 TBoolaAllowDuplicates)[private]

C++ default constructor.

Parameters

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

~ChspsDomStringPool()

~ChspsDomStringPool()[virtual]

Destructor.

Member Functions Documentation

AddAllL(ChspsDomStringPool &)

voidAddAllL(ChspsDomStringPool &aStringPool)

Add all string from another string pool.

Parameters

ChspsDomStringPool & aStringPoolSource string pool.

AddStringL(const TDesC8 &)

IMPORT_C TIntAddStringL(const TDesC8 &aString)

Set dom string into string pool.

Parameters

const TDesC8 & aStringString to add to string pool

AddStringL(HBufC8 *)

TInt AddStringL(HBufC8 *aString)

Set dom string into string pool.

Parameters

HBufC8 * aStringString to add to string pool. OWNERSHIP TRANSFERRED!

CloneL()

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

ConstructL()

voidConstructL()[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 * aNewStringString to be added. OWNERSHIP TRANSFERRED.

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Externalize object.

Parameters

RWriteStream & aStreamOutput stream

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Internalize object.

Parameters

RReadStream & aStreamInput stream

NewL(const TBool)

ChspsDomStringPool *NewL(const TBoolaAllowDuplicates = EFalse)[static]

Two-phased constructor.

Parameters

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

NewL(RReadStream &, const TBool)

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

Two-phased stream constructor.

Parameters

RReadStream & aStreamStream where string pool is internalized.
const TBool aAllowDuplicates = EFalseETrue if duplicates are to be allowed. Supported for legacy reasons.

Reset()

voidReset()

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 TIntaStringRef)

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.