XMLStreamWriter Class Reference

#include <xmlwriter.h>

Inheritance diagram for XMLStreamWriter:
Inheritance graph
[legend]
Collaboration diagram for XMLStreamWriter:
Collaboration graph
[legend]

Data Structures

class  state_t

Public Member Functions

 XMLStreamWriter (TextOutputStream &ostream)
void pushElement (const XMLElement &element)
void popElement (const std::string &name)
std::size_t write (const char *data, std::size_t length)
void visit (const std::string &name, const std::string &value)

Private Member Functions

void write_cdata (const char *buffer, std::size_t length)
void write_string (const std::string &string)
void write_quoted_string (const std::string &string)

Private Attributes

XMLEntityOutputStream m_ostream
std::vector< state_tm_elements

Detailed Description

Definition at line 87 of file xmlwriter.h.


Constructor & Destructor Documentation

XMLStreamWriter::XMLStreamWriter ( TextOutputStream &  ostream  )  [inline]

Member Function Documentation

void XMLStreamWriter::popElement ( const std::string name  )  [inline, virtual]
void XMLStreamWriter::pushElement ( const XMLElement element  )  [inline, virtual]
void XMLStreamWriter::visit ( const std::string name,
const std::string value 
) [inline, virtual]

Implements XMLAttrVisitor.

Definition at line 160 of file xmlwriter.h.

References m_ostream, XMLEntityOutputStream::write(), write_quoted_string(), and write_string().

Referenced by XMLStreamWriter().

std::size_t XMLStreamWriter::write ( const char *  data,
std::size_t  length 
) [inline]
void XMLStreamWriter::write_cdata ( const char *  buffer,
std::size_t  length 
) [inline, private]

Definition at line 102 of file xmlwriter.h.

References m_ostream.

Referenced by write().

void XMLStreamWriter::write_quoted_string ( const std::string string  )  [inline, private]

Definition at line 108 of file xmlwriter.h.

References m_ostream, and XMLEntityOutputStream::write().

Referenced by visit().

void XMLStreamWriter::write_string ( const std::string string  )  [inline, private]

Definition at line 105 of file xmlwriter.h.

References m_ostream.

Referenced by popElement(), pushElement(), visit(), and XMLStreamWriter().


Field Documentation

std::vector<state_t> XMLStreamWriter::m_elements [private]

Definition at line 100 of file xmlwriter.h.

Referenced by popElement(), pushElement(), write(), and XMLStreamWriter().


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

Generated by  doxygen 1.6.2