ZeroErr
zeroerr::detail::XmlWriter Class Reference

Classes

class  ScopedElement
 

Public Member Functions

 XmlWriter (std::ostream &os=std::cerr)
 
 ~XmlWriter ()
 
 XmlWriter (const XmlWriter &)=delete
 
XmlWriteroperator= (const XmlWriter &)=delete
 
XmlWriterstartElement (const std::string &name)
 
ScopedElement scopedElement (const std::string &name)
 
XmlWriterendElement ()
 
XmlWriterwriteAttribute (const std::string &name, const std::string &attribute)
 
XmlWriterwriteAttribute (const std::string &name, const char *attribute)
 
XmlWriterwriteAttribute (const std::string &name, bool attribute)
 
template<typename T >
XmlWriterwriteAttribute (const std::string &name, const T &attribute)
 
XmlWriterwriteText (const std::string &text, bool indent=true, bool new_line=true)
 
void ensureTagClosed (bool new_line=true)
 
void writeDeclaration ()
 

Constructor & Destructor Documentation

◆ XmlWriter() [1/2]

zeroerr::detail::XmlWriter::XmlWriter ( std::ostream &  os = std::cerr)

◆ ~XmlWriter()

zeroerr::detail::XmlWriter::~XmlWriter ( )

◆ XmlWriter() [2/2]

zeroerr::detail::XmlWriter::XmlWriter ( const XmlWriter )
delete

Member Function Documentation

◆ endElement()

XmlWriter & zeroerr::detail::XmlWriter::endElement ( )

◆ ensureTagClosed()

void zeroerr::detail::XmlWriter::ensureTagClosed ( bool  new_line = true)

◆ operator=()

XmlWriter& zeroerr::detail::XmlWriter::operator= ( const XmlWriter )
delete

◆ scopedElement()

XmlWriter::ScopedElement zeroerr::detail::XmlWriter::scopedElement ( const std::string &  name)

◆ startElement()

XmlWriter & zeroerr::detail::XmlWriter::startElement ( const std::string &  name)

◆ writeAttribute() [1/4]

XmlWriter & zeroerr::detail::XmlWriter::writeAttribute ( const std::string &  name,
bool  attribute 
)

◆ writeAttribute() [2/4]

XmlWriter & zeroerr::detail::XmlWriter::writeAttribute ( const std::string &  name,
const char *  attribute 
)

◆ writeAttribute() [3/4]

XmlWriter & zeroerr::detail::XmlWriter::writeAttribute ( const std::string &  name,
const std::string &  attribute 
)

◆ writeAttribute() [4/4]

template<typename T >
XmlWriter& zeroerr::detail::XmlWriter::writeAttribute ( const std::string &  name,
const T &  attribute 
)
inline

◆ writeDeclaration()

void zeroerr::detail::XmlWriter::writeDeclaration ( )

◆ writeText()

XmlWriter & zeroerr::detail::XmlWriter::writeText ( const std::string &  text,
bool  indent = true,
bool  new_line = true 
)

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