SDX::Helpers::DocumentBuilder Class Reference

Class that helps you to easily build documents using the ContentHandler interface. More...

#include <SDXDocumentBuilder.h>

Inheritance diagram for SDX::Helpers::DocumentBuilder:

SDX::ContentHandler

List of all members.

Public Member Functions

DocumentgetDocument ()
 Get the built document.
void startDocument ()
 Start document.
void startNode (std::string nodeName)
 Start node with name nodeName.
void writeAttribute (std::string name, std::string value)
 Write an attribute with the given name and value.
void endNode ()
 End node started with startNode call.


Detailed Description

Class that helps you to easily build documents using the ContentHandler interface.

Definition at line 16 of file SDXDocumentBuilder.h.


Member Function Documentation

void DocumentBuilder::endNode (  )  [virtual]

End node started with startNode call.

Calling this method with insufficient calls to startNode will result in undefined behaviour.

Reimplemented from SDX::ContentHandler.

Definition at line 32 of file SDXDocumentBuilder.cpp.

void DocumentBuilder::startNode ( std::string  nodeName  )  [virtual]

Start node with name nodeName.

A corresponding endNode call should be made later on to end this node.

Reimplemented from SDX::ContentHandler.

Definition at line 21 of file SDXDocumentBuilder.cpp.


The documentation for this class was generated from the following files:

Generated on Mon Apr 27 16:55:50 2009 for SDX by  doxygen 1.5.8