1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Xerces-C++: Wrapper4InputSource.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.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>Wrapper4InputSource.hpp</h1><a href="Wrapper4InputSource_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00003"></a>00003 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span>
<a name="l00004"></a>00004 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00005"></a>00005 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00006"></a>00006 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span>
<a name="l00007"></a>00007 <span class="comment"> * the License. You may obtain a copy of the License at</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00012"></a>00012 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00013"></a>00013 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00014"></a>00014 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00015"></a>00015 <span class="comment"> * limitations under the License.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="comment">/*</span>
<a name="l00019"></a>00019 <span class="comment"> * $Id: Wrapper4InputSource.hpp 932887 2010-04-11 13:04:59Z borisk $</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_WRAPPER4INPUTSOURCE_HPP)</span>
<a name="l00023"></a><a class="code" href="Wrapper4InputSource_8hpp.html#d99fd8f13b6989500667650d21d67de5">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_WRAPPER4INPUTSOURCE_HPP</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include <<a class="code" href="DOMLSInput_8hpp.html">xercesc/dom/DOMLSInput.hpp</a>></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></span>
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <a class="code" href="XercesDefs_8hpp.html#43d74fa53d868d978f3e97cbb78b194d">XERCES_CPP_NAMESPACE_BEGIN</a>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="classInputSource.html" title="A single input source for an XML entity.">InputSource</a>;
<a name="l00031"></a>00031
<a name="l00032"></a>00032
<a name="l00036"></a><a class="code" href="classWrapper4InputSource.html">00036</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#13df5a01e63e51f62a1467b588b59054">XMLPARSER_EXPORT</a> <a class="code" href="classWrapper4InputSource.html" title="Wrap a SAX InputSource object and make it behave like DOMLSInput.">Wrapper4InputSource</a>: <span class="keyword">public</span> <a class="code" href="classDOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a>
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038 <span class="keyword">public</span>:
<a name="l00041"></a>00041
<a name="l00053"></a>00053 <a class="code" href="classWrapper4InputSource.html" title="Wrap a SAX InputSource object and make it behave like DOMLSInput.">Wrapper4InputSource</a>(<a class="code" href="classInputSource.html" title="A single input source for an XML entity.">InputSource</a>* <span class="keyword">const</span> inputSource
<a name="l00054"></a>00054 , <span class="keyword">const</span> <span class="keywordtype">bool</span> adoptFlag = <span class="keyword">true</span>
<a name="l00055"></a>00055 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00056"></a>00056
<a name="l00061"></a>00061 <span class="keyword">virtual</span> ~<a class="code" href="classWrapper4InputSource.html" title="Wrap a SAX InputSource object and make it behave like DOMLSInput.">Wrapper4InputSource</a>();
<a name="l00063"></a>00063
<a name="l00064"></a>00064
<a name="l00065"></a>00065 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00072"></a>00072 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classDOMLSInput.html#ac3025da12408e53514c0019a33fc7cf" title="String data to parse.">getStringData</a>() <span class="keyword">const</span>;
<a name="l00073"></a>00073
<a name="l00082"></a>00082 <span class="keyword">virtual</span> <a class="code" href="classInputSource.html" title="A single input source for an XML entity.">InputSource</a>* <a class="code" href="classDOMLSInput.html#fe1cdd4c609c8e7fca5d82938a0e52ba" title="Returns the byte stream for this input source.">getByteStream</a>() <span class="keyword">const</span>;
<a name="l00084"></a>00084
<a name="l00085"></a>00085 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00098"></a>00098 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classDOMLSInput.html#1edacacf072ec629660c94ebb2a7f8ca" title="An input source can be set to force the parser to assume a particular encoding for...">getEncoding</a>() <span class="keyword">const</span>;
<a name="l00099"></a>00099
<a name="l00100"></a>00100
<a name="l00108"></a>00108 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classDOMLSInput.html#654cf42cf2820e1434fa6bd066453cb3" title="Get the public identifier for this input source.">getPublicId</a>() <span class="keyword">const</span>;
<a name="l00109"></a>00109
<a name="l00110"></a>00110
<a name="l00120"></a>00120 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classDOMLSInput.html#bd2dc514819aa9663326e94dbffb9188" title="Get the system identifier for this input source.">getSystemId</a>() <span class="keyword">const</span>;
<a name="l00121"></a>00121
<a name="l00132"></a>00132 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classDOMLSInput.html#2937e0304778268dfcf6694b62159681" title="Get the base URI to be used for resolving relative URIs to absolute URIs.">getBaseURI</a>() <span class="keyword">const</span>;
<a name="l00133"></a>00133
<a name="l00142"></a>00142 <span class="keywordtype">bool</span> <a class="code" href="classDOMLSInput.html#b6a8feb584032e887d7ad457b94ddb20" title="Get the flag that indicates if the parser should issue fatal error if this input...">getIssueFatalErrorIfNotFound</a>() <span class="keyword">const</span>;
<a name="l00143"></a>00143
<a name="l00145"></a>00145
<a name="l00146"></a>00146
<a name="l00147"></a>00147 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00154"></a>00154 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#7683c9d4e6c1fe2e0ef43d64cfbf73cc" title="Sets the UTF-16 string for this input source.">setStringData</a>(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* data);
<a name="l00155"></a>00155
<a name="l00160"></a>00160 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#7222e17680417326db04c11c54378772" title="Sets the byte stream for this input source.">setByteStream</a>(<a class="code" href="classInputSource.html" title="A single input source for an XML entity.">InputSource</a>* stream);
<a name="l00161"></a>00161
<a name="l00174"></a>00174 <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#486e636419cc78f9a5e8ab309871b508" title="Set the encoding which will be required for use with the XML text read via a stream...">setEncoding</a>(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> encodingStr);
<a name="l00175"></a>00175
<a name="l00176"></a>00176
<a name="l00189"></a>00189 <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#82702784fef29ccba9f487bd0e8eb85f" title="Set the public identifier for this input source.">setPublicId</a>(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> publicId);
<a name="l00190"></a>00190
<a name="l00206"></a>00206 <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#7249fbe4cb01fca699869714a6341637" title="Set the system identifier for this input source.">setSystemId</a>(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> systemId);
<a name="l00207"></a>00207
<a name="l00218"></a>00218 <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#1abde210b55eb369a77bad6b1a0fd924" title="Set the base URI to be used for resolving relative URIs to absolute URIs.">setBaseURI</a>(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> baseURI);
<a name="l00219"></a>00219
<a name="l00232"></a>00232 <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#0032e821e273fc1c97df2e0ec31b9467" title="Indicates if the parser should issue fatal error if this input source is not found...">setIssueFatalErrorIfNotFound</a>(<span class="keywordtype">bool</span> flag);
<a name="l00233"></a>00233
<a name="l00240"></a>00240 <span class="keywordtype">void</span> <a class="code" href="classDOMLSInput.html#eca2b7a4721979fe0690ab1dc168f2f5" title="Called to indicate that this DOMLSInput is no longer in use and that the implementation...">release</a>();
<a name="l00241"></a>00241
<a name="l00243"></a>00243
<a name="l00244"></a>00244
<a name="l00245"></a>00245 <span class="keyword">private</span>:
<a name="l00246"></a>00246 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00247"></a>00247 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00248"></a>00248 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00249"></a>00249 <a class="code" href="classWrapper4InputSource.html" title="Wrap a SAX InputSource object and make it behave like DOMLSInput.">Wrapper4InputSource</a>(<span class="keyword">const</span> <a class="code" href="classWrapper4InputSource.html" title="Wrap a SAX InputSource object and make it behave like DOMLSInput.">Wrapper4InputSource</a>&);
<a name="l00250"></a>00250 <a class="code" href="classWrapper4InputSource.html" title="Wrap a SAX InputSource object and make it behave like DOMLSInput.">Wrapper4InputSource</a>& operator=(<span class="keyword">const</span> <a class="code" href="classWrapper4InputSource.html" title="Wrap a SAX InputSource object and make it behave like DOMLSInput.">Wrapper4InputSource</a>&);
<a name="l00251"></a>00251
<a name="l00252"></a>00252 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00253"></a>00253 <span class="comment">// Private data members</span>
<a name="l00254"></a>00254 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00255"></a>00255 <span class="keywordtype">bool</span> fAdoptInputSource;
<a name="l00256"></a>00256 <a class="code" href="classInputSource.html" title="A single input source for an XML entity.">InputSource</a>* fInputSource;
<a name="l00257"></a>00257 };
<a name="l00258"></a>00258
<a name="l00259"></a>00259
<a name="l00260"></a>00260 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00261"></a>00261 <span class="comment">// Wrapper4InputSource: Getter methods</span>
<a name="l00262"></a>00262 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00263"></a><a class="code" href="classWrapper4InputSource.html#a6ce1aa6d741509b7eb4a77616960125">00263</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classWrapper4InputSource.html#a6ce1aa6d741509b7eb4a77616960125" title="Get the base URI to be used for resolving relative URIs to absolute URIs.">Wrapper4InputSource::getBaseURI</a>()<span class="keyword"> const</span>
<a name="l00264"></a>00264 <span class="keyword"></span>{
<a name="l00265"></a>00265 <span class="keywordflow">return</span> 0; <span class="comment">// REVISIT - should we return an empty string?</span>
<a name="l00266"></a>00266 }
<a name="l00267"></a>00267
<a name="l00268"></a><a class="code" href="classWrapper4InputSource.html#a806349d14b4008beeb580fbfb63ac86">00268</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <a class="code" href="classWrapper4InputSource.html#a806349d14b4008beeb580fbfb63ac86" title="This wrapper doesn&#39;t support string data.">Wrapper4InputSource::getStringData</a>()<span class="keyword"> const</span>
<a name="l00269"></a>00269 <span class="keyword"></span>{
<a name="l00270"></a>00270 <span class="keywordflow">return</span> 0;
<a name="l00271"></a>00271 }
<a name="l00272"></a>00272
<a name="l00273"></a>00273 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00274"></a>00274 <span class="comment">// Wrapper4InputSource: Setter methods</span>
<a name="l00275"></a>00275 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00276"></a><a class="code" href="classWrapper4InputSource.html#a36dcc3b5779af7f6e0b414ed7d9ccfc">00276</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classWrapper4InputSource.html#a36dcc3b5779af7f6e0b414ed7d9ccfc" title="Set the base URI to be used for resolving relative URIs to absolute URIs.">Wrapper4InputSource::setBaseURI</a>(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span>)
<a name="l00277"></a>00277 {
<a name="l00278"></a>00278 }
<a name="l00279"></a>00279
<a name="l00280"></a><a class="code" href="classWrapper4InputSource.html#6f2b18f505eea373cfcdde927d1b2c86">00280</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classWrapper4InputSource.html#6f2b18f505eea373cfcdde927d1b2c86" title="This wrapper only exposes the given InputSource, no setting allowed.">Wrapper4InputSource::setStringData</a>(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>*)
<a name="l00281"></a>00281 {
<a name="l00282"></a>00282 }
<a name="l00283"></a>00283
<a name="l00284"></a><a class="code" href="classWrapper4InputSource.html#19339fc9ad81b84af5f790c95e93ed38">00284</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classWrapper4InputSource.html#19339fc9ad81b84af5f790c95e93ed38" title="This wrapper only exposes the given InputSource, no setting allowed.">Wrapper4InputSource::setByteStream</a>(<a class="code" href="classInputSource.html" title="A single input source for an XML entity.">InputSource</a>*)
<a name="l00285"></a>00285 {
<a name="l00286"></a>00286 }
<a name="l00287"></a>00287
<a name="l00288"></a>00288 <a class="code" href="XercesDefs_8hpp.html#f03d5cb905763ef7a7bd22ab82718285">XERCES_CPP_NAMESPACE_END</a>
<a name="l00289"></a>00289
<a name="l00290"></a>00290 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Apr 21 17:55:48 2010 for Xerces-C++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
|