18 #ifndef INCLUDED_XMLWRITER
19 #define INCLUDED_XMLWRITER
71 #define XML_Start() XMLWriter_File xml_file_
74 #define XML_SetPrettyPrint(enabled) xml_file_.SetPrettyPrint(false)
77 #define XML_Comment(text) xml_file_.Comment(text)
80 #define XML_Element(name) XMLWriter_Element xml_element_ (xml_file_, name)
83 #define XML_Text(text) xml_element_.Text(text, false)
86 #define XML_CDATA(text) xml_element_.Text(text, true)
89 #define XML_Attribute(name, value) xml_element_.Attribute(name, value)
92 #define XML_Setting(name, value) xml_element_.Setting(name, value)
94 #define XML_WriteXMB(xero) xml_file_.XMB(xero)
98 #define XML_StoreVFS(vfs, pathname) xml_file_.StoreVFS(vfs, pathname)
102 #define XML_GetOutput() xml_file_.GetOutput()
119 void Comment(
const char* text);
134 template <
typename T>
void ElementAttribute(
const char* name,
const T& value,
bool newelement);
153 template <
typename constCharPtr>
void Text(constCharPtr text,
bool cdata);
156 void Close(
int type);
167 #endif // INCLUDED_XMLWRITER
void XMB(const XMBFile &file)
void ElementStart(XMLWriter_Element *element, const char *name)
void Setting(const char *name, T value)
void ElementAttribute(const char *name, const T &value, bool newelement)
XMLWriter_Element * m_LastElement
void Comment(const char *text)
#define T(string_literal)
void SetPrettyPrint(bool enabled)
void ElementEnd(const char *name, int type)
void Text(constCharPtr text, bool cdata)
void Attribute(const char *name, T value)
XMLWriter_Element(XMLWriter_File &file, const char *name)
void ElementText(const char *text, bool cdata)
void ElementXMB(const XMBFile &file, XMBElement el)
bool StoreVFS(const PIVFS &vfs, const VfsPath &pathname)