1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/qdom.cpp:5632 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QDomProcessingInstruction Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QDomProcessingInstruction Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
|
---|
33 |
|
---|
34 | <p>The QDomProcessingInstruction class represents an XML processing
|
---|
35 | instruction.
|
---|
36 | <a href="#details">More...</a>
|
---|
37 | <p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
|
---|
38 | <p><tt>#include <<a href="qdom-h.html">qdom.h</a>></tt>
|
---|
39 | <p>Inherits <a href="qdomnode.html">QDomNode</a>.
|
---|
40 | <p><a href="qdomprocessinginstruction-members.html">List of all member functions.</a>
|
---|
41 | <h2>Public Members</h2>
|
---|
42 | <ul>
|
---|
43 | <li class=fn><a href="#QDomProcessingInstruction"><b>QDomProcessingInstruction</b></a> ()</li>
|
---|
44 | <li class=fn><a href="#QDomProcessingInstruction-2"><b>QDomProcessingInstruction</b></a> ( const QDomProcessingInstruction & x )</li>
|
---|
45 | <li class=fn>QDomProcessingInstruction & <a href="#operator-eq"><b>operator=</b></a> ( const QDomProcessingInstruction & x )</li>
|
---|
46 | <li class=fn><a href="#~QDomProcessingInstruction"><b>~QDomProcessingInstruction</b></a> ()</li>
|
---|
47 | <li class=fn>virtual QString <a href="#target"><b>target</b></a> () const</li>
|
---|
48 | <li class=fn>virtual QString <a href="#data"><b>data</b></a> () const</li>
|
---|
49 | <li class=fn>virtual void <a href="#setData"><b>setData</b></a> ( const QString & d )</li>
|
---|
50 | <li class=fn>virtual QDomNode::NodeType <a href="#nodeType"><b>nodeType</b></a> () const</li>
|
---|
51 | <li class=fn>virtual bool <a href="#isProcessingInstruction"><b>isProcessingInstruction</b></a> () const</li>
|
---|
52 | </ul>
|
---|
53 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
54 |
|
---|
55 |
|
---|
56 |
|
---|
57 | The QDomProcessingInstruction class represents an XML processing
|
---|
58 | instruction.
|
---|
59 |
|
---|
60 | <p>
|
---|
61 |
|
---|
62 | <p> Processing instructions are used in XML to keep processor-specific
|
---|
63 | information in the text of the document.
|
---|
64 | <p> The content of the processing instruction is retrieved with <a href="#data">data</a>()
|
---|
65 | and set with <a href="#setData">setData</a>(). The processing instruction's target is
|
---|
66 | retrieved with <a href="#target">target</a>().
|
---|
67 | <p> For further information about the Document Object Model see
|
---|
68 | <a href="http://www.w3.org/TR/REC-DOM-Level-1/">http://www.w3.org/TR/REC-DOM-Level-1/</a> and
|
---|
69 | <a href="http://www.w3.org/TR/DOM-Level-2-Core/">http://www.w3.org/TR/DOM-Level-2-Core/</a>.
|
---|
70 | For a more general introduction of the DOM implementation see the
|
---|
71 | <a href="qdomdocument.html">QDomDocument</a> documentation.
|
---|
72 | <p>See also <a href="xml-tools.html">XML</a>.
|
---|
73 |
|
---|
74 | <hr><h2>Member Function Documentation</h2>
|
---|
75 | <h3 class=fn><a name="QDomProcessingInstruction"></a>QDomProcessingInstruction::QDomProcessingInstruction ()
|
---|
76 | </h3>
|
---|
77 | Constructs an empty processing instruction. Use
|
---|
78 | <a href="qdomdocument.html#createProcessingInstruction">QDomDocument::createProcessingInstruction</a>() to create a processing
|
---|
79 | instruction with content.
|
---|
80 |
|
---|
81 | <h3 class=fn><a name="QDomProcessingInstruction-2"></a>QDomProcessingInstruction::QDomProcessingInstruction ( const <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a> & x )
|
---|
82 | </h3>
|
---|
83 | Constructs a copy of <em>x</em>.
|
---|
84 | <p> The data of the copy is shared (shallow copy): modifying one node
|
---|
85 | will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
|
---|
86 | <a href="qdomnode.html#cloneNode">cloneNode</a>().
|
---|
87 |
|
---|
88 | <h3 class=fn><a name="~QDomProcessingInstruction"></a>QDomProcessingInstruction::~QDomProcessingInstruction ()
|
---|
89 | </h3>
|
---|
90 | Destroys the object and frees its resources.
|
---|
91 |
|
---|
92 | <h3 class=fn><a href="qstring.html">QString</a> <a name="data"></a>QDomProcessingInstruction::data () const<tt> [virtual]</tt>
|
---|
93 | </h3>
|
---|
94 | Returns the content of this processing instruction.
|
---|
95 | <p> <p>See also <a href="#setData">setData</a>() and <a href="#target">target</a>().
|
---|
96 |
|
---|
97 | <h3 class=fn>bool <a name="isProcessingInstruction"></a>QDomProcessingInstruction::isProcessingInstruction () const<tt> [virtual]</tt>
|
---|
98 | </h3>
|
---|
99 | Returns TRUE.
|
---|
100 |
|
---|
101 | <p>Reimplemented from <a href="qdomnode.html#isProcessingInstruction">QDomNode</a>.
|
---|
102 | <h3 class=fn><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> <a name="nodeType"></a>QDomProcessingInstruction::nodeType () const<tt> [virtual]</tt>
|
---|
103 | </h3>
|
---|
104 | Returns <a href="qdomnode.html#NodeType-enum">ProcessingInstructionNode</a>.
|
---|
105 |
|
---|
106 | <p>Reimplemented from <a href="qdomnode.html#nodeType">QDomNode</a>.
|
---|
107 | <h3 class=fn><a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a> & <a name="operator-eq"></a>QDomProcessingInstruction::operator= ( const <a href="qdomprocessinginstruction.html">QDomProcessingInstruction</a> & x )
|
---|
108 | </h3>
|
---|
109 | Assigns <em>x</em> to this processing instruction.
|
---|
110 | <p> The data of the copy is shared (shallow copy): modifying one node
|
---|
111 | will also change the other. If you want to make a <a href="shclass.html#deep-copy">deep copy</a>, use
|
---|
112 | <a href="qdomnode.html#cloneNode">cloneNode</a>().
|
---|
113 |
|
---|
114 | <h3 class=fn>void <a name="setData"></a>QDomProcessingInstruction::setData ( const <a href="qstring.html">QString</a> & d )<tt> [virtual]</tt>
|
---|
115 | </h3>
|
---|
116 | Sets the data contained in the processing instruction to <em>d</em>.
|
---|
117 | <p> <p>See also <a href="#data">data</a>().
|
---|
118 |
|
---|
119 | <h3 class=fn><a href="qstring.html">QString</a> <a name="target"></a>QDomProcessingInstruction::target () const<tt> [virtual]</tt>
|
---|
120 | </h3>
|
---|
121 | Returns the target of this processing instruction.
|
---|
122 | <p> <p>See also <a href="#data">data</a>().
|
---|
123 |
|
---|
124 | <!-- eof -->
|
---|
125 | <hr><p>
|
---|
126 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
127 | Copyright © 1995-2007
|
---|
128 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
129 | <table width=100% cellspacing=0 border=0><tr>
|
---|
130 | <td>Copyright © 2007
|
---|
131 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
132 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
133 | </table></div></address></body>
|
---|
134 | </html>
|
---|