📄 class_xml_document.html
字号:
<html><head><title>CppUnit - The Unit Testing Library</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"> <table width="100%"> <tr> <td width="40%" align="left" valign="center"> <a href="http://sourceforge.net/projects/cppunit"> CppUnit project page </a> </td> <td> <a href="FAQ">FAQ</a> </td> <td width="40%" align="right" valign="center"> <a href="http://cppunit.sourceforge.net">CppUnit home page</a> </td> </tr></table><hr><!-- Generated by Doxygen 1.3.7 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>XmlDocument Class Reference</h1>A XML Document. <a href="#_details">More...</a><p><code>#include <<a class="el" href="_xml_document_8h-source.html">XmlDocument.h</a>></code><p><a href="class_xml_document-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a0">XmlDocument</a> (const std::string &encoding="", const std::string &styleSheet="")</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a XmlDocument object. <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a1">~XmlDocument</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a2">encoding</a> () const</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a3">setEncoding</a> (const std::string &encoding="")</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a4">styleSheet</a> () const</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a5">setStyleSheet</a> (const std::string &styleSheet="")</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a6">setRootElement</a> (<a class="el" href="class_xml_element.html">XmlElement</a> *rootElement)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="class_xml_element.html">XmlElement</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a7">rootElement</a> () const</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#a8">toString</a> () const</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#p0">m_encoding</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#p1">m_styleSheet</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="class_xml_element.html">XmlElement</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#p2">m_rootElement</a></td></tr><tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#d0">XmlDocument</a> (const <a class="el" href="class_xml_document.html">XmlDocument</a> &copy)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Prevents the use of the copy constructor. <a href="#d0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_xml_document.html#d1">operator=</a> (const <a class="el" href="class_xml_document.html">XmlDocument</a> &copy)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Prevents the use of the copy operator. <a href="#d1"></a><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>A XML Document. <p>A XmlDocument represents a XML file. It holds a pointer on the root <a class="el" href="class_xml_element.html">XmlElement</a> of the document. It also holds the encoding and style sheet used. <p><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="a0" doxytag="XmlDocument::XmlDocument" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> CPPUNIT_NS_BEGIN XmlDocument::XmlDocument </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname" nowrap> <em>encoding</em> = <code>""</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const std::string & </td> <td class="mdname" nowrap> <em>styleSheet</em> = <code>""</code></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructs a XmlDocument object. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>encoding</em> </td><td>Encoding used in the XML file (default is Latin-1, ISO-8859-1 ). </td></tr> <tr><td></td><td valign=top><em>styleSheet</em> </td><td>Name of the XSL style sheet file used. If empty then no style sheet will be specified in the output. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a1" doxytag="XmlDocument::~XmlDocument" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> XmlDocument::~<a class="el" href="class_xml_document.html">XmlDocument</a> </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Destructor. <p> </td> </tr></table><a class="anchor" name="d0" doxytag="XmlDocument::XmlDocument" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> XmlDocument::XmlDocument </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_xml_document.html">XmlDocument</a> & </td> <td class="mdname1" valign="top" nowrap> <em>copy</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Prevents the use of the copy constructor. <p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a2" doxytag="XmlDocument::encoding" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> std::string XmlDocument::encoding </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="d1" doxytag="XmlDocument::operator=" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void XmlDocument::operator= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_xml_document.html">XmlDocument</a> & </td> <td class="mdname1" valign="top" nowrap> <em>copy</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Prevents the use of the copy operator. <p> </td> </tr></table><a class="anchor" name="a7" doxytag="XmlDocument::rootElement" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="class_xml_element.html">XmlElement</a> & XmlDocument::rootElement </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -