⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmldocument.h

📁 c++ 实现的矩阵运算库
💻 H
字号:
#ifndef CPPUNIT_TOOLS_XMLDOCUMENT_H#define CPPUNIT_TOOLS_XMLDOCUMENT_H#include <cppunit/Portability.h>#if CPPUNIT_NEED_DLL_DECL#pragma warning( push )#pragma warning( disable: 4251 )  // X needs to have dll-interface to be used by clients of class Z#endif#include <string>CPPUNIT_NS_BEGINclass XmlElement;/*! \brief A XML Document. * * 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. */class CPPUNIT_API XmlDocument{public:  /*! \brief Constructs a XmlDocument object.   * \param encoding Encoding used in the XML file (default is Latin-1, ISO-8859-1 ).    * \param styleSheet Name of the XSL style sheet file used. If empty then no   *                   style sheet will be specified in the output.   */  XmlDocument( const std::string &encoding = "",               const std::string &styleSheet = "" );  /// Destructor.  virtual ~XmlDocument();  std::string encoding() const;  void setEncoding( const std::string &encoding = "" );    std::string styleSheet() const;  void setStyleSheet( const std::string &styleSheet = "" );  void setRootElement( XmlElement *rootElement );  XmlElement &rootElement() const;  std::string toString() const;private:  /// Prevents the use of the copy constructor.  XmlDocument( const XmlDocument &copy );  /// Prevents the use of the copy operator.  void operator =( const XmlDocument &copy );protected:  std::string m_encoding;  std::string m_styleSheet;  XmlElement *m_rootElement;};#if CPPUNIT_NEED_DLL_DECL#pragma warning( pop )#endifCPPUNIT_NS_END#endif  // CPPUNIT_TOOLS_XMLDOCUMENT_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -