blob: 0133126d42c50c173c99ccdf65e09e6f5d90230c [file] [log] [blame]
<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
<BODY>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
</BODY>
<!-- Generated by Doxygen 1.2.8.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>XSLTResultTarget.hpp</h1><a href="XSLTResultTarget_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
00006 <font class="comment"> * You may obtain a copy of the License at</font>
00007 <font class="comment"> *</font>
00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
00009 <font class="comment"> *</font>
00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
00014 <font class="comment"> * limitations under the License.</font>
00015 <font class="comment"> */</font>
00016
00017 <font class="preprocessor">#if !defined(XALAN_XSLTRESULTTARGET_HEADER_GUARD)</font>
<a name="l00018"></a><a class="code" href="XSLTResultTarget_8hpp.html#a0">00018</a> <font class="preprocessor"></font><font class="preprocessor">#define XALAN_XSLTRESULTTARGET_HEADER_GUARD</font>
00019 <font class="preprocessor"></font>
00020 <font class="comment">// Base include file. Must be first.</font>
00021 <font class="preprocessor">#include "<a class="code" href="XSLTDefinitions_8hpp.html">XSLTDefinitions.hpp</a>"</font>
00022
00023
00024
00025 <font class="preprocessor">#include &lt;cstdio&gt;</font>
00026 <font class="preprocessor">#if defined(XALAN_CLASSIC_IOSTREAMS)</font>
00027 <font class="preprocessor"></font><font class="keyword">class </font>ostream;
00028 <font class="preprocessor">#else</font>
00029 <font class="preprocessor"></font><font class="preprocessor">#include &lt;iosfwd&gt;</font>
00030 <font class="preprocessor">#endif</font>
00031 <font class="preprocessor"></font>
00032
00033
00034 <font class="preprocessor">#include &lt;<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>&gt;</font>
00035
00036
00037
00038 XALAN_CPP_NAMESPACE_BEGIN
00039
00040
00041
<a name="l00042"></a><a class="code" href="XSLTResultTarget_8hpp.html#a1">00042</a> <font class="keyword">class </font><a class="code" href="classFormatterListener.html">FormatterListener</a>;
00043 <font class="keyword">class </font><a class="code" href="classWriter.html">Writer</a>;
00044
00045
00046
<a name="l00047"></a><a class="code" href="classXSLTResultTarget.html">00047</a> <font class="keyword">class </font>XALAN_XSLT_EXPORT <a class="code" href="classXSLTResultTarget.html">XSLTResultTarget</a>
00048 {
00049 <font class="keyword">public</font>:
00050
00051 <font class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</font>
00052 <font class="preprocessor"></font> <font class="keyword">typedef</font> ostream StreamType;
00053 <font class="preprocessor">#else</font>
<a name="l00054"></a><a class="code" href="classXSLTResultTarget.html#s0">00054</a> <font class="preprocessor"></font> <font class="keyword">typedef</font> std::ostream StreamType;
00055 <font class="preprocessor">#endif</font>
00056 <font class="preprocessor"></font>
00057 <font class="preprocessor">#if defined(XALAN_STRICT_ANSI_HEADERS)</font>
00058 <font class="preprocessor"></font> <font class="keyword">typedef</font> std::FILE FILE;
00059 <font class="preprocessor">#endif</font>
00060 <font class="preprocessor"></font>
00061
00062 <font class="keyword">explicit</font>
00063 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00064
00070 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; fileName,
00071 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00072
00078 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(<font class="keyword">const</font> XalanDOMChar* fileName,
00079 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00080
00086 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(<font class="keyword">const</font> <font class="keywordtype">char</font>* fileName,
00087 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00088
00094 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(StreamType* theStream,
00095 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00096
00102 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(StreamType&amp; theStream,
00103 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00104
00111 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(<a class="code" href="classWriter.html">Writer</a>* characterStream,
00112 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00113
00120 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(FILE* characterStream,
00121 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00122
00128 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(<a class="code" href="classFormatterListener.html">FormatterListener</a>&amp; flistener,
00129 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00130
00131 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(<font class="keyword">const</font> <a class="code" href="classXSLTResultTarget.html">XSLTResultTarget</a>&amp; other,
00132 MemoryManagerType&amp; theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR);
00133 <a class="code" href="classXSLTResultTarget.html#a10">~XSLTResultTarget</a>();
00134
00140 <font class="keywordtype">void</font>
<a name="l00141"></a><a class="code" href="classXSLTResultTarget.html#a11">00141</a> <a class="code" href="classXSLTResultTarget.html#a11">setFileName</a>(<font class="keyword">const</font> <font class="keywordtype">char</font>* fileName)<font class="keyword"></font>
00142 <font class="keyword"> </font>{
00143 <font class="keywordflow">if</font> (fileName == 0)
00144 {
00145 m_fileName.<a class="code" href="classXalanDOMString.html#a26">clear</a>();
00146 }
00147 <font class="keywordflow">else</font>
00148 {
00149 m_fileName = fileName;
00150 }
00151 }
00152
00158 <font class="keywordtype">void</font>
<a name="l00159"></a><a class="code" href="classXSLTResultTarget.html#a12">00159</a> <a class="code" href="classXSLTResultTarget.html#a11">setFileName</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; fileName)<font class="keyword"></font>
00160 <font class="keyword"> </font>{
00161 m_fileName = fileName;
00162 }
00163
00169 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00170"></a><a class="code" href="classXSLTResultTarget.html#a13">00170</a> <a class="code" href="classXSLTResultTarget.html#a13">getFileName</a>()<font class="keyword"> const</font>
00171 <font class="keyword"> </font>{
00172 <font class="keywordflow">return</font> m_fileName;
00173 }
00174
00181 <font class="keywordtype">void</font>
<a name="l00182"></a><a class="code" href="classXSLTResultTarget.html#a14">00182</a> <a class="code" href="classXSLTResultTarget.html#a14">setByteStream</a>(StreamType* byteStream)<font class="keyword"></font>
00183 <font class="keyword"> </font>{
00184 m_byteStream = byteStream;
00185 }
00186
00192 StreamType*
<a name="l00193"></a><a class="code" href="classXSLTResultTarget.html#a15">00193</a> <a class="code" href="classXSLTResultTarget.html#a15">getByteStream</a>()<font class="keyword"> const</font>
00194 <font class="keyword"> </font>{
00195 <font class="keywordflow">return</font> m_byteStream;
00196 }
00197
00203 <font class="keywordtype">void</font>
<a name="l00204"></a><a class="code" href="classXSLTResultTarget.html#a16">00204</a> <a class="code" href="classXSLTResultTarget.html#a16">setEncoding</a>(<font class="keyword">const</font> XalanDOMChar* encoding)<font class="keyword"></font>
00205 <font class="keyword"> </font>{
00206 <font class="keywordflow">if</font> (encoding == 0)
00207 {
00208 m_encoding.<a class="code" href="classXalanDOMString.html#a26">clear</a>();
00209 }
00210 <font class="keywordflow">else</font>
00211 {
00212 m_encoding = encoding;
00213 }
00214 }
00215
00221 <font class="keywordtype">void</font>
<a name="l00222"></a><a class="code" href="classXSLTResultTarget.html#a17">00222</a> <a class="code" href="classXSLTResultTarget.html#a16">setEncoding</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; encoding)<font class="keyword"></font>
00223 <font class="keyword"> </font>{
00224 m_encoding = encoding;
00225 }
00226
00232 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00233"></a><a class="code" href="classXSLTResultTarget.html#a18">00233</a> <a class="code" href="classXSLTResultTarget.html#a18">getEncoding</a>()<font class="keyword"> const</font>
00234 <font class="keyword"> </font>{
00235 <font class="keywordflow">return</font> m_encoding;
00236 }
00237
00244 <font class="keywordtype">void</font>
<a name="l00245"></a><a class="code" href="classXSLTResultTarget.html#a19">00245</a> <a class="code" href="classXSLTResultTarget.html#a19">setCharacterStream</a>(<a class="code" href="classWriter.html">Writer</a>* characterStream)<font class="keyword"></font>
00246 <font class="keyword"> </font>{
00247 m_characterStream = characterStream;
00248 }
00249
00255 <a class="code" href="classWriter.html">Writer</a>*
<a name="l00256"></a><a class="code" href="classXSLTResultTarget.html#a20">00256</a> <a class="code" href="classXSLTResultTarget.html#a20">getCharacterStream</a>()<font class="keyword"> const</font>
00257 <font class="keyword"> </font>{
00258 <font class="keywordflow">return</font> m_characterStream;
00259 }
00260
00266 FILE*
<a name="l00267"></a><a class="code" href="classXSLTResultTarget.html#a21">00267</a> <a class="code" href="classXSLTResultTarget.html#a21">getStream</a>()<font class="keyword"> const</font>
00268 <font class="keyword"> </font>{
00269 <font class="keywordflow">return</font> m_stream;
00270 }
00271
00277 <font class="keywordtype">void</font>
<a name="l00278"></a><a class="code" href="classXSLTResultTarget.html#a22">00278</a> <a class="code" href="classXSLTResultTarget.html#a22">setStream</a>(FILE* theStream)<font class="keyword"></font>
00279 <font class="keyword"> </font>{
00280 m_stream = theStream;
00281 }
00282
00288 <font class="keywordtype">void</font>
<a name="l00289"></a><a class="code" href="classXSLTResultTarget.html#a23">00289</a> <a class="code" href="classXSLTResultTarget.html#a23">setFormatterListener</a>(<a class="code" href="classFormatterListener.html">FormatterListener</a>* handler)<font class="keyword"></font>
00290 <font class="keyword"> </font>{
00291 m_formatterListener = handler;
00292 }
00293
00299 <a class="code" href="classFormatterListener.html">FormatterListener</a>*
<a name="l00300"></a><a class="code" href="classXSLTResultTarget.html#a24">00300</a> <a class="code" href="classXSLTResultTarget.html#a24">getFormatterListener</a>()<font class="keyword"> const</font>
00301 <font class="keyword"> </font>{
00302 <font class="keywordflow">return</font> m_formatterListener;
00303 }
00304
00305 <font class="keyword">private</font>:
00306
00307 <font class="preprocessor">#if defined(XALAN_DEVELOPMENT)</font>
00308 <font class="preprocessor"></font> <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>();
00309 <a class="code" href="classXSLTResultTarget.html#a0">XSLTResultTarget</a>(<font class="keyword">const</font> <a class="code" href="classXSLTResultTarget.html">XSLTResultTarget</a>&amp;);
00310 <font class="preprocessor">#endif</font>
00311 <font class="preprocessor"></font>
00312 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_fileName;
00313
00314 StreamType* m_byteStream;
00315
00316 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_encoding;
00317
00318 <a class="code" href="classWriter.html">Writer</a>* m_characterStream;
00319
00320 <a class="code" href="classFormatterListener.html">FormatterListener</a>* m_formatterListener;
00321
00322 FILE* m_stream;
00323 };
00324
00325
00326
00327 XALAN_CPP_NAMESPACE_END
00328
00329
00330
00331 <font class="preprocessor">#endif // XALAN_XSLTRESULTTARGET_HEADER_GUARD</font>
</font></pre></div><p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
<p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
<A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
<TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
<TR>
<TD WIDTH="80%" VALIGN="TOP">
<P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
Copyright &copy; 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
</TD>
</TR>
<TR>
<TD WIDTH="100%">
<P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
</TD>
</TR>
</TABLE>