#include <xmlwriter.h>
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_t > | m_elements |
Definition at line 87 of file xmlwriter.h.
XMLStreamWriter::XMLStreamWriter | ( | TextOutputStream & | ostream | ) | [inline] |
Definition at line 114 of file xmlwriter.h.
References XMLStreamWriter::state_t::eContent, m_elements, m_ostream, visit(), XMLEntityOutputStream::write(), and write_string().
void XMLStreamWriter::popElement | ( | const std::string & | name | ) | [inline, virtual] |
Implements XMLImporter.
Definition at line 138 of file xmlwriter.h.
References XMLStreamWriter::state_t::eStartElement, m_elements, m_ostream, XMLEntityOutputStream::write(), and write_string().
void XMLStreamWriter::pushElement | ( | const XMLElement & | element | ) | [inline, virtual] |
Implements XMLImporter.
Definition at line 126 of file xmlwriter.h.
References XMLStreamWriter::state_t::eContent, XMLStreamWriter::state_t::eStartElement, XMLElement::forEachAttribute(), m_elements, m_ostream, XMLElement::name(), XMLEntityOutputStream::write(), and write_string().
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] |
Definition at line 151 of file xmlwriter.h.
References XMLStreamWriter::state_t::eContent, XMLStreamWriter::state_t::eStartElement, m_elements, m_ostream, XMLEntityOutputStream::write(), and write_cdata().
void XMLStreamWriter::write_cdata | ( | const char * | buffer, | |
std::size_t | length | |||
) | [inline, private] |
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().
std::vector<state_t> XMLStreamWriter::m_elements [private] |
Definition at line 100 of file xmlwriter.h.
Referenced by popElement(), pushElement(), write(), and XMLStreamWriter().
Definition at line 99 of file xmlwriter.h.
Referenced by popElement(), pushElement(), visit(), write(), write_cdata(), write_quoted_string(), write_string(), and XMLStreamWriter().