public:
XmlWriter(std::ostream& out);
~XmlWriter();
-
+
/** Start a xml tag which contains subtags */
void openTag(const char* name);
/** Closes an xml tag with subtags */
void writeTag(const char* name);
- template <class T>
+ template <class T>
void comment(const T& outp)
{ // This routine writes just about anything as an XML comment.
newLine();
private:
void newLine();
void closeTag();
-
+
std::ostream& out;
int indent;
std::string closetag;
};
#endif
-