ChspsDomDocument Class Reference

class ChspsDomDocument : public CBase

Provides the primary access to the document's data.

hspsdomdocument.lib
Since
S60 5.0

Inherits from

Constructor & Destructor Documentation

ChspsDomDocument()

ChspsDomDocument()[private]

C++ default constructor.

~ChspsDomDocument()

IMPORT_C~ChspsDomDocument()[virtual]

Destructor.

Member Functions Documentation

CloneL()

IMPORT_C ChspsDomDocument *CloneL()

Makes a clone of this document.

Since
S60 5.0

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CreateElementNSL(const TDesC8 &, const TDesC8 &)

IMPORT_C ChspsDomNode *CreateElementNSL(const TDesC8 &aName,
const TDesC8 &aNamespace
)

Factory method to create node elements, because elements cannot exist outside the context of a document.

Since
S60 5.0

Parameters

const TDesC8 & aNameUTF-8 encoded Element name.
const TDesC8 & aNamespaceUTF-8 encoded Element namespace.

DomNodeCount()

IMPORT_C TIntDomNodeCount()const

Get document node count.

Since
S60 5.0

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalize document's data.

Since
S60 5.0

Parameters

RWriteStream & aStreamOutput stream.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalize document's data.

Since
S60 5.0

Parameters

RReadStream & aStreamInput stream.

LastNode()

IMPORT_C ChspsDomNode *LastNode()const

Get the last node of the document.

Since
S60 5.0

MarshallL()

IMPORT_C HBufC8 *MarshallL()

Returns document's data as a streamed buffer.

Since
S60 5.0

NewL()

IMPORT_C ChspsDomDocument *NewL()[static]

Two-phased constructor.

Since
S60 5.0

NewL(RReadStream &)

IMPORT_C ChspsDomDocument *NewL(RReadStream &aStream)[static]

Two-phased stream constructor.

Since
S60 5.0

Parameters

RReadStream & aStreamSource stream.

NewL(const HBufC8 *)

IMPORT_C ChspsDomDocument *NewL(const HBufC8 *aBufStream)[static]

Construct ChspsDomDocument from streamed HBufC8.

Since
S60 5.0

Parameters

const HBufC8 * aBufStreamSource buffer stream.

RootNode()

IMPORT_C ChspsDomNode *RootNode()const

Get the root node of the document.

Since
S60 5.0

SetRootNode(ChspsDomNode *)

IMPORT_C voidSetRootNode(ChspsDomNode *aRootNode)

Set the root of the document tree. Root node provides primary access to document data. This class owns root node.

Since
S60 5.0

Parameters

ChspsDomNode * aRootNodeDocuments's root node. Document takes ownership.

Size()

IMPORT_C TIntSize()const

Get the size of the document's data.

Since
S60 5.0

StringPool()

IMPORT_C ChspsDomStringPool &StringPool()const

Get reference to string pool.

Since
S60 5.0

Member Data Documentation

ChspsDomStringPool * iDomStringPool

ChspsDomStringPool *iDomStringPool[private]

ChspsDomNode * iRootNode

ChspsDomNode *iRootNode[private]