summaryrefslogtreecommitdiff
path: root/include/cppunit/tools
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2004-09-01 19:17:36 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2004-09-01 19:17:36 +0000
commit87051183eea0f573bd4f3521446d7eb4da4622be (patch)
treee03ebde8d15fecd5e8eecf4986d088fc0708bd67 /include/cppunit/tools
parent4a003a878cfff870c7b2417c824042af0af60d59 (diff)
downloadcppunit-87051183eea0f573bd4f3521446d7eb4da4622be.tar.gz
Include/cppunit/XmlOutputter.
include/cppunit/XmlOutputter.h: * include/cppunit/tools/XmlDocument.h * src/cppunit/XmlDocument.cpp: * src/cppunit/XmlOutputter.cpp: integrated patch #997006 from Akos Maroy. This patch makes the 'standalone' attribute in XML header optional.
Diffstat (limited to 'include/cppunit/tools')
-rw-r--r--include/cppunit/tools/XmlDocument.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/cppunit/tools/XmlDocument.h b/include/cppunit/tools/XmlDocument.h
index 8d3f0c7..4ee7325 100644
--- a/include/cppunit/tools/XmlDocument.h
+++ b/include/cppunit/tools/XmlDocument.h
@@ -21,6 +21,8 @@ class XmlElement;
*
* A XmlDocument represents a XML file. It holds a pointer on the root XmlElement
* of the document. It also holds the encoding and style sheet used.
+ *
+ * By default, the XML document is stand-alone and tagged with enconding "ISO-8859-1".
*/
class CPPUNIT_API XmlDocument
{
@@ -42,6 +44,18 @@ public:
std::string styleSheet() const;
void setStyleSheet( const std::string &styleSheet = "" );
+ bool standalone() const;
+
+ /*! \brief set the output document as standalone or not.
+ *
+ * For the output document, specify wether it's a standalone XML
+ * document, or not.
+ *
+ * \param standalone if true, the output will be specified as standalone.
+ * if false, it will be not.
+ */
+ void setStandalone( bool standalone );
+
void setRootElement( XmlElement *rootElement );
XmlElement &rootElement() const;
@@ -58,6 +72,7 @@ protected:
std::string m_encoding;
std::string m_styleSheet;
XmlElement *m_rootElement;
+ bool m_standalone;
};