XQuilla/docs/dom3-api/DOMWriter_8hpp-source.html
2020-02-17 22:05:20 +01:00

129 lines
13 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla DOM Level 3 API: DOMWriter.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>DOMWriter.hpp</h1><a href="DOMWriter_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef DOMWriter_HEADER_GUARD_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define DOMWriter_HEADER_GUARD_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/*</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright 2002,2004 The Apache Software Foundation.</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
<a name="l00008"></a>00008 <span class="comment"> * you may not use this file except in compliance with the License.</span>
<a name="l00009"></a>00009 <span class="comment"> * You may obtain a copy of the License at</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00014"></a>00014 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00015"></a>00015 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00016"></a>00016 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00017"></a>00017 <span class="comment"> * limitations under the License.</span>
<a name="l00018"></a>00018 <span class="comment"> */</span>
<a name="l00019"></a>00019
<a name="l00020"></a>00020 <span class="comment">/*</span>
<a name="l00021"></a>00021 <span class="comment"> * $Id: DOMWriter.hpp 231323 2005-08-10 20:58:40Z cargilld $</span>
<a name="l00022"></a>00022 <span class="comment"> */</span>
<a name="l00023"></a>00023
<a name="l00244"></a>00244 <span class="preprocessor">#include &lt;<a class="code" href="DOMNode_8hpp.html">xercesc/dom/DOMNode.hpp</a>&gt;</span>
<a name="l00245"></a>00245 <span class="preprocessor">#include &lt;<a class="code" href="DOMWriterFilter_8hpp.html">xercesc/dom/DOMWriterFilter.hpp</a>&gt;</span>
<a name="l00246"></a>00246 <span class="preprocessor">#include &lt;<a class="code" href="DOMErrorHandler_8hpp.html">xercesc/dom/DOMErrorHandler.hpp</a>&gt;</span>
<a name="l00247"></a>00247 <span class="preprocessor">#include &lt;xercesc/framework/XMLFormatter.hpp&gt;</span>
<a name="l00248"></a>00248
<a name="l00249"></a>00249 XERCES_CPP_NAMESPACE_BEGIN
<a name="l00250"></a>00250
<a name="l00251"></a><a class="code" href="classxercesc_1_1DOMWriter.html">00251</a> <span class="keyword">class </span>CDOM_EXPORT <a class="code" href="classxercesc_1_1DOMWriter.html">DOMWriter</a> {
<a name="l00252"></a>00252 <span class="keyword">protected</span> :
<a name="l00253"></a>00253 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00254"></a>00254 <span class="comment">// Hidden constructors</span>
<a name="l00255"></a>00255 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00258"></a><a class="code" href="classxercesc_1_1DOMWriter.html#618b7f97fdfe565eb947b5cf6a330ddb">00258</a> <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMWriter.html">DOMWriter</a>() {};
<a name="l00260"></a>00260 <span class="keyword">private</span>:
<a name="l00261"></a>00261 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00262"></a>00262 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00263"></a>00263 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00266"></a>00266 <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMWriter.html">DOMWriter</a>(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMWriter.html">DOMWriter</a> &amp;);
<a name="l00267"></a>00267 <a class="code" href="classxercesc_1_1DOMWriter.html">DOMWriter</a> &amp; operator = (<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMWriter.html">DOMWriter</a> &amp;);
<a name="l00269"></a>00269
<a name="l00270"></a>00270
<a name="l00271"></a>00271 <span class="keyword">public</span>:
<a name="l00272"></a>00272 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00273"></a>00273 <span class="comment">// All constructors are hidden, just the destructor is available</span>
<a name="l00274"></a>00274 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00281"></a><a class="code" href="classxercesc_1_1DOMWriter.html#cf268aca1311ee78dffbd1439f04a6a7">00281</a> <span class="comment"></span> <span class="keyword">virtual</span> ~<a class="code" href="classxercesc_1_1DOMWriter.html">DOMWriter</a>() {};
<a name="l00283"></a>00283
<a name="l00284"></a>00284 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00285"></a>00285 <span class="comment">// Virtual DOMWriter interface</span>
<a name="l00286"></a>00286 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00289"></a>00289 <span class="comment"></span> <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00290"></a>00290 <span class="comment">// Feature methods</span>
<a name="l00291"></a>00291 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00307"></a>00307 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> canSetFeature(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> featName
<a name="l00308"></a>00308 , <span class="keywordtype">bool</span> state) <span class="keyword">const </span>= 0;
<a name="l00328"></a>00328 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFeature(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> featName
<a name="l00329"></a>00329 , <span class="keywordtype">bool</span> state) = 0;
<a name="l00330"></a>00330
<a name="l00347"></a>00347 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getFeature(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> featName) <span class="keyword">const </span>= 0;
<a name="l00348"></a>00348
<a name="l00349"></a>00349 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00350"></a>00350 <span class="comment">// Setter methods</span>
<a name="l00351"></a>00351 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00368"></a>00368 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setEncoding(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> encoding) = 0;
<a name="l00369"></a>00369
<a name="l00398"></a>00398 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNewLine(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> newLine) = 0;
<a name="l00399"></a>00399
<a name="l00413"></a>00413 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setErrorHandler(<a class="code" href="classxercesc_1_1DOMErrorHandler.html">DOMErrorHandler</a> *errorHandler) = 0;
<a name="l00414"></a>00414
<a name="l00427"></a>00427 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFilter(<a class="code" href="classxercesc_1_1DOMWriterFilter.html">DOMWriterFilter</a> *filter) = 0;
<a name="l00428"></a>00428
<a name="l00429"></a>00429 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00430"></a>00430 <span class="comment">// Getter methods</span>
<a name="l00431"></a>00431 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00441"></a>00441 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getEncoding() <span class="keyword">const </span>= 0;
<a name="l00442"></a>00442
<a name="l00453"></a>00453 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getNewLine() <span class="keyword">const </span>= 0;
<a name="l00454"></a>00454
<a name="l00465"></a>00465 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMErrorHandler.html">DOMErrorHandler</a>* getErrorHandler() <span class="keyword">const </span>= 0;
<a name="l00466"></a>00466
<a name="l00476"></a>00476 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMWriterFilter.html">DOMWriterFilter</a>* getFilter() <span class="keyword">const </span>= 0;
<a name="l00477"></a>00477
<a name="l00478"></a>00478 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00479"></a>00479 <span class="comment">// Write methods</span>
<a name="l00480"></a>00480 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00500"></a>00500 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> writeNode(XMLFormatTarget* <span class="keyword">const</span> destination
<a name="l00501"></a>00501 , <span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a> &amp;nodeToWrite) = 0;
<a name="l00502"></a>00502
<a name="l00521"></a>00521 <span class="keyword">virtual</span> XMLCh* writeToString(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a> &amp;nodeToWrite) = 0;
<a name="l00522"></a>00522
<a name="l00524"></a>00524
<a name="l00525"></a>00525 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00526"></a>00526 <span class="comment">// Non-standard Extension</span>
<a name="l00527"></a>00527 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00536"></a>00536 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> release() = 0;
<a name="l00538"></a>00538
<a name="l00539"></a>00539
<a name="l00540"></a>00540 };
<a name="l00541"></a>00541
<a name="l00542"></a>00542 XERCES_CPP_NAMESPACE_END
<a name="l00543"></a>00543
<a name="l00544"></a>00544 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:19:01 2006 for XQilla DOM Level 3 API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>