| <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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> |
| <hr><h1>XercesToXalanNodeMap.hpp</h1><a href="XercesToXalanNodeMap_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(XERCESTOXALANNODEMAP_HEADER_GUARD_1357924680)</font> |
| <a name="l00017"></a><a class="code" href="XercesToXalanNodeMap_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define XERCESTOXALANNODEMAP_HEADER_GUARD_1357924680</font> |
| 00018 <font class="preprocessor"></font> |
| 00019 |
| 00020 |
| 00021 <font class="preprocessor">#include <<a class="code" href="XercesParserLiaisonDefinitions_8hpp.html">xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp</a>></font> |
| 00022 |
| 00023 |
| 00024 |
| 00025 <font class="preprocessor">#include <map></font> |
| 00026 |
| 00027 |
| 00028 |
| 00029 <font class="preprocessor">#if XERCES_VERSION_MAJOR >= 2</font> |
| 00030 <font class="preprocessor"></font><font class="preprocessor">#include <xercesc/dom/deprecated/DOM_Node.hpp></font> |
| 00031 <font class="preprocessor">#else</font> |
| 00032 <font class="preprocessor"></font><font class="preprocessor">#include <xercesc/dom/DOM_Node.hpp></font> |
| 00033 <font class="preprocessor">#endif</font> |
| 00034 <font class="preprocessor"></font> |
| 00035 |
| 00036 |
| 00037 <font class="preprocessor">#include <<a class="code" href="XercesDOM__NodeHack_8hpp.html">xalanc/XercesParserLiaison/Deprecated/XercesDOM_NodeHack.hpp</a>></font> |
| 00038 |
| 00039 |
| 00040 |
| 00041 <a class="code" href="XSLTProcessor_8hpp.html#a1">XALAN_DECLARE_XERCES_CLASS</a>(NodeImpl) |
| 00042 |
| 00043 |
| 00044 |
| 00045 XALAN_CPP_NAMESPACE_BEGIN |
| 00046 |
| 00047 |
| 00048 |
| 00049 <font class="keyword">class </font><a class="code" href="classXalanNode.html">XalanNode</a>; |
| 00050 |
| 00051 |
| <a name="l00057"></a><a class="code" href="classXercesToXalanNodeMap.html">00057</a> <font class="keyword">class </font>XALAN_XERCESPARSERLIAISON_EXPORT <a class="code" href="classXercesToXalanNodeMap.html">XercesToXalanNodeMap</a> |
| 00058 { |
| 00059 <font class="keyword">public</font>: |
| 00060 |
| <a name="l00061"></a><a class="code" href="classXercesToXalanNodeMap.html#s0">00061</a> <font class="keyword">typedef</font> XERCES_CPP_NAMESPACE_QUALIFIER DOM_Node DOM_NodeType; |
| <a name="l00062"></a><a class="code" href="classXercesToXalanNodeMap.html#s1">00062</a> <font class="keyword">typedef</font> XERCES_CPP_NAMESPACE_QUALIFIER NodeImpl NodeImplType; |
| 00063 |
| 00064 <font class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</font> |
| 00065 <font class="preprocessor"></font> <font class="keyword">typedef</font> map<XalanNode*, NodeImplType*, less<XalanNode*> > XalanNodeMapType; |
| 00066 |
| 00067 <font class="keyword">typedef</font> map<NodeImplType*, XalanNode*, less<NodeImplType*> > <a class="code" href="classXalanMap.html">XercesNodeMapType</a>; |
| 00068 <font class="preprocessor">#else</font> |
| <a name="l00069"></a><a class="code" href="classXercesToXalanNodeMap.html#s2">00069</a> <font class="preprocessor"></font> <font class="keyword">typedef</font> std::map<XalanNode*, NodeImplType*> XalanNodeMapType; |
| 00070 |
| <a name="l00071"></a><a class="code" href="classXercesToXalanNodeMap.html#s3">00071</a> <font class="keyword">typedef</font> std::map<NodeImplType*, XalanNode*> <a class="code" href="classXalanMap.html">XercesNodeMapType</a>; |
| 00072 <font class="preprocessor">#endif</font> |
| 00073 <font class="preprocessor"></font> |
| 00074 <a class="code" href="classXercesToXalanNodeMap.html#a0">XercesToXalanNodeMap</a>(); |
| 00075 |
| 00076 <a class="code" href="classXercesToXalanNodeMap.html#a1">~XercesToXalanNodeMap</a>(); |
| 00077 |
| 00078 <font class="keywordtype">void</font> |
| 00079 <a class="code" href="classXercesToXalanNodeMap.html#a2">addAssociation</a>( |
| 00080 <font class="keyword">const</font> DOM_NodeType& theXercesNode, |
| 00081 <a class="code" href="classXalanNode.html">XalanNode</a>* theXalanNode); |
| 00082 |
| 00083 <font class="keywordtype">void</font> |
| 00084 <a class="code" href="classXercesToXalanNodeMap.html#a3">clear</a>(); |
| 00085 |
| 00086 <a class="code" href="classXalanNode.html">XalanNode</a>* |
| <a name="l00087"></a><a class="code" href="classXercesToXalanNodeMap.html#a4">00087</a> <a class="code" href="classXercesToXalanNodeMap.html#a4">getNode</a>(<font class="keyword">const</font> DOM_NodeType& theXercesNode)<font class="keyword"> const</font> |
| 00088 <font class="keyword"> </font>{ |
| 00089 <font class="keywordflow">return</font> <a class="code" href="classXercesToXalanNodeMap.html#a4">getNode</a>(XercesDOM_NodeHack::getImpl(theXercesNode)); |
| 00090 } |
| 00091 |
| 00092 <a class="code" href="classXalanNode.html">XalanNode</a>* |
| <a name="l00093"></a><a class="code" href="classXercesToXalanNodeMap.html#a5">00093</a> <a class="code" href="classXercesToXalanNodeMap.html#a4">getNode</a>(NodeImplType* theXercesNodeImpl)<font class="keyword"> const</font> |
| 00094 <font class="keyword"> </font>{ |
| 00095 <font class="keyword">const</font> XercesNodeMapType::const_iterator i = |
| 00096 m_xercesMap.<a class="code" href="classXalanMap.html#a11">find</a>(theXercesNodeImpl); |
| 00097 |
| 00098 <font class="keywordflow">if</font> (i == m_xercesMap.<a class="code" href="classXalanMap.html#a9">end</a>()) |
| 00099 { |
| 00100 <font class="keywordflow">return</font> 0; |
| 00101 } |
| 00102 <font class="keywordflow">else</font> |
| 00103 { |
| 00104 <font class="keywordflow">return</font> (*i).second; |
| 00105 } |
| 00106 } |
| 00107 |
| 00108 DOM_NodeType |
| <a name="l00109"></a><a class="code" href="classXercesToXalanNodeMap.html#a6">00109</a> <a class="code" href="classXercesToXalanNodeMap.html#a4">getNode</a>(<font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* theXalanNode)<font class="keyword"> const</font> |
| 00110 <font class="keyword"> </font>{ |
| 00111 <font class="keywordflow">return</font> XercesDOM_NodeHack(<a class="code" href="classXercesToXalanNodeMap.html#a7">getNodeImpl</a>(theXalanNode)); |
| 00112 } |
| 00113 |
| 00114 NodeImplType* |
| 00115 <a class="code" href="classXercesToXalanNodeMap.html#a7">getNodeImpl</a>(<font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* theXalanNode) <font class="keyword">const</font>; |
| 00116 |
| <a name="l00117"></a><a class="code" href="classXercesToXalanNodeMap_1_1NameMapEqualsFunctor.html">00117</a> <font class="keyword">class </font>NameMapEqualsFunctor |
| 00118 { |
| 00119 <font class="keyword">public</font>: |
| 00120 |
| <a name="l00121"></a><a class="code" href="classXercesToXalanNodeMap_1_1NameMapEqualsFunctor.html#a0">00121</a> <a class="code" href="classXercesToXalanNodeMap_1_1NameMapEqualsFunctor.html#a0">NameMapEqualsFunctor</a>(<font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* theXalanNode) : |
| 00122 m_value(theXalanNode) |
| 00123 { |
| 00124 } |
| 00125 |
| 00126 <font class="keywordtype">bool</font> |
| <a name="l00127"></a><a class="code" href="classXercesToXalanNodeMap_1_1NameMapEqualsFunctor.html#a1">00127</a> <a class="code" href="classXercesToXalanNodeMap_1_1NameMapEqualsFunctor.html#a1">operator()</a>(<font class="keyword">const</font> XercesNodeMapType::value_type& thePair)<font class="keyword"> const</font> |
| 00128 <font class="keyword"> </font>{ |
| 00129 <font class="keywordflow">return</font> m_value == thePair.second; |
| 00130 } |
| 00131 |
| 00132 <font class="keyword">private</font>: |
| 00133 |
| 00134 <font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* m_value; |
| 00135 }; |
| 00136 |
| 00137 NodeImplType* |
| <a name="l00138"></a><a class="code" href="classXercesToXalanNodeMap.html#a8">00138</a> <a class="code" href="classXercesToXalanNodeMap.html#a7">getNodeImpl</a>(<font class="keyword">const</font> DOM_NodeType& theXercesNode)<font class="keyword"> const</font> |
| 00139 <font class="keyword"> </font>{ |
| 00140 <font class="keywordflow">return</font> <a class="code" href="classXercesDOM__NodeHack.html#a2">XercesDOM_NodeHack::getImpl</a>(theXercesNode); |
| 00141 } |
| 00142 |
| 00143 <font class="keyword">private</font>: |
| 00144 |
| 00145 XalanNodeMapType m_xalanMap; |
| 00146 |
| 00147 <a class="code" href="classXalanMap.html">XercesNodeMapType</a> m_xercesMap; |
| 00148 }; |
| 00149 |
| 00150 |
| 00151 |
| 00152 XALAN_CPP_NAMESPACE_END |
| 00153 |
| 00154 |
| 00155 |
| 00156 <font class="preprocessor">#endif // !defined(XERCESTOXALANNODEMAP_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 © 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>
|