423 lines
61 KiB
HTML
423 lines
61 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 Simple API Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- Generated by Doxygen 1.8.5 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_e6bd38fe602a947f4224dfe3c9d24481.html">xerces-c-src</a></li><li class="navelem"><a class="el" href="dir_eb0099cf839cef65d350c0a3df5315ad.html">src</a></li><li class="navelem"><a class="el" href="dir_7ef400d0cba7660fbeba32656f2e8856.html">xercesc</a></li><li class="navelem"><a class="el" href="dir_7491f501d2a916fed33ee116b073f624.html">framework</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">XMLFormatter.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="XMLFormatter_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * this work for additional information regarding copyright ownership.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * the License. You may obtain a copy of the License at</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * limitations under the License.</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * $Id: XMLFormatter.hpp 932889 2010-04-11 13:10:10Z borisk $</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_XMLFORMATTER_HPP)</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_XMLFORMATTER_HPP</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> XERCES_CPP_NAMESPACE_BEGIN</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">class </span>XMLFormatTarget;</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">class </span>XMLTranscoder;</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html"> 41</a></span> <span class="keyword">class </span>XMLPARSER_EXPORT <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a> : <span class="keyword">public</span> <a class="code" href="classxercesc_1_1XMemory.html">XMemory</a></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// Class types</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95"> 124</a></span> <span class="comment"></span> <span class="keyword">enum</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95">EscapeFlags</a></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  {</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95af1a0a45dd87c64f35ed446f15c08f50e"> 126</a></span>  NoEscapes</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95add13237c9b75bd010a3888da7658d715"> 127</a></span>  , StdEscapes</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95a13db941ceeeab6da0cfab212765ac0f5"> 128</a></span>  , AttrEscapes</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95aa4ab66035e3e3ec7f1181a0ae02b29f8"> 129</a></span>  , CharEscapes</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="comment">// Special values, don't use directly</span></div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95aa40f95ca4645f9121d01b881e268f371"> 132</a></span>  , EscapeFlags_Count</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95a4cda7860dd5e6cbfb600e94b2abd8ca3"> 133</a></span>  , DefaultEscape = 999</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  };</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715c"> 152</a></span>  <span class="keyword">enum</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715c">UnRepFlags</a></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  {</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715ca695bee848024ce4e790bad3e68896eee"> 154</a></span>  UnRep_Fail</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715ca603ee35ca43c94a0236bbeb8ae13549f"> 155</a></span>  , UnRep_CharRef</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715cacc0ff5dd21e03ce3ef414882f757d366"> 156</a></span>  , UnRep_Replace</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715caf5fa79bda55e5fee2c709bc31d4b6890"> 158</a></span>  , DefaultUnRep = 999</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  };</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="comment">// Constructors and Destructor</span></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment"></span> <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  (</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> outEncoding</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> docVersion</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  , <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>* <span class="keyword">const</span> target</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  , <span class="keyword">const</span> EscapeFlags escapeFlags = NoEscapes</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  , <span class="keyword">const</span> UnRepFlags unrepFlags = UnRep_Fail</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  );</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a></div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  (</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> outEncoding</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  , <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> docVersion</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  , <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>* <span class="keyword">const</span> target</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  , <span class="keyword">const</span> EscapeFlags escapeFlags = NoEscapes</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  , <span class="keyword">const</span> UnRepFlags unrepFlags = UnRep_Fail</div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  );</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  (</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> outEncoding</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  , <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>* <span class="keyword">const</span> target</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  , <span class="keyword">const</span> EscapeFlags escapeFlags = NoEscapes</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  , <span class="keyword">const</span> UnRepFlags unrepFlags = UnRep_Fail</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  );</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a></div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  (</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> outEncoding</div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  , <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>* <span class="keyword">const</span> target</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  , <span class="keyword">const</span> EscapeFlags escapeFlags = NoEscapes</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  , <span class="keyword">const</span> UnRepFlags unrepFlags = UnRep_Fail</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  );</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  ~<a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>();</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="comment">// Formatting methods</span></div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"></span> <span class="keywordtype">void</span> formatBuf</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  (</div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> toFormat</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  , <span class="keyword">const</span> XMLSize_t count</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  , <span class="keyword">const</span> EscapeFlags escapeFlags = DefaultEscape</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  , <span class="keyword">const</span> UnRepFlags unrepFlags = DefaultUnRep</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  );</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> </div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>& <span class="keyword">operator</span><<</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  (</div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> toFormat</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  );</div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>& <span class="keyword">operator</span><<</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  (</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">const</span> XMLCh toFormat</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  );</div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordtype">void</span> writeBOM(<span class="keyword">const</span> XMLByte* <span class="keyword">const</span> toFormat</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  , <span class="keyword">const</span> XMLSize_t count);</div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> </div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="comment">// Getter methods</span></div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="comment"></span> <span class="keyword">const</span> XMLCh* getEncodingName() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keyword">inline</span> <span class="keyword">const</span> XMLTranscoder* getTranscoder() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">inline</span> XMLTranscoder* getTranscoder();</div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> </div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="comment">// Setter methods</span></div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment"></span> <span class="keywordtype">void</span> setEscapeFlags</div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  (</div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">const</span> EscapeFlags newFlags</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  );</div>
|
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div>
|
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordtype">void</span> setUnRepFlags</div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  (</div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keyword">const</span> UnRepFlags newFlags</div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  );</div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>& <span class="keyword">operator</span><<</div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  (</div>
|
|
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">const</span> EscapeFlags newFlags</div>
|
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  );</div>
|
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div>
|
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>& <span class="keyword">operator</span><<</div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  (</div>
|
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keyword">const</span> UnRepFlags newFlags</div>
|
|
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  );</div>
|
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="comment">// Getter methods</span></div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="comment"></span> EscapeFlags getEscapeFlags() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> </div>
|
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  UnRepFlags getUnRepFlags() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div>
|
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="keyword">private</span> :</div>
|
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="comment">// Unimplemented constructors and operators</span></div>
|
|
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>();</div>
|
|
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>&);</div>
|
|
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>& operator=(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>&);</div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div>
|
|
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div>
|
|
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="comment">// Private class constants</span></div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="keyword">enum</span> Constants</div>
|
|
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  {</div>
|
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  kTmpBufSize = 16 * 1024</div>
|
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  };</div>
|
|
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div>
|
|
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div>
|
|
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="comment">// Private helper methods</span></div>
|
|
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keyword">const</span> XMLByte* getCharRef(XMLSize_t &count,</div>
|
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  XMLByte* &ref,</div>
|
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="keyword">const</span> XMLCh * stdRef);</div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div>
|
|
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordtype">void</span> writeCharRef(<span class="keyword">const</span> XMLCh &toWrite);</div>
|
|
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordtype">void</span> writeCharRef(XMLSize_t toWrite);</div>
|
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div>
|
|
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keywordtype">bool</span> inEscapeList(<span class="keyword">const</span> XMLFormatter::EscapeFlags escStyle</div>
|
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  , <span class="keyword">const</span> XMLCh toCheck);</div>
|
|
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div>
|
|
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div>
|
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  XMLSize_t handleUnEscapedChars(<span class="keyword">const</span> XMLCh * srcPtr,</div>
|
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="keyword">const</span> XMLSize_t count,</div>
|
|
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keyword">const</span> UnRepFlags unrepFlags);</div>
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div>
|
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordtype">void</span> specialFormat</div>
|
|
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  (</div>
|
|
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> toFormat</div>
|
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  , <span class="keyword">const</span> XMLSize_t count</div>
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  , <span class="keyword">const</span> EscapeFlags escapeFlags</div>
|
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  );</div>
|
|
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div>
|
|
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div>
|
|
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="comment">// Private, non-virtual methods</span></div>
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="comment">// fEscapeFlags</span></div>
|
|
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="comment">// The escape flags we were told to use in formatting. These are</span></div>
|
|
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="comment">// defaults set in the ctor, which can be overridden on a particular</span></div>
|
|
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="comment">// call.</span></div>
|
|
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="comment">// fOutEncoding</span></div>
|
|
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="comment">// This the name of the output encoding. Saved mainly for meaningful</span></div>
|
|
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="comment">// error messages.</span></div>
|
|
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="comment">// fTarget</span></div>
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="comment">// This is the target object for the formatting operation.</span></div>
|
|
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="comment">// fUnRepFlags</span></div>
|
|
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="comment">// The unrepresentable flags that indicate how to react when a</span></div>
|
|
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="comment">// character cannot be represented in the target encoding.</span></div>
|
|
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="comment">// fXCoder</span></div>
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="comment">// This the transcoder that we will use. It is created using the</span></div>
|
|
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="comment">// encoding name we were told to use.</span></div>
|
|
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <span class="comment">// fTmpBuf</span></div>
|
|
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  <span class="comment">// An output buffer that we use to transcode chars into before we</span></div>
|
|
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="comment">// send them off to be output.</span></div>
|
|
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="comment">// fAposRef</span></div>
|
|
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="comment">// fAmpRef</span></div>
|
|
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="comment">// fGTRef</span></div>
|
|
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="comment">// fLTRef</span></div>
|
|
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="comment">// fQuoteRef</span></div>
|
|
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="comment">// These are character refs for the standard char refs, in the</span></div>
|
|
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="comment">// output encoding. They are faulted in as required, by transcoding</span></div>
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="comment">// them from fixed Unicode versions.</span></div>
|
|
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="comment">// fIsXML11</span></div>
|
|
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="comment">// for performance reason, we do not store the actual version string</span></div>
|
|
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="comment">// and do the string comparison again and again.</span></div>
|
|
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  EscapeFlags fEscapeFlags;</div>
|
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  XMLCh* fOutEncoding;</div>
|
|
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  XMLFormatTarget* fTarget;</div>
|
|
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  UnRepFlags fUnRepFlags;</div>
|
|
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  XMLTranscoder* fXCoder;</div>
|
|
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  XMLByte fTmpBuf[kTmpBufSize + 4];</div>
|
|
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  XMLByte* fAposRef;</div>
|
|
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  XMLSize_t fAposLen;</div>
|
|
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  XMLByte* fAmpRef;</div>
|
|
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  XMLSize_t fAmpLen;</div>
|
|
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  XMLByte* fGTRef;</div>
|
|
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  XMLSize_t fGTLen;</div>
|
|
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  XMLByte* fLTRef;</div>
|
|
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  XMLSize_t fLTLen;</div>
|
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  XMLByte* fQuoteRef;</div>
|
|
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  XMLSize_t fQuoteLen;</div>
|
|
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keywordtype">bool</span> fIsXML11;</div>
|
|
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  MemoryManager* fMemoryManager;</div>
|
|
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> };</div>
|
|
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> </div>
|
|
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> </div>
|
|
<div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatTarget.html"> 442</a></span> <span class="keyword">class </span>XMLPARSER_EXPORT <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a> : <span class="keyword">public</span> <a class="code" href="classxercesc_1_1XMemory.html">XMemory</a></div>
|
|
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> {</div>
|
|
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="comment">// Constructors and Destructor</span></div>
|
|
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatTarget.html#a777b806b7d24d23c04132897314fc9b8"> 448</a></span>  <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1XMLFormatTarget.html#a777b806b7d24d23c04132897314fc9b8">~XMLFormatTarget</a>() {}</div>
|
|
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span> </div>
|
|
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span> </div>
|
|
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="comment">// Virtual interface</span></div>
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> writeChars</div>
|
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  (</div>
|
|
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="keyword">const</span> XMLByte* <span class="keyword">const</span> toWrite</div>
|
|
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  , <span class="keyword">const</span> XMLSize_t count</div>
|
|
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  , <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>* <span class="keyword">const</span> formatter</div>
|
|
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  ) = 0;</div>
|
|
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span> </div>
|
|
<div class="line"><a name="l00461"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatTarget.html#a956216cafd06b60bf7c437f4d1693722"> 461</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classxercesc_1_1XMLFormatTarget.html#a956216cafd06b60bf7c437f4d1693722">flush</a>() {};</div>
|
|
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div>
|
|
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span> </div>
|
|
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="keyword">protected</span> :</div>
|
|
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="comment">// Hidden constructors and operators</span></div>
|
|
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00468"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatTarget.html#a0223561322c7660d60be8ca7180916e0"> 468</a></span>  <a class="code" href="classxercesc_1_1XMLFormatTarget.html#a0223561322c7660d60be8ca7180916e0">XMLFormatTarget</a>() {};</div>
|
|
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div>
|
|
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="comment">// Unimplemented constructors and operators</span></div>
|
|
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="comment">// -----------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>&);</div>
|
|
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>& operator=(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a>&);</div>
|
|
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> };</div>
|
|
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div>
|
|
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> </div>
|
|
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="comment">// ---------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> <span class="comment">// XMLFormatter: Getter methods</span></div>
|
|
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> <span class="comment">// ---------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00482"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#ad5c0f9e924d7d379cb58a07fe7795f0d"> 482</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* XMLFormatter::getEncodingName()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">return</span> fOutEncoding;</div>
|
|
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span> }</div>
|
|
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> </div>
|
|
<div class="line"><a name="l00487"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a53d57a0ea755dcb96954e35ba78c11d0"> 487</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> XMLTranscoder* XMLFormatter::getTranscoder()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keywordflow">return</span> fXCoder;</div>
|
|
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span> }</div>
|
|
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div>
|
|
<div class="line"><a name="l00492"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#add18f9d8222e8474d946943de9a25946"> 492</a></span> <span class="keyword">inline</span> XMLTranscoder* XMLFormatter::getTranscoder()</div>
|
|
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span> {</div>
|
|
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="keywordflow">return</span> fXCoder;</div>
|
|
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span> }</div>
|
|
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> </div>
|
|
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> <span class="comment">// ---------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span> <span class="comment">// XMLFormatter: Setter methods</span></div>
|
|
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span> <span class="comment">// ---------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00500"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#af019c1de994c34187271365c0e75bb9a"> 500</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> XMLFormatter::setEscapeFlags(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95">EscapeFlags</a> newFlags)</div>
|
|
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> {</div>
|
|
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  fEscapeFlags = newFlags;</div>
|
|
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> }</div>
|
|
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> </div>
|
|
<div class="line"><a name="l00505"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a8883cfb0ace1a00353b79a1d6cf2464d"> 505</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> XMLFormatter::setUnRepFlags(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715c">UnRepFlags</a> newFlags)</div>
|
|
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> {</div>
|
|
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  fUnRepFlags = newFlags;</div>
|
|
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span> }</div>
|
|
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span> </div>
|
|
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div>
|
|
<div class="line"><a name="l00511"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a9255643504940df558e6b978ac1596f4"> 511</a></span> <span class="keyword">inline</span> <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>& XMLFormatter::operator<<(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95">EscapeFlags</a> newFlags)</div>
|
|
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> {</div>
|
|
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  fEscapeFlags = newFlags;</div>
|
|
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span> }</div>
|
|
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> </div>
|
|
<div class="line"><a name="l00517"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a5401b57187d6c16327cf8230cf795914"> 517</a></span> <span class="keyword">inline</span> <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>& XMLFormatter::operator<<(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715c">UnRepFlags</a> newFlags)</div>
|
|
<div class="line"><a name="l00518"></a><span class="lineno"> 518</span> {</div>
|
|
<div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  fUnRepFlags = newFlags;</div>
|
|
<div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
|
|
<div class="line"><a name="l00521"></a><span class="lineno"> 521</span> }</div>
|
|
<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> </div>
|
|
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span> <span class="comment">// ---------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span> <span class="comment">// XMLFormatter: Getter methods</span></div>
|
|
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span> <span class="comment">// ---------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00526"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a59a078ded9e759c81808d5fc7f2e8d75"> 526</a></span> <span class="keyword">inline</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95">XMLFormatter::EscapeFlags</a> XMLFormatter::getEscapeFlags()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">return</span> fEscapeFlags;</div>
|
|
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span> }</div>
|
|
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span> </div>
|
|
<div class="line"><a name="l00531"></a><span class="lineno"><a class="line" href="classxercesc_1_1XMLFormatter.html#a83e0bcc47dfac3f7761fe68a0497316e"> 531</a></span> <span class="keyword">inline</span> <a class="code" href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715c">XMLFormatter::UnRepFlags</a> XMLFormatter::getUnRepFlags()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span> <span class="keyword"></span>{</div>
|
|
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keywordflow">return</span> fUnRepFlags;</div>
|
|
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span> }</div>
|
|
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span> </div>
|
|
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> XERCES_CPP_NAMESPACE_END</div>
|
|
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span> </div>
|
|
<div class="line"><a name="l00538"></a><span class="lineno"> 538</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="classxercesc_1_1MemoryManager_html"><div class="ttname"><a href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a></div><div class="ttdoc">Configurable memory manager. </div><div class="ttdef"><b>Definition:</b> MemoryManager.hpp:39</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMLFormatTarget_html_a777b806b7d24d23c04132897314fc9b8"><div class="ttname"><a href="classxercesc_1_1XMLFormatTarget.html#a777b806b7d24d23c04132897314fc9b8">xercesc::XMLFormatTarget::~XMLFormatTarget</a></div><div class="ttdeci">virtual ~XMLFormatTarget()</div><div class="ttdef"><b>Definition:</b> XMLFormatter.hpp:448</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMLFormatTarget_html_a956216cafd06b60bf7c437f4d1693722"><div class="ttname"><a href="classxercesc_1_1XMLFormatTarget.html#a956216cafd06b60bf7c437f4d1693722">xercesc::XMLFormatTarget::flush</a></div><div class="ttdeci">virtual void flush()</div><div class="ttdef"><b>Definition:</b> XMLFormatter.hpp:461</div></div>
|
|
<div class="ttc" id="PlatformUtils_8hpp_html"><div class="ttname"><a href="PlatformUtils_8hpp.html">PlatformUtils.hpp</a></div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMLFormatter_html_adcf156fb89497dcc1406227d0c7d4b95"><div class="ttname"><a href="classxercesc_1_1XMLFormatter.html#adcf156fb89497dcc1406227d0c7d4b95">xercesc::XMLFormatter::EscapeFlags</a></div><div class="ttdeci">EscapeFlags</div><div class="ttdoc">EscapeFlags - Different styles of escape flags to control various formatting. </div><div class="ttdef"><b>Definition:</b> XMLFormatter.hpp:124</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMemory_html"><div class="ttname"><a href="classxercesc_1_1XMemory.html">xercesc::XMemory</a></div><div class="ttdoc">This class makes it possible to override the C++ memory management by adding new/delete operators to ...</div><div class="ttdef"><b>Definition:</b> XMemory.hpp:40</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMLFormatter_html_a08104c01dcd00f1a414582c77375715c"><div class="ttname"><a href="classxercesc_1_1XMLFormatter.html#a08104c01dcd00f1a414582c77375715c">xercesc::XMLFormatter::UnRepFlags</a></div><div class="ttdeci">UnRepFlags</div><div class="ttdoc">UnRepFlags. </div><div class="ttdef"><b>Definition:</b> XMLFormatter.hpp:152</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMLFormatter_html"><div class="ttname"><a href="classxercesc_1_1XMLFormatter.html">xercesc::XMLFormatter</a></div><div class="ttdoc">This class provides the basic formatting capabilities that are required to turn the Unicode based XML...</div><div class="ttdef"><b>Definition:</b> XMLFormatter.hpp:41</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMLFormatTarget_html"><div class="ttname"><a href="classxercesc_1_1XMLFormatTarget.html">xercesc::XMLFormatTarget</a></div><div class="ttdef"><b>Definition:</b> XMLFormatter.hpp:442</div></div>
|
|
<div class="ttc" id="classxercesc_1_1XMLFormatTarget_html_a0223561322c7660d60be8ca7180916e0"><div class="ttname"><a href="classxercesc_1_1XMLFormatTarget.html#a0223561322c7660d60be8ca7180916e0">xercesc::XMLFormatTarget::XMLFormatTarget</a></div><div class="ttdeci">XMLFormatTarget()</div><div class="ttdef"><b>Definition:</b> XMLFormatter.hpp:468</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|