CppUnit project page FAQ

XmlDocument.h
Go to the documentation of this file.
1#ifndef CPPUNIT_TOOLS_XMLDOCUMENT_H
2#define CPPUNIT_TOOLS_XMLDOCUMENT_H
3
5
6#if CPPUNIT_NEED_DLL_DECL
7#pragma warning( push )
8#pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
9#endif
10
11#include <string>
12
13
15
16
17class XmlElement;
18
19
28{
29public:
35 XmlDocument( const std::string &encoding = "",
36 const std::string &styleSheet = "" );
37
39 virtual ~XmlDocument();
40
41 std::string encoding() const;
42 void setEncoding( const std::string &encoding = "" );
43
44 std::string styleSheet() const;
45 void setStyleSheet( const std::string &styleSheet = "" );
46
47 bool standalone() const;
48
57 void setStandalone( bool standalone );
58
59 void setRootElement( XmlElement *rootElement );
60 XmlElement &rootElement() const;
61
62 std::string toString() const;
63
64private:
66 XmlDocument( const XmlDocument &copy );
67
69 void operator =( const XmlDocument &copy );
70
71protected:
72 std::string m_encoding;
73 std::string m_styleSheet;
76};
77
78
79#if CPPUNIT_NEED_DLL_DECL
80#pragma warning( pop )
81#endif
82
83
85
86#endif // CPPUNIT_TOOLS_XMLDOCUMENT_H
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
A XML Document.
Definition XmlDocument.h:28
bool m_standalone
Definition XmlDocument.h:75
std::string m_encoding
Definition XmlDocument.h:72
XmlDocument(const XmlDocument &copy)
Prevents the use of the copy constructor.
XmlElement * m_rootElement
Definition XmlDocument.h:74
std::string m_styleSheet
Definition XmlDocument.h:73
A XML Element.
Definition XmlElement.h:34

Send comments to:
CppUnit Developers