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 
4 #include <cppunit/Portability.h>
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 
17 class XmlElement;
18 
19 
28 {
29 public:
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 
64 private:
66  XmlDocument( const XmlDocument &copy );
67 
69  void operator =( const XmlDocument &copy );
70 
71 protected:
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

Send comments to:
CppUnit Developers