cxxtools::xml::XmlWriter Class Reference

#include <cxxtools/xml/xmlwriter.h>

Public Types

enum  FormatFlags { UseXmlDeclaration = 1, UseIndent = 2, UseEndl = 4 }

Public Member Functions

 XmlWriter ()
 XmlWriter (std::ostream &os, int format=UseXmlDeclaration|UseIndent|UseEndl)
 ~XmlWriter ()
void begin (std::ostream &os)
void writeStartElement (const cxxtools::String &prefix, const cxxtools::String &localName, const cxxtools::String &ns)
void writeStartElement (const cxxtools::String &localName)
void writeStartElement (const cxxtools::String &localName, const Attribute *attr, size_t attrCount)
void writeEndElement ()
void writeElement (const cxxtools::String &localName, const cxxtools::String &content)
void writeElement (const cxxtools::String &localName, const Attribute *attr, size_t attrCount, const cxxtools::String &content)
void writeCharacters (const cxxtools::String &text)
void flush ()
void endl ()
void setFormat (int f)
void setFormatFlags (int f, bool sw=true)
int format () const
bool useXmlDeclaration () const
void useXmlDeclaration (bool sw)
bool useIndent () const
void useIndent (bool sw)
bool useEndl () const
void useEndl (bool sw)

Member Enumeration Documentation

Enumerator:
UseXmlDeclaration 
UseIndent 
UseEndl 

Constructor & Destructor Documentation

cxxtools::xml::XmlWriter::XmlWriter ( )
cxxtools::xml::XmlWriter::XmlWriter ( std::ostream &  os,
int  format = UseXmlDeclaration|UseIndent|UseEndl 
)
cxxtools::xml::XmlWriter::~XmlWriter ( )

Member Function Documentation

void cxxtools::xml::XmlWriter::begin ( std::ostream &  os)
void cxxtools::xml::XmlWriter::endl ( )
void cxxtools::xml::XmlWriter::flush ( )
int cxxtools::xml::XmlWriter::format ( ) const
inline
void cxxtools::xml::XmlWriter::setFormat ( int  f)
inline
void cxxtools::xml::XmlWriter::setFormatFlags ( int  f,
bool  sw = true 
)
inline
bool cxxtools::xml::XmlWriter::useEndl ( ) const
inline
void cxxtools::xml::XmlWriter::useEndl ( bool  sw)
inline
bool cxxtools::xml::XmlWriter::useIndent ( ) const
inline
void cxxtools::xml::XmlWriter::useIndent ( bool  sw)
inline
bool cxxtools::xml::XmlWriter::useXmlDeclaration ( ) const
inline
void cxxtools::xml::XmlWriter::useXmlDeclaration ( bool  sw)
inline
void cxxtools::xml::XmlWriter::writeCharacters ( const cxxtools::String text)
void cxxtools::xml::XmlWriter::writeElement ( const cxxtools::String localName,
const cxxtools::String content 
)
void cxxtools::xml::XmlWriter::writeElement ( const cxxtools::String localName,
const Attribute attr,
size_t  attrCount,
const cxxtools::String content 
)
void cxxtools::xml::XmlWriter::writeEndElement ( )
void cxxtools::xml::XmlWriter::writeStartElement ( const cxxtools::String prefix,
const cxxtools::String localName,
const cxxtools::String ns 
)
void cxxtools::xml::XmlWriter::writeStartElement ( const cxxtools::String localName)
void cxxtools::xml::XmlWriter::writeStartElement ( const cxxtools::String localName,
const Attribute attr,
size_t  attrCount 
)

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