114 lines
8.8 KiB
HTML
114 lines
8.8 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>LocalFileFormatTarget.hpp</h1><a href="LocalFileFormatTarget_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: LocalFileFormatTarget.hpp 553937 2007-07-06 16:02:19Z amassari $</span>
|
|
00020 <span class="comment"> */</span>
|
|
00021
|
|
00022 <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_LOCALFILEFORMATTARGET_HPP)</span>
|
|
<a name="l00023"></a><a class="code" href="LocalFileFormatTarget_8hpp.html#a0">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_LOCALFILEFORMATTARGET_HPP</span>
|
|
00024 <span class="preprocessor"></span>
|
|
00025 <span class="preprocessor">#include <<a class="code" href="XMLFormatter_8hpp.html">xercesc/framework/XMLFormatter.hpp</a>></span>
|
|
00026
|
|
00027 XERCES_CPP_NAMESPACE_BEGIN
|
|
00028
|
|
<a name="l00029"></a><a class="code" href="classxercesc_1_1LocalFileFormatTarget.html">00029</a> <span class="keyword">class </span>XMLPARSER_EXPORT LocalFileFormatTarget : <span class="keyword">public</span> <a class="code" href="classxercesc_1_1XMLFormatTarget.html">XMLFormatTarget</a> {
|
|
00030 <span class="keyword">public</span>:
|
|
00031
|
|
00034 LocalFileFormatTarget
|
|
00035 (
|
|
00036 <span class="keyword">const</span> XMLCh* <span class="keyword">const</span>
|
|
00037 , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
|
|
00038 );
|
|
00039
|
|
00040 LocalFileFormatTarget
|
|
00041 (
|
|
00042 <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span>
|
|
00043 , <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
|
|
00044 );
|
|
00045
|
|
00046 ~LocalFileFormatTarget();
|
|
00048
|
|
00049 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00050 <span class="comment">// Implementations of the format target interface</span>
|
|
00051 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classxercesc_1_1XMLFormatTarget.html#a1">writeChars</a>(<span class="keyword">const</span> XMLByte* <span class="keyword">const</span> toWrite
|
|
00053 , <span class="keyword">const</span> XMLSize_t count
|
|
00054 , <a class="code" href="classxercesc_1_1XMLFormatter.html">XMLFormatter</a>* <span class="keyword">const</span> formatter);
|
|
00055
|
|
00056 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classxercesc_1_1XMLFormatTarget.html#a2">flush</a>();
|
|
00057
|
|
00058 <span class="keyword">private</span>:
|
|
00059 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00060 <span class="comment">// Unimplemented methods.</span>
|
|
00061 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00062 LocalFileFormatTarget(<span class="keyword">const</span> LocalFileFormatTarget&);
|
|
00063 LocalFileFormatTarget& operator=(<span class="keyword">const</span> LocalFileFormatTarget&);
|
|
00064
|
|
00065 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00066 <span class="comment">// Private helpers</span>
|
|
00067 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00068 <span class="keywordtype">void</span> flushBuffer();
|
|
00069 <span class="keywordtype">bool</span> insureCapacity(<span class="keyword">const</span> XMLSize_t extraNeeded);
|
|
00070
|
|
00071 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00072 <span class="comment">// Private data members</span>
|
|
00073 <span class="comment">//</span>
|
|
00074 <span class="comment">// fSource</span>
|
|
00075 <span class="comment">// The source file that we represent. The FileHandle type is defined</span>
|
|
00076 <span class="comment">// per platform.</span>
|
|
00077 <span class="comment">//</span>
|
|
00078 <span class="comment">// fDataBuf</span>
|
|
00079 <span class="comment">// The pointer to the buffer data. Its always</span>
|
|
00080 <span class="comment">// one larger than fCapacity, to leave room for the null terminator.</span>
|
|
00081 <span class="comment">//</span>
|
|
00082 <span class="comment">// fIndex</span>
|
|
00083 <span class="comment">// The current index into the buffer, as characters are appended</span>
|
|
00084 <span class="comment">// to it. If its zero, then the buffer is empty.</span>
|
|
00085 <span class="comment">//</span>
|
|
00086 <span class="comment">// fCapacity</span>
|
|
00087 <span class="comment">// The current capacity of the buffer. Its actually always one</span>
|
|
00088 <span class="comment">// larger, to leave room for the null terminator.</span>
|
|
00089 <span class="comment">// -----------------------------------------------------------------------</span>
|
|
00090 FileHandle fSource;
|
|
00091 XMLByte* fDataBuf;
|
|
00092 XMLSize_t fIndex;
|
|
00093 XMLSize_t fCapacity;
|
|
00094 <a class="code" href="classxercesc_1_1MemoryManager.html">MemoryManager</a>* fMemoryManager;
|
|
00095 };
|
|
00096
|
|
00097
|
|
00098 XERCES_CPP_NAMESPACE_END
|
|
00099
|
|
00100 <span class="preprocessor">#endif</span>
|
|
00101 <span class="preprocessor"></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>
|