CNSmlXmlParser Class Reference

class CNSmlXmlParser : public CBase

Inherits from

Public Member Functions
CNSmlXmlParser ()
~CNSmlXmlParser ()
void AppendElement ( TPtr8 &, const TDesC8 &, const TDesC8 &)
void AppendElement ( TPtr8 &, const TDesC8 &)
void AppendEndElement ( 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 &)
void LeaveIfNotWhiteSpaceL (const TDesC8 &)
TNSmlParserGeneratorError ParseXml ( HBufC8 *)
void PreProcessL ( 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
void AddToBufferL (const TText , HBufC8 *&)
void AddToCompleteL (const TPtrC8 )
void NextDataL ( TPtrC8 )
void NextElementL ( TPtrC8 )
void ParseL ( TPtrC8 &)
void ResetBufferL ( HBufC8 *&)
Private Member Functions
void CheckDatetimeErrorL (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_C CNSmlXmlParser ( )

~CNSmlXmlParser()

IMPORT_C ~CNSmlXmlParser ( ) [virtual]

Member Functions Documentation

AddToBufferL(const TText, HBufC8 *&)

void AddToBufferL ( const TText c,
HBufC8 *& aBuf
) const [protected]

Parameters

const TText c
HBufC8 *& aBuf

AddToCompleteL(const TPtrC8)

void AddToCompleteL ( const TPtrC8 aStr ) [protected]

Parameters

const TPtrC8 aStr

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

void AppendElement ( TPtr8 & aPtr,
const TDesC8 & aElementName,
const TDesC8 & aValue
) const

Parameters

TPtr8 & aPtr
const TDesC8 & aElementName
const TDesC8 & aValue

AppendElement(TPtr8 &, const TDesC8 &)

void AppendElement ( TPtr8 & aPtr,
const TDesC8 & aElementName
) const

Parameters

TPtr8 & aPtr
const TDesC8 & aElementName

AppendEndElement(TPtr8 &, const TDesC8 &)

void AppendEndElement ( TPtr8 & aPtr,
const TDesC8 & aElementName
) const

Parameters

TPtr8 & aPtr
const TDesC8 & aElementName

BooleanToString(const TNSmlBoolean)

TPtrC8 BooleanToString ( const TNSmlBoolean aValue ) const

Parameters

const TNSmlBoolean aValue

CharactersToEntitiesL(HBufC8 *&, TInt, TInt)

TInt CharactersToEntitiesL ( HBufC8 *& aXml,
TInt aStartPos,
TInt aEndPos
) const

Parameters

HBufC8 *& aXml
TInt aStartPos
TInt aEndPos

CheckDatetimeErrorL(const TInt)

void CheckDatetimeErrorL ( const TInt error ) const [private]

Parameters

const TInt error

CheckError(const TInt)

TNSmlParserGeneratorError CheckError ( const TInt error ) 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,
TInt aStartPos,
TInt aEndPos
) 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 TInt aValue ) const

Parameters

const TInt aValue

IsWhitespace(const TDesC8 &)

TBool IsWhitespace ( const TDesC8 & aText ) const

Parameters

const TDesC8 & aText

LeaveIfNotWhiteSpaceL(const TDesC8 &)

void LeaveIfNotWhiteSpaceL ( const TDesC8 & aText ) const

Parameters

const TDesC8 & aText

NextDataL(TPtrC8)

void NextDataL ( TPtrC8 aData ) [protected, pure virtual]

Parameters

TPtrC8 aData

NextElementL(TPtrC8)

void NextElementL ( TPtrC8 aElement ) [protected, pure virtual]

Parameters

TPtrC8 aElement

ParseL(TPtrC8 &)

void ParseL ( TPtrC8 & aXml ) [protected]

Parameters

TPtrC8 & aXml

ParseXml(HBufC8 *)

TNSmlParserGeneratorError ParseXml ( HBufC8 * aXml ) [pure virtual]

Parameters

HBufC8 * aXml

PreProcessL(HBufC8 *)

void PreProcessL ( HBufC8 * aXml ) const

Parameters

HBufC8 * aXml

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

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

Parameters

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

ResetBufferL(HBufC8 *&)

void ResetBufferL ( HBufC8 *& aBuf ) const [protected]

Parameters

HBufC8 *& aBuf

SizeOfBoolean(const TNSmlBoolean, const TDesC8 &)

TInt SizeOfBoolean ( const TNSmlBoolean aValue,
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]