TaggedDataParser Class Reference

class TaggedDataParser

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

Public Member Functions
void AddItemIntoArrayL ( TPtrC8 &, CDesCArray *&)
void ConvertText8ToTIntL (const TDesC8 &, TInt &)
void ExtractIntoArrayL (const TDesC8 &, CDesCArray *&)
void ParseTaggedDataL (const TDesC8 &, MTaggedDataParserClient &)

Member Functions Documentation

AddItemIntoArrayL(TPtrC8 &, CDesCArray *&)

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

Add an item into descriptor array

Parameters

TPtrC8 & aItem the item to be added to the descriptor array
CDesCArray *& aArray the array to add the item to

ConvertText8ToTIntL(const TDesC8 &, TInt &)

void ConvertText8ToTIntL ( 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 *&)

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

Extracts elemements separated by semicolon into array descriptor

Parameters

const TDesC8 & aText original content to extract elements from
CDesCArray *& aArray the array to add the extracted elements to

ParseTaggedDataL(const TDesC8 &, MTaggedDataParserClient &)

void ParseTaggedDataL ( 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