blob: 689f0c84dc8fc29149ed4f1cfb09adae864fcad0 [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>XalanEXSLTCommonImpl.hpp</h1><a href="XalanEXSLTCommonImpl_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(EXSLT_COMMONIMPL_HEADER_GUARD_1357924680)</font>
<a name="l00017"></a><a class="code" href="XalanEXSLTCommonImpl_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define EXSLT_COMMONIMPL_HEADER_GUARD_1357924680</font>
00018 <font class="preprocessor"></font>
00019
00020
00021 <font class="preprocessor">#include "<a class="code" href="XalanEXSLTDefinitions_8hpp.html">XalanEXSLTDefinitions.hpp</a>"</font>
00022
00023
00024
00025 <font class="preprocessor">#include &lt;<a class="code" href="XalanMessageLoader_8hpp.html">xalanc/PlatformSupport/XalanMessageLoader.hpp</a>&gt;</font>
00026
00027
00028
00029 <font class="preprocessor">#include &lt;<a class="code" href="Function_8hpp.html">xalanc/XPath/Function.hpp</a>&gt;</font>
00030
00031
00032
00033 <font class="preprocessor">#include &lt;<a class="code" href="FunctionNodeSet_8hpp.html">xalanc/XalanExtensions/FunctionNodeSet.hpp</a>&gt;</font>
00034
00035
00036
00037 XALAN_CPP_NAMESPACE_BEGIN
00038
00039
00040
<a name="l00041"></a><a class="code" href="classXalanEXSLTFunctionNodeSet.html">00041</a> <font class="keyword">class </font>XALAN_EXSLT_EXPORT <a class="code" href="classXalanEXSLTFunctionNodeSet.html">XalanEXSLTFunctionNodeSet</a> : <font class="keyword">public</font> <a class="code" href="classFunctionNodeSet.html">FunctionNodeSet</a>
00042 {
00043 <font class="keyword">public</font>:
00044
<a name="l00045"></a><a class="code" href="classXalanEXSLTFunctionNodeSet.html#a0">00045</a> <a class="code" href="classXalanEXSLTFunctionNodeSet.html#a0">XalanEXSLTFunctionNodeSet</a>() :
00046 <a class="code" href="classFunctionNodeSet.html">FunctionNodeSet</a>(true)
00047 {
00048 }
00049
00050 <font class="keyword">virtual</font>
<a name="l00051"></a><a class="code" href="classXalanEXSLTFunctionNodeSet.html#a1">00051</a> <a class="code" href="classXalanEXSLTFunctionNodeSet.html#a1">~XalanEXSLTFunctionNodeSet</a>()<font class="keyword"></font>
00052 <font class="keyword"> </font>{
00053 }
00054
00055 <font class="preprocessor">#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)</font>
00056 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="classFunction.html">Function</a>*
00057 <font class="preprocessor">#else</font>
00058 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="classXalanEXSLTFunctionNodeSet.html">XalanEXSLTFunctionNodeSet</a>*
00059 <font class="preprocessor">#endif</font>
<a name="l00060"></a><a class="code" href="classXalanEXSLTFunctionNodeSet.html#a2">00060</a> <font class="preprocessor"></font> <a class="code" href="classFunctionNodeSet.html#a3">clone</a>(MemoryManagerType&amp; theManager)<font class="keyword"> const</font>
00061 <font class="keyword"> </font>{
00062 <font class="keywordflow">return</font> <a class="code" href="XalanMemoryManagement_8hpp.html#a19">XalanCopyConstruct</a>(theManager, *<font class="keyword">this</font>);
00063 }
00064
00065 <font class="keyword">protected</font>:
00066
00067 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00068"></a><a class="code" href="classXalanEXSLTFunctionNodeSet.html#b0">00068</a> <a class="code" href="classFunctionNodeSet.html#b0">getError</a>(<a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theBuffer)<font class="keyword"> const</font>
00069 <font class="keyword"> </font>{
00070 XalanMessageLoader::getMessage(
00071 theBuffer,
00072 XalanMessages::EXSLTFunctionAcceptsOneArgument_1Param,
00073 <font class="stringliteral">"node-set()"</font>);
00074
00075 <font class="keywordflow">return</font> theBuffer;
00076 }
00077
00078
00079 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00080"></a><a class="code" href="classXalanEXSLTFunctionNodeSet.html#b1">00080</a> <a class="code" href="classFunctionNodeSet.html#b1">getInvalidArgumentTypeError</a>(<a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theResult)<font class="keyword"> const </font>
00081 <font class="keyword"> </font>{
00082 XalanMessageLoader::getMessage(
00083 theResult,
00084 XalanMessages::InvalidArgumentType_1Param,
00085 <font class="stringliteral">"node-set()"</font>);
00086
00087 <font class="keywordflow">return</font> theResult;
00088 }
00089
00090 <font class="keyword">private</font>:
00091
00092 <font class="comment">// Not implemented...</font>
00093 <a class="code" href="classXalanEXSLTFunctionNodeSet.html">XalanEXSLTFunctionNodeSet</a>&amp;
00094 operator=(<font class="keyword">const</font> <a class="code" href="classXalanEXSLTFunctionNodeSet.html">XalanEXSLTFunctionNodeSet</a>&amp;);
00095
00096 <font class="keywordtype">bool</font>
00097 <a class="code" href="ElemAttributeSet_8hpp.html#a1">operator==</a>(<font class="keyword">const</font> <a class="code" href="classXalanEXSLTFunctionNodeSet.html">XalanEXSLTFunctionNodeSet</a>&amp;) <font class="keyword">const</font>;
00098 };
00099
00100
00101
<a name="l00102"></a><a class="code" href="classXalanEXSLTFunctionObjectType.html">00102</a> <font class="keyword">class </font>XALAN_EXSLT_EXPORT <a class="code" href="classXalanEXSLTFunctionObjectType.html">XalanEXSLTFunctionObjectType</a> : <font class="keyword">public</font> <a class="code" href="classFunction.html">Function</a>
00103 {
00104 <font class="keyword">public</font>:
00105
<a name="l00106"></a><a class="code" href="classXalanEXSLTFunctionObjectType.html#s0">00106</a> <font class="keyword">typedef</font> <a class="code" href="classFunction.html">Function</a> ParentType;
00107
<a name="l00108"></a><a class="code" href="classXalanEXSLTFunctionObjectType.html#a0">00108</a> <a class="code" href="classXalanEXSLTFunctionObjectType.html#a0">XalanEXSLTFunctionObjectType</a>(MemoryManagerType&amp; theManager) :
00109 <a class="code" href="classFunction.html">Function</a>(),
00110 m_boolean(s_booleanString, theManager),
00111 m_external(s_externalString, theManager),
00112 m_nodeSet(s_nodeSetString, theManager),
00113 m_number(s_numberString, theManager),
00114 m_rtf(s_rtfString, theManager),
00115 m_string(s_stringString, theManager)
00116 {
00117 }
00118
00119 <font class="comment">// A dummy constructor for use internally. Do not use this one!!!!</font>
<a name="l00120"></a><a class="code" href="classXalanEXSLTFunctionObjectType.html#a1">00120</a> <a class="code" href="classXalanEXSLTFunctionObjectType.html#a0">XalanEXSLTFunctionObjectType</a>(MemoryManagerType&amp; theManager, <font class="keywordtype">int</font> <font class="comment">/* theDummy */</font>) :
00121 <a class="code" href="classFunction.html">Function</a>(),
00122 m_boolean(theManager),
00123 m_external(theManager),
00124 m_nodeSet(theManager),
00125 m_number(theManager),
00126 m_rtf(theManager),
00127 m_string(theManager)
00128 {
00129 }
00130
00131 <font class="keyword">virtual</font>
<a name="l00132"></a><a class="code" href="classXalanEXSLTFunctionObjectType.html#a2">00132</a> <a class="code" href="classXalanEXSLTFunctionObjectType.html#a2">~XalanEXSLTFunctionObjectType</a>()<font class="keyword"></font>
00133 <font class="keyword"> </font>{
00134 }
00135
00136 <font class="comment">// These methods are inherited from Function ...</font>
00137
00138 <font class="keyword">virtual</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00139 <a class="code" href="classFunction.html#a2">execute</a>(
00140 <a class="code" href="classXPathExecutionContext.html">XPathExecutionContext</a>&amp; executionContext,
00141 <a class="code" href="classXalanNode.html">XalanNode</a>* context,
00142 <font class="keyword">const</font> XObjectArgVectorType&amp; args,
00143 <font class="keyword">const</font> LocatorType* locator) <font class="keyword">const</font>;
00144
00145 <font class="preprocessor">#if !defined(XALAN_NO_USING_DECLARATION)</font>
00146 <font class="preprocessor"></font> <font class="keyword">using</font> ParentType::execute;
00147 <font class="preprocessor">#endif</font>
00148 <font class="preprocessor"></font>
00149 <font class="preprocessor">#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)</font>
00150 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="classFunction.html">Function</a>*
00151 <font class="preprocessor">#else</font>
00152 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="classXalanEXSLTFunctionObjectType.html">XalanEXSLTFunctionObjectType</a>*
00153 <font class="preprocessor">#endif</font>
<a name="l00154"></a><a class="code" href="classXalanEXSLTFunctionObjectType.html#a4">00154</a> <font class="preprocessor"></font> <a class="code" href="classFunction.html#a7">clone</a>(MemoryManagerType&amp; theManager)<font class="keyword"> const</font>
00155 <font class="keyword"> </font>{
00156 <font class="keyword">typedef</font> <a class="code" href="classXalanEXSLTFunctionObjectType.html">XalanEXSLTFunctionObjectType</a> Type;
00157
00158 XalanMemMgrAutoPtr&lt;Type, false&gt; theGuard( theManager , (Type*)theManager.allocate(<font class="keyword">sizeof</font>(Type)));
00159
00160 Type* theResult = theGuard.get();
00161
00162 <font class="keyword">new</font> (theResult) Type(theManager);
00163
00164 theGuard.release();
00165
00166 <font class="keywordflow">return</font> theResult;
00167 }
00168
00169 <font class="keyword">protected</font>:
00170
00171
00172
00173 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
00174 <a class="code" href="classFunction.html#b0">getError</a>(<a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theResult) <font class="keyword">const</font>;
00175
00176 <font class="keyword">private</font>:
00177
00178 <font class="comment">// Not implemented...</font>
00179 <a class="code" href="classXalanEXSLTFunctionObjectType.html#a0">XalanEXSLTFunctionObjectType</a>(<font class="keyword">const</font> <a class="code" href="classXalanEXSLTFunctionObjectType.html">XalanEXSLTFunctionObjectType</a>&amp;);
00180
00181 <a class="code" href="classXalanEXSLTFunctionObjectType.html">XalanEXSLTFunctionObjectType</a>&amp;
00182 operator=(<font class="keyword">const</font> <a class="code" href="classXalanEXSLTFunctionObjectType.html">XalanEXSLTFunctionObjectType</a>&amp;);
00183
00184 <font class="keywordtype">bool</font>
00185 <a class="code" href="ElemAttributeSet_8hpp.html#a1">operator==</a>(<font class="keyword">const</font> <a class="code" href="classXalanEXSLTFunctionObjectType.html">XalanEXSLTFunctionObjectType</a>&amp;) <font class="keyword">const</font>;
00186
00187
00188 <font class="comment">// Data members...</font>
00189 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_boolean;
00190 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_external;
00191 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_nodeSet;
00192 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_number;
00193 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_rtf;
00194 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_string;
00195
00196 <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_booleanString[];
00197 <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_externalString[];
00198 <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_nodeSetString[];
00199 <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_numberString[];
00200 <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_rtfString[];
00201 <font class="keyword">static</font> <font class="keyword">const</font> XalanDOMChar s_stringString[];
00202 };
00203
00204
00205
00206 XALAN_CPP_NAMESPACE_END
00207
00208
00209
00210 <font class="preprocessor">#endif // EXSLT_COMMONIMPL_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>