blob: 641c5ab995bddf3ea4ac5ba797d3f223a093ec76 [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>XalanMatchPatternData.hpp</h1><a href="XalanMatchPatternData_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_MATCHPATTERNDATA_HEADER_GUARD)</font>
<a name="l00018"></a><a class="code" href="XalanMatchPatternData_8hpp.html#a0">00018</a> <font class="preprocessor"></font><font class="preprocessor">#define XALAN_MATCHPATTERNDATA_HEADER_GUARD</font>
00019 <font class="preprocessor"></font>
00020
00021
00022 <font class="comment">// Base include file. Must be first.</font>
00023 <font class="preprocessor">#include "<a class="code" href="XSLTDefinitions_8hpp.html">xalanc/XSLT/XSLTDefinitions.hpp</a>"</font>
00024
00025
00026
00027 <font class="preprocessor">#include &lt;cstddef&gt;</font>
00028
00029
00030
00031 <font class="preprocessor">#include "<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>"</font>
00032
00033
00034
00035 <font class="preprocessor">#include "<a class="code" href="XPath_8hpp.html">xalanc/XPath/XPath.hpp</a>"</font>
00036
00037
00038
00039 XALAN_CPP_NAMESPACE_BEGIN
00040
00041
<a name="l00042"></a><a class="code" href="XalanMatchPatternData_8hpp.html#a1">00042</a> <font class="keyword">class </font><a class="code" href="classElemTemplate.html">ElemTemplate</a>;
00043
00044
00045
<a name="l00050"></a><a class="code" href="classXalanMatchPatternData.html">00050</a> <font class="keyword">class </font>XALAN_XSLT_EXPORT <a class="code" href="classXalanMatchPatternData.html">XalanMatchPatternData</a>
00051 {
00052
00053 <font class="keyword">public</font>:
00054
<a name="l00055"></a><a class="code" href="classXalanMatchPatternData.html#s0">00055</a> <font class="keyword">typedef</font> XPath::eMatchScore eMatchScore;
00056
00057 <font class="preprocessor">#if defined(XALAN_STRICT_ANSI_HEADERS)</font>
00058 <font class="preprocessor"></font> <font class="keyword">typedef</font> std::size_t size_type;
00059 <font class="preprocessor">#else</font>
<a name="l00060"></a><a class="code" href="classXalanMatchPatternData.html#s1">00060</a> <font class="preprocessor"></font> <font class="keyword">typedef</font> size_t size_type;
00061 <font class="preprocessor">#endif</font>
00062 <font class="preprocessor"></font>
00063
<a name="l00074"></a><a class="code" href="classXalanMatchPatternData.html#a0">00074</a> <a class="code" href="classXalanMatchPatternData.html#a0">XalanMatchPatternData</a>(
00075 MemoryManagerType&amp; theManager,
00076 <font class="keyword">const</font> <a class="code" href="classElemTemplate.html">ElemTemplate</a>&amp; theTemplate,
00077 size_type thePosition,
00078 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theTargetString,
00079 <font class="keyword">const</font> <a class="code" href="classXPath.html">XPath</a>&amp; theMatchPattern,
00080 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; thePatternString,
00081 eMatchScore thePriority) :
00082 m_template(&amp;theTemplate),
00083 m_position(thePosition),
00084 m_targetString(theTargetString, theManager),
00085 m_matchPattern(&amp;theMatchPattern),
00086 m_pattern(&amp;thePatternString),
00087 m_priority(thePriority)
00088 {
00089 }
00090
<a name="l00091"></a><a class="code" href="classXalanMatchPatternData.html#a1">00091</a> <a class="code" href="classXalanMatchPatternData.html#a1">~XalanMatchPatternData</a>()<font class="keyword"></font>
00092 <font class="keyword"> </font>{
00093 }
00094
00100 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00101"></a><a class="code" href="classXalanMatchPatternData.html#a2">00101</a> <a class="code" href="classXalanMatchPatternData.html#a2">getTargetString</a>()<font class="keyword"> const</font>
00102 <font class="keyword"> </font>{
00103 <font class="keywordflow">return</font> m_targetString;
00104 }
00105
00111 <font class="keyword">const</font> <a class="code" href="classXPath.html">XPath</a>*
<a name="l00112"></a><a class="code" href="classXalanMatchPatternData.html#a3">00112</a> <a class="code" href="classXalanMatchPatternData.html#a3">getExpression</a>()<font class="keyword"> const</font>
00113 <font class="keyword"> </font>{
00114 <font class="keywordflow">return</font> m_matchPattern;
00115 }
00116
00122 size_type
<a name="l00123"></a><a class="code" href="classXalanMatchPatternData.html#a4">00123</a> <a class="code" href="classXalanMatchPatternData.html#a4">getPosition</a>()<font class="keyword"> const</font>
00124 <font class="keyword"> </font>{
00125 <font class="keywordflow">return</font> m_position;
00126 }
00127
00133 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>*
<a name="l00134"></a><a class="code" href="classXalanMatchPatternData.html#a5">00134</a> <a class="code" href="classXalanMatchPatternData.html#a5">getPattern</a>()<font class="keyword"> const</font>
00135 <font class="keyword"> </font>{
00136 <font class="keywordflow">return</font> m_pattern;
00137 }
00138
00144 <font class="keyword">const</font> <a class="code" href="classElemTemplate.html">ElemTemplate</a>*
<a name="l00145"></a><a class="code" href="classXalanMatchPatternData.html#a6">00145</a> <a class="code" href="classXalanMatchPatternData.html#a6">getTemplate</a>()<font class="keyword"> const</font>
00146 <font class="keyword"> </font>{
00147 <font class="keywordflow">return</font> m_template;
00148 }
00149
00150 eMatchScore
<a name="l00151"></a><a class="code" href="classXalanMatchPatternData.html#a7">00151</a> <a class="code" href="classXalanMatchPatternData.html#a7">getDefaultPriority</a>()<font class="keyword"> const</font>
00152 <font class="keyword"> </font>{
00153 <font class="keywordflow">return</font> m_priority;
00154 }
00155
00156 <font class="keywordtype">double</font>
00157 <a class="code" href="classXalanMatchPatternData.html#a8">getPriorityOrDefault</a>() <font class="keyword">const</font>;
00158
00159 <font class="keyword">private</font>:
00160 <font class="comment">// not implemented</font>
00161 <a class="code" href="classXalanMatchPatternData.html#a0">XalanMatchPatternData</a>();
00162 <a class="code" href="classXalanMatchPatternData.html#a0">XalanMatchPatternData</a>( <font class="keyword">const</font> <a class="code" href="classXalanMatchPatternData.html">XalanMatchPatternData</a>&amp;);
00163
00164 <font class="keyword">const</font> <a class="code" href="classElemTemplate.html">ElemTemplate</a>* m_template;
00165
00166 size_type m_position;
00167
00168 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_targetString;
00169
00170 <font class="keyword">const</font> <a class="code" href="classXPath.html">XPath</a>* m_matchPattern;
00171
00172 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>* m_pattern;
00173
00174 eMatchScore m_priority;
00175 };
00176
00177
00178
00179 XALAN_CPP_NAMESPACE_END
00180
00181
00182
00183 <font class="preprocessor">#endif // XALAN_MATCHPATTERNDATA_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>