SDX::Helpers::ContentPrinter Class Reference

This class prints out everything it's sent and passes it through to the set ContentHandler. More...

#include <SDXContentPrinter.h>

Inheritance diagram for SDX::Helpers::ContentPrinter:

SDX::ContentHandler

List of all members.

Public Member Functions

 ContentPrinter (ContentHandler *contentHandler=0)
 Construtor.
void setContentHandler (ContentHandler *)
 ContentHandler to pass content to.
void startDocument ()
 Start document.
void startNode (std::string)
 Start node with name nodeName.
void writeAttribute (std::string, std::string)
 Write an attribute with the given name and value.
void endNode ()
 End node started with startNode call.
void endDocument ()
 End document.


Detailed Description

This class prints out everything it's sent and passes it through to the set ContentHandler.

Useful when for ex. writing ResourceReaders.

Definition at line 14 of file SDXContentPrinter.h.


Constructor & Destructor Documentation

ContentPrinter::ContentPrinter ( ContentHandler contentHandler = 0  ) 

Construtor.

Parameters:
contentHandler ContentHandler to pass content to.

Definition at line 9 of file SDXContentPrinter.cpp.


Member Function Documentation

void ContentPrinter::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 38 of file SDXContentPrinter.cpp.

void ContentPrinter::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 24 of file SDXContentPrinter.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