193 lines
14 KiB
HTML
193 lines
14 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.3.9.1 -->
|
|
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_000007.html">xerces-c-3.0.1</a> / <a class="el" href="dir_000008.html">src</a> / <a class="el" href="dir_000009.html">xercesc</a> / <a class="el" href="dir_000013.html">sax</a></div>
|
|
<h1>InputSource.hpp</h1><a href="InputSource_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
|
|
00002 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span>
|
|
00003 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span>
|
|
00004 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
|
|
00005 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
|
|
00006 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span>
|
|
00007 <span class="comment"> * the License. You may obtain a copy of the License at</span>
|
|
00008 <span class="comment"> * </span>
|
|
00009 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
|
|
00010 <span class="comment"> * </span>
|
|
00011 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
|
|
00012 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
|
|
00013 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
|
|
00014 <span class="comment"> * See the License for the specific language governing permissions and</span>
|
|
00015 <span class="comment"> * limitations under the License.</span>
|
|
00016 <span class="comment"> */</span>
|
|
00017
|
|
00018 <span class="comment">/*</span>
|
|
00019 <span class="comment"> * $Id: InputSource.hpp 527149 2007-04-10 14:56:39Z amassari $</span>
|
|
00020 <span class="comment"> */</span>
|
|
00021
|
|
00022 <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_INPUTSOURCE_HPP)</span>
|
|
<a name="l00023"></a><a class="code" href="InputSource_8hpp.html#a0">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_INPUTSOURCE_HPP</span>
|
|
00024 <span class="preprocessor"></span>
|
|
00025 <span class="preprocessor">#include <<a class="code" href="PlatformUtils_8hpp.html">xercesc/util/PlatformUtils.hpp</a>></span>
|
|
00026
|
|
00027 XERCES_CPP_NAMESPACE_BEGIN
|
|
00028
|
|
00029 <span class="keyword">class </span>BinInputStream;
|
|
00030
|
|
00031
|
|
<a name="l00062"></a><a class="code" href="classxercesc_1_1InputSource.html">00062</a> <span class="keyword">class </span>SAX_EXPORT InputSource : <span class="keyword">public</span> <a class="code" href="classxercesc_1_1XMemory.html">XMemory</a>
|
|
00063 {
|
|
00064 <span class="keyword">public</span>:
|
|
00065 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00066 <span class="comment">// All constructors are hidden, just the destructor is available</span>
|
|
00067 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00074 <span class="comment"></span> <span class="keyword">virtual</span> ~InputSource();
|
|
00076
|
|
00077
|
|
00078 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00091 <span class="comment"></span> <span class="keyword">virtual</span> BinInputStream* makeStream() <span class="keyword">const </span>= 0;
|
|
00092
|
|
00094
|
|
00095
|
|
00096 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00108 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getEncoding() <span class="keyword">const</span>;
|
|
00109
|
|
00110
|
|
00117 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getPublicId() <span class="keyword">const</span>;
|
|
00118
|
|
00119
|
|
00128 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getSystemId() <span class="keyword">const</span>;
|
|
00129
|
|
00138 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getIssueFatalErrorIfNotFound() <span class="keyword">const</span>;
|
|
00139
|
|
00140 <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* getMemoryManager() <span class="keyword">const</span>;
|
|
00141
|
|
00143
|
|
00144
|
|
00145 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00148 <span class="comment"></span>
|
|
00160 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setEncoding(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> encodingStr);
|
|
00161
|
|
00162
|
|
00174 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPublicId(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> publicId);
|
|
00175
|
|
00192 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setSystemId(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> systemId);
|
|
00193
|
|
00203 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setIssueFatalErrorIfNotFound(<span class="keyword">const</span> <span class="keywordtype">bool</span> flag);
|
|
00204
|
|
00206
|
|
00207
|
|
00208 <span class="keyword">protected</span> :
|
|
00209 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00210 <span class="comment">// Hidden constructors</span>
|
|
00211 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00215 <span class="comment"></span> InputSource(<a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
|
|
00216
|
|
00222 InputSource(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> systemId,
|
|
00223 <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
|
|
00224
|
|
00231 InputSource
|
|
00232 (
|
|
00233 <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> systemId
|
|
00234 , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> publicId
|
|
00235 , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
|
|
00236 );
|
|
00237
|
|
00243 InputSource(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> systemId,
|
|
00244 <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
|
|
00245
|
|
00252 InputSource
|
|
00253 (
|
|
00254 <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> systemId
|
|
00255 , <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> publicId
|
|
00256 , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
|
|
00257 );
|
|
00258
|
|
00260
|
|
00261
|
|
00262
|
|
00263
|
|
00264
|
|
00265 <span class="keyword">private</span>:
|
|
00266 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00267 <span class="comment">// Unimplemented constructors and operators</span>
|
|
00268 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00269 InputSource(<span class="keyword">const</span> InputSource&);
|
|
00270 InputSource& operator=(<span class="keyword">const</span> InputSource&);
|
|
00271
|
|
00272
|
|
00273 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00274 <span class="comment">// Private data members</span>
|
|
00275 <span class="comment">//</span>
|
|
00276 <span class="comment">// fEncoding</span>
|
|
00277 <span class="comment">// This is the encoding to use. Usually this is null, which means</span>
|
|
00278 <span class="comment">// to use the information found in the file itself. But, if set,</span>
|
|
00279 <span class="comment">// this encoding will be used without question.</span>
|
|
00280 <span class="comment">//</span>
|
|
00281 <span class="comment">// fPublicId</span>
|
|
00282 <span class="comment">// This is the optional public id for the input source. It can be</span>
|
|
00283 <span class="comment">// null if none is desired.</span>
|
|
00284 <span class="comment">//</span>
|
|
00285 <span class="comment">// fSystemId</span>
|
|
00286 <span class="comment">// This is the system id for the input source. This is what is</span>
|
|
00287 <span class="comment">// actually used to open the source.</span>
|
|
00288 <span class="comment">//</span>
|
|
00289 <span class="comment">// fFatalErrorIfNotFound</span>
|
|
00290 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00291 <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> fMemoryManager;
|
|
00292 XMLCh* fEncoding;
|
|
00293 XMLCh* fPublicId;
|
|
00294 XMLCh* fSystemId;
|
|
00295 <span class="keywordtype">bool</span> fFatalErrorIfNotFound;
|
|
00296 };
|
|
00297
|
|
00298
|
|
00299 <span class="comment">// ---------------------------------------------------------------------------</span>
|
|
00300 <span class="comment">// InputSource: Getter methods</span>
|
|
00301 <span class="comment">// ---------------------------------------------------------------------------</span>
|
|
<a name="l00302"></a><a class="code" href="classxercesc_1_1InputSource.html#z99_0">00302</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* InputSource::getEncoding()<span class="keyword"> const</span>
|
|
00303 <span class="keyword"></span>{
|
|
00304 <span class="keywordflow">return</span> fEncoding;
|
|
00305 }
|
|
00306
|
|
<a name="l00307"></a><a class="code" href="classxercesc_1_1InputSource.html#z99_1">00307</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* InputSource::getPublicId()<span class="keyword"> const</span>
|
|
00308 <span class="keyword"></span>{
|
|
00309 <span class="keywordflow">return</span> fPublicId;
|
|
00310 }
|
|
00311
|
|
<a name="l00312"></a><a class="code" href="classxercesc_1_1InputSource.html#z99_2">00312</a> <span class="keyword">inline</span> <span class="keyword">const</span> XMLCh* InputSource::getSystemId()<span class="keyword"> const</span>
|
|
00313 <span class="keyword"></span>{
|
|
00314 <span class="keywordflow">return</span> fSystemId;
|
|
00315 }
|
|
00316
|
|
<a name="l00317"></a><a class="code" href="classxercesc_1_1InputSource.html#z99_3">00317</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> InputSource::getIssueFatalErrorIfNotFound()<span class="keyword"> const</span>
|
|
00318 <span class="keyword"></span>{
|
|
00319 <span class="keywordflow">return</span> fFatalErrorIfNotFound;
|
|
00320 }
|
|
00321
|
|
<a name="l00322"></a><a class="code" href="classxercesc_1_1InputSource.html#z99_4">00322</a> <span class="keyword">inline</span> <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* InputSource::getMemoryManager()<span class="keyword"> const</span>
|
|
00323 <span class="keyword"></span>{
|
|
00324 <span class="keywordflow">return</span> fMemoryManager;
|
|
00325 }
|
|
00326
|
|
00327 <span class="comment">// ---------------------------------------------------------------------------</span>
|
|
00328 <span class="comment">// InputSource: Setter methods</span>
|
|
00329 <span class="comment">// ---------------------------------------------------------------------------</span>
|
|
<a name="l00330"></a><a class="code" href="classxercesc_1_1InputSource.html#z101_3">00330</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> InputSource::setIssueFatalErrorIfNotFound(<span class="keyword">const</span> <span class="keywordtype">bool</span> flag)
|
|
00331 {
|
|
00332 fFatalErrorIfNotFound = flag;
|
|
00333 }
|
|
00334
|
|
00335 XERCES_CPP_NAMESPACE_END
|
|
00336
|
|
00337 <span class="preprocessor">#endif</span>
|
|
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:26 2009 for XQilla Simple API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
|
</body>
|
|
</html>
|