TaggedDataParser Class Reference

class TaggedDataParser

Utility class used to parse data separated by xml-style tags.

Public Member Functions
voidAddItemIntoArrayL(TPtrC8 &, CDesCArray *&)
voidConvertText8ToTIntL(const TDesC8 &, TInt &)
voidExtractIntoArrayL(const TDesC8 &, CDesCArray *&)
voidParseTaggedDataL(const TDesC8 &, MTaggedDataParserClient &)

Member Functions Documentation

AddItemIntoArrayL(TPtrC8 &, CDesCArray *&)

voidAddItemIntoArrayL(TPtrC8 &aItem,
CDesCArray *&aArray
)[static]

Add an item into descriptor array

Parameters

TPtrC8 & aItemthe item to be added to the descriptor array
CDesCArray *& aArraythe array to add the item to

ConvertText8ToTIntL(const TDesC8 &, TInt &)

voidConvertText8ToTIntL(const TDesC8 &aData,
TInt &aInt
)[static]

Converts a string to a Tint. The string may contain hex value or decimal value

Parameters

const TDesC8 & aData
TInt & aInt

ExtractIntoArrayL(const TDesC8 &, CDesCArray *&)

voidExtractIntoArrayL(const TDesC8 &aText,
CDesCArray *&aArray
)[static]

Extracts elemements separated by semicolon into array descriptor

Parameters

const TDesC8 & aTextoriginal content to extract elements from
CDesCArray *& aArraythe array to add the extracted elements to

ParseTaggedDataL(const TDesC8 &, MTaggedDataParserClient &)

voidParseTaggedDataL(const TDesC8 &aData,
MTaggedDataParserClient &aClient
)[static]

Splits aData into xml-style tags and values, and gets aClient to process each tag/value pair.

Parameters

const TDesC8 & aData
MTaggedDataParserClient & aClient