blob: 31a9105e9a61954c65182fa010ecb8c98e0b5f63 [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>XPathConstructionContext.hpp</h1><a href="XPathConstructionContext_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 <font class="preprocessor">#if !defined(XPATHCONSTRUCTIONCONTEXT_HEADER_GUARD_1357924680)</font>
<a name="l00017"></a><a class="code" href="XPathConstructionContext_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define XPATHCONSTRUCTIONCONTEXT_HEADER_GUARD_1357924680</font>
00018 <font class="preprocessor"></font>
00019
00020
00021 <font class="comment">// Base include file. Must be first.</font>
00022 <font class="preprocessor">#include &lt;<a class="code" href="XPathDefinitions_8hpp.html">xalanc/XPath/XPathDefinitions.hpp</a>&gt;</font>
00023
00024
00025
00026 <font class="preprocessor">#include &lt;<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>&gt;</font>
00027
00028
00029
00030 <a class="code" href="XSLTProcessor_8hpp.html#a1">XALAN_DECLARE_XERCES_CLASS</a>(Locator)
00031
00032
00033
00034 XALAN_CPP_NAMESPACE_BEGIN
00035
00036
00037
00038 <font class="keyword">typedef</font> XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType;
00039 <a class="code" href="XSLTInputSource_8hpp.html#a3">XALAN_USING_XERCES</a>(Locator)
00040
00041
00042
00043 <font class="keyword">class </font><a class="code" href="classXalanNode.html">XalanNode</a>;
00044
00045
00046
00047 <font class="comment">//</font>
00051 <font class="comment">// An abstract class which provides support for constructing the internal</font>
00052 <font class="comment">// representation of a stylesheet.</font>
00053 <font class="comment">//</font>
<a name="l00054"></a><a class="code" href="classXPathConstructionContext.html">00054</a> <font class="keyword">class </font>XALAN_XPATH_EXPORT <a class="code" href="classXPathConstructionContext.html">XPathConstructionContext</a>
00055 {
00056 <font class="keyword">public</font>:
00057
00058 <a class="code" href="classXPathConstructionContext.html#a0">XPathConstructionContext</a>(MemoryManagerType&amp; theManager);
00059
00060 <font class="keyword">virtual</font>
00061 <a class="code" href="classXPathConstructionContext.html#a1">~XPathConstructionContext</a>();
00062
00063
00068 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00069 <a class="code" href="classXPathConstructionContext.html#a2">reset</a>() = 0;
00070
00080 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
00081 <a class="code" href="classXPathConstructionContext.html#a3">getPooledString</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theString) = 0;
00082
00093 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
00094 <a class="code" href="classXPathConstructionContext.html#a3">getPooledString</a>(
00095 <font class="keyword">const</font> XalanDOMChar* theString,
00096 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0;
00097
00103 <font class="keyword">virtual</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
00104 <a class="code" href="classXPathConstructionContext.html#a5">getCachedString</a>() = 0;
00105
00113 <font class="keyword">virtual</font> <font class="keywordtype">bool</font>
00114 <a class="code" href="classXPathConstructionContext.html#a6">releaseCachedString</a>(<a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theString) = 0;
00115
<a name="l00116"></a><a class="code" href="classXPathConstructionContext_1_1GetAndReleaseCachedString.html">00116</a> <font class="keyword">class </font><a class="code" href="classXPathExecutionContext_1_1GetAndReleaseCachedString.html">GetAndReleaseCachedString</a>
00117 {
00118 <font class="keyword">public</font>:
00119
<a name="l00120"></a><a class="code" href="classXPathConstructionContext_1_1GetAndReleaseCachedString.html#a0">00120</a> GetAndReleaseCachedString(<a class="code" href="classXPathConstructionContext.html">XPathConstructionContext</a>&amp; theConstructionContext) :
00121 m_constructionContext(&amp;theConstructionContext),
00122 m_string(&amp;theConstructionContext.getCachedString())
00123 {
00124 }
00125
00126 <font class="comment">// Note non-const copy semantics...</font>
<a name="l00127"></a><a class="code" href="classXPathConstructionContext_1_1GetAndReleaseCachedString.html#a1">00127</a> GetAndReleaseCachedString(<a class="code" href="classXPathExecutionContext_1_1GetAndReleaseCachedString.html">GetAndReleaseCachedString</a>&amp; theSource) :
00128 m_constructionContext(theSource.m_constructionContext),
00129 m_string(theSource.m_string)
00130 {
00131 theSource.m_string = 0;
00132 }
00133
<a name="l00134"></a><a class="code" href="classXPathConstructionContext_1_1GetAndReleaseCachedString.html#a2">00134</a> ~GetAndReleaseCachedString()<font class="keyword"></font>
00135 <font class="keyword"> </font>{
00136 <font class="keywordflow">if</font> (m_string != 0)
00137 {
00138 m_constructionContext-&gt;releaseCachedString(*m_string);
00139 }
00140 }
00141
00142 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00143"></a><a class="code" href="classXPathConstructionContext_1_1GetAndReleaseCachedString.html#a3">00143</a> get()<font class="keyword"> const</font>
00144 <font class="keyword"> </font>{
00145 assert(m_string != 0);
00146
00147 <font class="keywordflow">return</font> *m_string;
00148 }
00149
00150 <a class="code" href="classXPathConstructionContext.html">XPathConstructionContext</a>&amp;
<a name="l00151"></a><a class="code" href="classXPathConstructionContext_1_1GetAndReleaseCachedString.html#a4">00151</a> getConstructionContext()<font class="keyword"> const</font>
00152 <font class="keyword"> </font>{
00153 <font class="keywordflow">return</font> *m_constructionContext;
00154 }
00155
00156
00157 <font class="keyword">private</font>:
00158
00159 <font class="comment">// Not implemented...</font>
00160 <a class="code" href="classXPathExecutionContext_1_1GetAndReleaseCachedString.html">GetAndReleaseCachedString</a>&amp;
00161 operator=(<font class="keyword">const</font> <a class="code" href="classXPathExecutionContext_1_1GetAndReleaseCachedString.html">GetAndReleaseCachedString</a>&amp;);
00162
00163
00164 <font class="comment">// Data members...</font>
00165 <a class="code" href="classXPathConstructionContext.html">XPathConstructionContext</a>* m_constructionContext;
00166
00167 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>* m_string;
00168 };
00169
<a name="l00170"></a><a class="code" href="classXPathConstructionContext.html#s0">00170</a> <font class="keyword">typedef</font> <a class="code" href="classXPathExecutionContext_1_1GetAndReleaseCachedString.html">GetAndReleaseCachedString</a> <a class="code" href="classXPathExecutionContext_1_1GetAndReleaseCachedString.html">GetCachedString</a>;
00171
00172 MemoryManagerType&amp;
<a name="l00173"></a><a class="code" href="classXPathConstructionContext.html#a7">00173</a> <a class="code" href="classXPathConstructionContext.html#a7">getMemoryManager</a>()<font class="keyword"></font>
00174 <font class="keyword"> </font>{
00175 <font class="keywordflow">return</font> m_memoryManager;
00176 }
00177
00178 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00179 <a class="code" href="classXPathConstructionContext.html#a8">error</a>(
00180 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; msg,
00181 <font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* sourceNode,
00182 <font class="keyword">const</font> Locator* locator) <font class="keyword">const</font> = 0;
00183
00184 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00185 <a class="code" href="classXPathConstructionContext.html#a9">warn</a>(
00186 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; msg,
00187 <font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* sourceNode,
00188 <font class="keyword">const</font> Locator* locator) <font class="keyword">const</font> = 0;
00189
<a name="l00190"></a><a class="code" href="classXPathConstructionContext.html#m0">00190</a> MemoryManagerType&amp; m_memoryManager;
00191 };
00192
00193
00194
00195 XALAN_CPP_NAMESPACE_END
00196
00197
00198
00199 <font class="preprocessor">#endif // XPATHCONSTRUCTIONCONTEXT_HEADER_GUARD_1357924680</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>