141 lines
10 KiB
HTML
141 lines
10 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_000014.html">framework</a></div>
|
|
<h1>MemBufInputSource.hpp</h1><a href="MemBufInputSource_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: MemBufInputSource.hpp 553941 2007-07-06 16:14:22Z amassari $</span>
|
|
00020 <span class="comment"> */</span>
|
|
00021
|
|
00022
|
|
00023 <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_MEMBUFINPUTSOURCE_HPP)</span>
|
|
<a name="l00024"></a><a class="code" href="MemBufInputSource_8hpp.html#a0">00024</a> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_MEMBUFINPUTSOURCE_HPP</span>
|
|
00025 <span class="preprocessor"></span>
|
|
00026 <span class="preprocessor">#include <<a class="code" href="InputSource_8hpp.html">xercesc/sax/InputSource.hpp</a>></span>
|
|
00027
|
|
00028 XERCES_CPP_NAMESPACE_BEGIN
|
|
00029
|
|
00030 <span class="keyword">class </span>BinInputStream;
|
|
00031
|
|
00032
|
|
<a name="l00061"></a><a class="code" href="classxercesc_1_1MemBufInputSource.html">00061</a> <span class="keyword">class </span>XMLPARSER_EXPORT MemBufInputSource : <span class="keyword">public</span> <a class="code" href="classxercesc_1_1InputSource.html">InputSource</a>
|
|
00062 {
|
|
00063 <span class="keyword">public</span> :
|
|
00064 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00065 <span class="comment">// Constructors and Destructor</span>
|
|
00066 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00067
|
|
00070
|
|
00093 MemBufInputSource
|
|
00094 (
|
|
00095 <span class="keyword">const</span> XMLByte* <span class="keyword">const</span> srcDocBytes
|
|
00096 , <span class="keyword">const</span> XMLSize_t byteCount
|
|
00097 , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> bufId
|
|
00098 , <span class="keyword">const</span> <span class="keywordtype">bool</span> adoptBuffer = <span class="keyword">false</span>
|
|
00099 , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
|
|
00100 );
|
|
00101
|
|
00106 MemBufInputSource
|
|
00107 (
|
|
00108 <span class="keyword">const</span> XMLByte* <span class="keyword">const</span> srcDocBytes
|
|
00109 , <span class="keyword">const</span> XMLSize_t byteCount
|
|
00110 , <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> bufId
|
|
00111 , <span class="keyword">const</span> <span class="keywordtype">bool</span> adoptBuffer = <span class="keyword">false</span>
|
|
00112 , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
|
|
00113 );
|
|
00115
|
|
00122 ~MemBufInputSource();
|
|
00124
|
|
00125
|
|
00126 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00127 <span class="comment">// Virtual input source interface</span>
|
|
00128 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00129
|
|
00132
|
|
00143 BinInputStream* <a class="code" href="classxercesc_1_1InputSource.html#z97_0">makeStream</a>() <span class="keyword">const</span>;
|
|
00144
|
|
00146
|
|
00147
|
|
00148 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00149 <span class="comment">// Setter methods</span>
|
|
00150 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00151
|
|
00155
|
|
00171 <span class="keywordtype">void</span> setCopyBufToStream(<span class="keyword">const</span> <span class="keywordtype">bool</span> newState);
|
|
00172
|
|
00182 <span class="keywordtype">void</span> resetMemBufInputSource(<span class="keyword">const</span> XMLByte* <span class="keyword">const</span> srcDocBytes
|
|
00183 , <span class="keyword">const</span> XMLSize_t byteCount);
|
|
00185
|
|
00186
|
|
00187 <span class="keyword">private</span> :
|
|
00188 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00189 <span class="comment">// Unimplemented constructors and operators</span>
|
|
00190 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00191 MemBufInputSource(<span class="keyword">const</span> MemBufInputSource&);
|
|
00192 MemBufInputSource& operator=(<span class="keyword">const</span> MemBufInputSource&);
|
|
00193
|
|
00194 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00195 <span class="comment">// Private data members</span>
|
|
00196 <span class="comment">//</span>
|
|
00197 <span class="comment">// fAdopted</span>
|
|
00198 <span class="comment">// Indicates whether the buffer is adopted or not. If so, then it</span>
|
|
00199 <span class="comment">// is destroyed when the input source is destroyed.</span>
|
|
00200 <span class="comment">//</span>
|
|
00201 <span class="comment">// fByteCount</span>
|
|
00202 <span class="comment">// The size of the source document.</span>
|
|
00203 <span class="comment">//</span>
|
|
00204 <span class="comment">// fCopyBufToStream</span>
|
|
00205 <span class="comment">// This defaults to true (the safe option), which causes it to</span>
|
|
00206 <span class="comment">// give a copy of the buffer to any streams it creates. If you set</span>
|
|
00207 <span class="comment">// it to false, it will allow the streams to just reference the</span>
|
|
00208 <span class="comment">// buffer (in which case this input source must stay alive as long</span>
|
|
00209 <span class="comment">// as the buffer is in use by the stream.)</span>
|
|
00210 <span class="comment">//</span>
|
|
00211 <span class="comment">// fSrcBytes</span>
|
|
00212 <span class="comment">// The source memory buffer that is being spooled from. Whether it</span>
|
|
00213 <span class="comment">// belongs to the this input source or not is controlled by the</span>
|
|
00214 <span class="comment">// fAdopted flag.</span>
|
|
00215 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00216 <span class="keywordtype">bool</span> fAdopted;
|
|
00217 XMLSize_t fByteCount;
|
|
00218 <span class="keywordtype">bool</span> fCopyBufToStream;
|
|
00219 <span class="keyword">const</span> XMLByte* fSrcBytes;
|
|
00220 };
|
|
00221
|
|
00222
|
|
<a name="l00223"></a><a class="code" href="classxercesc_1_1MemBufInputSource.html#z117_0">00223</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> MemBufInputSource::setCopyBufToStream(<span class="keyword">const</span> <span class="keywordtype">bool</span> newState)
|
|
00224 {
|
|
00225 fCopyBufToStream = newState;
|
|
00226 }
|
|
00227
|
|
00228 XERCES_CPP_NAMESPACE_END
|
|
00229
|
|
00230 <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>
|