|
| XmlWriter (std::ostream &os) |
|
| XmlWriter (XmlWriter const &)=delete |
|
XmlWriter & | operator= (XmlWriter const &)=delete |
|
XmlWriter & | startElement (std::string const &name, XmlFormatting fmt=XmlFormatting::Newline|XmlFormatting::Indent) |
|
ScopedElement | scopedElement (std::string const &name, XmlFormatting fmt=XmlFormatting::Newline|XmlFormatting::Indent) |
|
XmlWriter & | endElement (XmlFormatting fmt=XmlFormatting::Newline|XmlFormatting::Indent) |
|
XmlWriter & | writeAttribute (StringRef name, StringRef attribute) |
| The attribute content is XML-encoded.
|
|
XmlWriter & | writeAttribute (StringRef name, bool attribute) |
| Writes the attribute as "true/false".
|
|
XmlWriter & | writeAttribute (StringRef name, char const *attribute) |
| The attribute content is XML-encoded.
|
|
template<typename T , typename = typename std::enable_if_t< !std::is_convertible<T, StringRef>::value>> |
XmlWriter & | writeAttribute (StringRef name, T const &attribute) |
| The attribute value must provide op<<(ostream&, T).
|
|
XmlWriter & | writeText (StringRef text, XmlFormatting fmt=XmlFormatting::Newline|XmlFormatting::Indent) |
| Writes escaped text in a element.
|
|
XmlWriter & | writeComment (StringRef text, XmlFormatting fmt=XmlFormatting::Newline|XmlFormatting::Indent) |
| Writes XML comment as "<!-- text -->".
|
|
void | writeStylesheetRef (StringRef url) |
|
void | ensureTagClosed () |
|
◆ writeAttribute()
template<typename T , typename = typename std::enable_if_t< !std::is_convertible<T, StringRef>::value>>
The attribute value must provide op<<(ostream&, T).
The resulting serialization is XML-encoded
The documentation for this class was generated from the following files: