CNSmlXmlParser Class Reference

class CNSmlXmlParser : public CBase

Inherits from

Public Member Functions
CNSmlXmlParser()
~CNSmlXmlParser()
voidAppendElement(TPtr8 &, const TDesC8 &, const TDesC8 &)
voidAppendElement(TPtr8 &, const TDesC8 &)
voidAppendEndElement(TPtr8 &, const TDesC8 &)
TPtrC8 BooleanToString(const TNSmlBoolean)
TInt CharactersToEntitiesL(HBufC8 *&, TInt, TInt)
TNSmlParserGeneratorError CheckError(const TInt)
TInt CountXmlSizeL()
TBuf8< KDateTimeLength >DateTimeToStringL(const TTime &)
TInt EntitiesToCharactersL(HBufC8 *&, TInt, TInt)
TNSmlParserGeneratorError GenerateXml(HBufC8 *&)
TBuf8< KIntegerMaxLength >IntegerToString(const TInt)
TBool IsWhitespace(const TDesC8 &)
voidLeaveIfNotWhiteSpaceL(const TDesC8 &)
TNSmlParserGeneratorError ParseXml(HBufC8 *)
voidPreProcessL(HBufC8 *)
TInt SizeOfBoolean(const TNSmlBoolean, const TDesC8 &)
TInt SizeOfDatetime(const TDesC8 &)
TInt SizeOfElements(const TDesC8 &)
TInt SizeOfInteger(const TDesC8 &)
TInt SizeOfString(const HBufC8 *, const TDesC8 &)
TNSmlBoolean StringToBooleanL(const TPtrC8 &)
TInt StringToIntegerL(const TPtrC8 &)
TTime StringToTTimeL(TPtrC8 &)
Protected Member Functions
voidAddToBufferL(const TText, HBufC8 *&)
voidAddToCompleteL(const TPtrC8)
voidNextDataL(TPtrC8)
voidNextElementL(TPtrC8)
voidParseL(TPtrC8 &)
voidResetBufferL(HBufC8 *&)
Private Member Functions
voidCheckDatetimeErrorL(const TInt)
TInt ReplaceL(HBufC8 *&, const TDesC8 &, const TDesC8 &, TInt, TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
HBufC8 *iBuffer
HBufC8 *iCompleteBuffer

Constructor & Destructor Documentation

CNSmlXmlParser()

IMPORT_CCNSmlXmlParser()

~CNSmlXmlParser()

IMPORT_C~CNSmlXmlParser()[virtual]

Member Functions Documentation

AddToBufferL(const TText, HBufC8 *&)

voidAddToBufferL(const TTextc,
HBufC8 *&aBuf
)const [protected]

Parameters

const TText c
HBufC8 *& aBuf

AddToCompleteL(const TPtrC8)

voidAddToCompleteL(const TPtrC8aStr)[protected]

Parameters

const TPtrC8 aStr

AppendElement(TPtr8 &, const TDesC8 &, const TDesC8 &)

voidAppendElement(TPtr8 &aPtr,
const TDesC8 &aElementName,
const TDesC8 &aValue
)const

Parameters

TPtr8 & aPtr
const TDesC8 & aElementName
const TDesC8 & aValue

AppendElement(TPtr8 &, const TDesC8 &)

voidAppendElement(TPtr8 &aPtr,
const TDesC8 &aElementName
)const

Parameters

TPtr8 & aPtr
const TDesC8 & aElementName

AppendEndElement(TPtr8 &, const TDesC8 &)

voidAppendEndElement(TPtr8 &aPtr,
const TDesC8 &aElementName
)const

Parameters

TPtr8 & aPtr
const TDesC8 & aElementName

BooleanToString(const TNSmlBoolean)

TPtrC8 BooleanToString(const TNSmlBooleanaValue)const

Parameters

const TNSmlBoolean aValue

CharactersToEntitiesL(HBufC8 *&, TInt, TInt)

TInt CharactersToEntitiesL(HBufC8 *&aXml,
TIntaStartPos,
TIntaEndPos
)const

Parameters

HBufC8 *& aXml
TInt aStartPos
TInt aEndPos

CheckDatetimeErrorL(const TInt)

voidCheckDatetimeErrorL(const TInterror)const [private]

Parameters

const TInt error

CheckError(const TInt)

TNSmlParserGeneratorError CheckError(const TInterror)const

Parameters

const TInt error

CountXmlSizeL()

TInt CountXmlSizeL()[pure virtual]

DateTimeToStringL(const TTime &)

TBuf8< KDateTimeLength >DateTimeToStringL(const TTime &aValue)const

Parameters

const TTime & aValue

EntitiesToCharactersL(HBufC8 *&, TInt, TInt)

TInt EntitiesToCharactersL(HBufC8 *&aXml,
TIntaStartPos,
TIntaEndPos
)const

Parameters

HBufC8 *& aXml
TInt aStartPos
TInt aEndPos

GenerateXml(HBufC8 *&)

TNSmlParserGeneratorError GenerateXml(HBufC8 *&aXml)[pure virtual]

Parameters

HBufC8 *& aXml

IntegerToString(const TInt)

TBuf8< KIntegerMaxLength >IntegerToString(const TIntaValue)const

Parameters

const TInt aValue

IsWhitespace(const TDesC8 &)

TBool IsWhitespace(const TDesC8 &aText)const

Parameters

const TDesC8 & aText

LeaveIfNotWhiteSpaceL(const TDesC8 &)

voidLeaveIfNotWhiteSpaceL(const TDesC8 &aText)const

Parameters

const TDesC8 & aText

NextDataL(TPtrC8)

voidNextDataL(TPtrC8aData)[protected, pure virtual]

Parameters

TPtrC8 aData

NextElementL(TPtrC8)

voidNextElementL(TPtrC8aElement)[protected, pure virtual]

Parameters

TPtrC8 aElement

ParseL(TPtrC8 &)

voidParseL(TPtrC8 &aXml)[protected]

Parameters

TPtrC8 & aXml

ParseXml(HBufC8 *)

TNSmlParserGeneratorError ParseXml(HBufC8 *aXml)[pure virtual]

Parameters

HBufC8 * aXml

PreProcessL(HBufC8 *)

voidPreProcessL(HBufC8 *aXml)const

Parameters

HBufC8 * aXml

ReplaceL(HBufC8 *&, const TDesC8 &, const TDesC8 &, TInt, TInt)

TInt ReplaceL(HBufC8 *&aText,
const TDesC8 &aTarget,
const TDesC8 &aItem,
TIntaStartPos,
TIntaEndPos
)const [private]

Parameters

HBufC8 *& aText
const TDesC8 & aTarget
const TDesC8 & aItem
TInt aStartPos
TInt aEndPos

ResetBufferL(HBufC8 *&)

voidResetBufferL(HBufC8 *&aBuf)const [protected]

Parameters

HBufC8 *& aBuf

SizeOfBoolean(const TNSmlBoolean, const TDesC8 &)

TInt SizeOfBoolean(const TNSmlBooleanaValue,
const TDesC8 &aElementName
)const

Parameters

const TNSmlBoolean aValue
const TDesC8 & aElementName

SizeOfDatetime(const TDesC8 &)

TInt SizeOfDatetime(const TDesC8 &aElementName)const

Parameters

const TDesC8 & aElementName

SizeOfElements(const TDesC8 &)

TInt SizeOfElements(const TDesC8 &aElementName)const

Parameters

const TDesC8 & aElementName

SizeOfInteger(const TDesC8 &)

TInt SizeOfInteger(const TDesC8 &aElementName)const

Parameters

const TDesC8 & aElementName

SizeOfString(const HBufC8 *, const TDesC8 &)

TInt SizeOfString(const HBufC8 *aValue,
const TDesC8 &aElementName
)const

Parameters

const HBufC8 * aValue
const TDesC8 & aElementName

StringToBooleanL(const TPtrC8 &)

TNSmlBoolean StringToBooleanL(const TPtrC8 &aValue)const

Parameters

const TPtrC8 & aValue

StringToIntegerL(const TPtrC8 &)

TInt StringToIntegerL(const TPtrC8 &aValue)const

Parameters

const TPtrC8 & aValue

StringToTTimeL(TPtrC8 &)

TTime StringToTTimeL(TPtrC8 &aValue)const

Parameters

TPtrC8 & aValue

Member Data Documentation

HBufC8 * iBuffer

HBufC8 *iBuffer[protected]

HBufC8 * iCompleteBuffer

HBufC8 *iCompleteBuffer[protected]