TaggedDataParser Class Reference

class TaggedDataParser

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

Public Member Functions
voidConvertTextToTUintL(const TDesC8 &, TUint &)
voidConvertTextToUidL(const TDesC8 &, TUid &)
voidParseTaggedDataL(const TDesC8 &, MTaggedDataParserClient &)

Member Functions Documentation

ConvertTextToTUintL(const TDesC8 &, TUint &)

voidConvertTextToTUintL(const TDesC8 &aData,
TUint &aUid
)[static]

Converts a string to a TUint. The string must begin with "0x" and be 10 characters long, otherwise it is considered corrupt.

Parameters

const TDesC8 & aData
TUint & aUid

ConvertTextToUidL(const TDesC8 &, TUid &)

voidConvertTextToUidL(const TDesC8 &aData,
TUid &aUid
)[static]

Converts a string to a uid. If the string begin with "0x" it will be parsed as Hex, else Decimal.

Parameters

const TDesC8 & aData
TUid & aUid

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