SDX::ContentHandler Class Reference

Interface based on the SAX model. More...

#include <SDXContentHandler.h>

Inheritance diagram for SDX::ContentHandler:

SDX::Helpers::ContentPrinter SDX::Helpers::DocumentBuilder SDX::Helpers::StreamWriter SDX::Formats::CsvStreamWriter SDX::Formats::TabBasedStreamWriter SDX::Formats::XmlStreamWriter

List of all members.

Public Member Functions

virtual void startDocument ()
 Start document.
virtual void startNode (std::string nodeName)
 Start node with name nodeName.
virtual void writeAttribute (std::string name, std::string value)
 Write an attribute with the given name and value.
virtual void endDocument ()
 End document.
virtual void endNode ()
 End node started with startNode call.
void writeNode (std::string name, std::string value)
 Write node with the given name that has one unnamed attribute with the given value.


Detailed Description

Interface based on the SAX model.

Definition at line 11 of file SDXContentHandler.h.


Member Function Documentation

virtual void SDX::ContentHandler::endNode (  )  [inline, virtual]

End node started with startNode call.

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

Reimplemented in SDX::Helpers::ContentPrinter, SDX::Formats::CsvStreamWriter, SDX::Helpers::DocumentBuilder, SDX::Formats::TabBasedStreamWriter, and SDX::Formats::XmlStreamWriter.

Definition at line 36 of file SDXContentHandler.h.

virtual void SDX::ContentHandler::startNode ( std::string  nodeName  )  [inline, virtual]

Start node with name nodeName.

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

Reimplemented in SDX::Helpers::ContentPrinter, SDX::Formats::CsvStreamWriter, SDX::Helpers::DocumentBuilder, SDX::Formats::TabBasedStreamWriter, and SDX::Formats::XmlStreamWriter.

Definition at line 21 of file SDXContentHandler.h.

void SDX::ContentHandler::writeNode ( std::string  name,
std::string  value 
) [inline]

Write node with the given name that has one unnamed attribute with the given value.

This function does the same as:

 startNode(name);
 writeAttribute("", value);
 endNode();

Definition at line 45 of file SDXContentHandler.h.


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

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