8#ifndef TWOBLUECUBES_CATCH_XMLWRITER_HPP_INCLUDED
9#define TWOBLUECUBES_CATCH_XMLWRITER_HPP_INCLUDED
92 void writeDeclaration();
94 void newlineIfNecessary();
96 bool m_tagIsOpen =
false;
97 bool m_needsNewline =
false;
98 std::vector<std::string> m_tags;
auto str() const -> std::string
void encodeTo(std::ostream &os) const
XmlEncode(std::string const &str, ForWhat forWhat=ForTextNodes)
friend std::ostream & operator<<(std::ostream &os, XmlEncode const &xmlEncode)
ScopedElement & writeText(std::string const &text, bool indent=true)
ScopedElement & writeAttribute(std::string const &name, T const &attribute)
ScopedElement & operator=(ScopedElement &&other) noexcept
ScopedElement(XmlWriter *writer)
XmlWriter & operator=(XmlWriter const &)=delete
XmlWriter(std::ostream &os=Catch::cout())
XmlWriter & writeAttribute(std::string const &name, T const &attribute)
ScopedElement scopedElement(std::string const &name)
XmlWriter & writeText(std::string const &text, bool indent=true)
XmlWriter & startElement(std::string const &name)
XmlWriter(XmlWriter const &)=delete
void writeStylesheetRef(std::string const &url)
XmlWriter & writeComment(std::string const &text)
XmlWriter & writeBlankLine()
XmlWriter & writeAttribute(std::string const &name, std::string const &attribute)
#define T(meth, val, expected)