| <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>NameSpace.hpp</h1><a href="NameSpace_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(NAMESPACE_HEADER_GUARD_1357924680)</font> |
| <a name="l00017"></a><a class="code" href="NameSpace_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define NAMESPACE_HEADER_GUARD_1357924680</font> |
| 00018 <font class="preprocessor"></font> |
| 00019 |
| 00020 |
| 00021 <font class="comment">// Base header file. Must be first.</font> |
| 00022 <font class="preprocessor">#include <<a class="code" href="XPathDefinitions_8hpp.html">xalanc/XPath/XPathDefinitions.hpp</a>></font> |
| 00023 |
| 00024 <font class="preprocessor">#include <<a class="code" href="XalanMemMgrAutoPtr_8hpp.html">xalanc/Include/XalanMemMgrAutoPtr.hpp</a>></font> |
| 00025 |
| 00026 <font class="preprocessor">#include <<a class="code" href="DOMStringHelper_8hpp.html">xalanc/PlatformSupport/DOMStringHelper.hpp</a>></font> |
| 00027 |
| 00028 |
| 00029 |
| 00030 XALAN_CPP_NAMESPACE_BEGIN |
| 00031 |
| 00032 |
| 00033 |
| <a name="l00038"></a><a class="code" href="classNameSpace.html">00038</a> <font class="keyword">class </font>XALAN_XPATH_EXPORT <a class="code" href="classNameSpace.html">NameSpace</a> |
| 00039 { |
| 00040 <font class="keyword">public</font>: |
| 00041 |
| 00042 <font class="keyword">explicit</font> |
| <a name="l00043"></a><a class="code" href="classNameSpace.html#a0">00043</a> <a class="code" href="classNameSpace.html#a0">NameSpace</a>(MemoryManagerType& theManager) : |
| 00044 m_prefix(theManager), |
| 00045 m_uri(theManager) |
| 00046 { |
| 00047 } |
| 00048 |
| <a name="l00056"></a><a class="code" href="classNameSpace.html#a1">00056</a> <a class="code" href="classNameSpace.html#a0">NameSpace</a>( |
| 00057 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& prefix, |
| 00058 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& uri, |
| 00059 MemoryManagerType& theManager) : |
| 00060 m_prefix(prefix, theManager), |
| 00061 m_uri(uri, theManager) |
| 00062 { |
| 00063 } |
| 00064 |
| 00065 <font class="keyword">static</font> <a class="code" href="classNameSpace.html">NameSpace</a>* |
| <a name="l00066"></a><a class="code" href="classNameSpace.html#d0">00066</a> <a class="code" href="classNameSpace.html#d0">create</a>( |
| 00067 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& prefix, |
| 00068 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& uri, |
| 00069 MemoryManagerType& theManager)<font class="keyword"></font> |
| 00070 <font class="keyword"> </font>{ |
| 00071 <font class="keyword">typedef</font> <a class="code" href="classNameSpace.html">NameSpace</a> <a class="code" href="classXalanDeque.html">ThisType</a>; |
| 00072 |
| 00073 XalanMemMgrAutoPtr<ThisType, false> theGuard( theManager , (<a class="code" href="classXalanDeque.html">ThisType</a>*)theManager.allocate(<font class="keyword">sizeof</font>(<a class="code" href="classXalanDeque.html">ThisType</a>))); |
| 00074 |
| 00075 <a class="code" href="classXalanDeque.html">ThisType</a>* theResult = theGuard.get(); |
| 00076 |
| 00077 <font class="keyword">new</font> (theResult) ThisType(prefix, uri, theManager); |
| 00078 |
| 00079 theGuard.release(); |
| 00080 |
| 00081 <font class="keywordflow">return</font> theResult; |
| 00082 } |
| <a name="l00083"></a><a class="code" href="classNameSpace.html#a2">00083</a> <a class="code" href="classNameSpace.html#a0">NameSpace</a>( <font class="keyword">const</font> <a class="code" href="classNameSpace.html">NameSpace</a>& other, |
| 00084 MemoryManagerType& theManager) : |
| 00085 m_prefix(other.m_prefix, theManager), |
| 00086 m_uri(other.m_uri, theManager) |
| 00087 { |
| 00088 } |
| 00089 |
| <a name="l00090"></a><a class="code" href="classNameSpace.html#a3">00090</a> <a class="code" href="classNameSpace.html#a3">~NameSpace</a>()<font class="keyword"></font> |
| 00091 <font class="keyword"> </font>{ |
| 00092 } |
| 00093 |
| 00099 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& |
| <a name="l00100"></a><a class="code" href="classNameSpace.html#a4">00100</a> <a class="code" href="classNameSpace.html#a4">getPrefix</a>()<font class="keyword"> const</font> |
| 00101 <font class="keyword"> </font>{ |
| 00102 <font class="keywordflow">return</font> m_prefix; |
| 00103 } |
| 00104 |
| 00110 <font class="keywordtype">void</font> |
| <a name="l00111"></a><a class="code" href="classNameSpace.html#a5">00111</a> <a class="code" href="classNameSpace.html#a5">setPrefix</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& prefix)<font class="keyword"></font> |
| 00112 <font class="keyword"> </font>{ |
| 00113 m_prefix = prefix; |
| 00114 } |
| 00115 |
| 00121 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& |
| <a name="l00122"></a><a class="code" href="classNameSpace.html#a6">00122</a> <a class="code" href="classNameSpace.html#a6">getURI</a>()<font class="keyword"> const</font> |
| 00123 <font class="keyword"> </font>{ |
| 00124 <font class="keywordflow">return</font> m_uri; |
| 00125 } |
| 00126 |
| 00132 <font class="keywordtype">void</font> |
| <a name="l00133"></a><a class="code" href="classNameSpace.html#a7">00133</a> <a class="code" href="classNameSpace.html#a7">setURI</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& uri)<font class="keyword"></font> |
| 00134 <font class="keyword"> </font>{ |
| 00135 m_uri = uri; |
| 00136 } |
| 00137 |
| 00143 <font class="keywordtype">void</font> |
| <a name="l00144"></a><a class="code" href="classNameSpace.html#a8">00144</a> <a class="code" href="classNameSpace.html#a7">setURI</a>(<font class="keyword">const</font> XalanDOMChar* uri)<font class="keyword"></font> |
| 00145 <font class="keyword"> </font>{ |
| 00146 assert(uri != 0); |
| 00147 |
| 00148 m_uri = uri; |
| 00149 } |
| 00150 |
| 00157 <font class="keywordtype">void</font> |
| <a name="l00158"></a><a class="code" href="classNameSpace.html#a9">00158</a> <a class="code" href="classNameSpace.html#a7">setURI</a>( |
| 00159 <font class="keyword">const</font> XalanDOMChar* uri, |
| 00160 XalanDOMString::size_type len)<font class="keyword"></font> |
| 00161 <font class="keyword"> </font>{ |
| 00162 assert(uri != 0); |
| 00163 |
| 00164 m_uri.<a class="code" href="classXalanDOMString.html#a39">assign</a>(uri, len); |
| 00165 } |
| 00166 |
| 00167 <font class="keywordtype">bool</font> |
| <a name="l00168"></a><a class="code" href="classNameSpace.html#a10">00168</a> <a class="code" href="classNameSpace.html#a10">empty</a>()<font class="keyword"> const</font> |
| 00169 <font class="keyword"> </font>{ |
| 00170 <font class="keywordflow">return</font> m_prefix.<a class="code" href="classXalanDOMString.html#a28">empty</a>() && m_uri.<a class="code" href="classXalanDOMString.html#a28">empty</a>(); |
| 00171 } |
| 00172 |
| 00173 <font class="keywordtype">void</font> |
| <a name="l00174"></a><a class="code" href="classNameSpace.html#a11">00174</a> <a class="code" href="classNameSpace.html#a11">clear</a>()<font class="keyword"></font> |
| 00175 <font class="keyword"> </font>{ |
| 00176 m_prefix.<a class="code" href="classXalanDOMString.html#a26">clear</a>(); |
| 00177 |
| 00178 m_uri.<a class="code" href="classXalanDOMString.html#a26">clear</a>(); |
| 00179 } |
| 00180 |
| 00186 <font class="keywordtype">bool</font> |
| <a name="l00187"></a><a class="code" href="classNameSpace.html#a12">00187</a> <a class="code" href="classNameSpace.html#a12">operator==</a>(<font class="keyword">const</font> <a class="code" href="classNameSpace.html">NameSpace</a>& theRHS)<font class="keyword"> const</font> |
| 00188 <font class="keyword"> </font>{ |
| 00189 <font class="keywordflow">return</font> <a class="code" href="DOMStringHelper_8hpp.html#a64">equals</a>(m_prefix, theRHS.m_prefix) && |
| 00190 <a class="code" href="DOMStringHelper_8hpp.html#a64">equals</a>(m_uri, theRHS.m_uri); |
| 00191 } |
| 00192 |
| 00193 <font class="keyword">private</font>: |
| 00194 <a class="code" href="classNameSpace.html#a0">NameSpace</a>(<font class="keyword">const</font> <a class="code" href="classNameSpace.html">NameSpace</a>&); |
| 00195 |
| 00196 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_prefix; |
| 00197 |
| 00198 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_uri; |
| 00199 }; |
| 00200 |
| 00201 <a class="code" href="XalanMemoryManagement_8hpp.html#a4">XALAN_USES_MEMORY_MANAGER</a>(<a class="code" href="classNameSpace.html">NameSpace</a>) |
| 00202 |
| 00203 XALAN_CPP_NAMESPACE_END |
| 00204 |
| 00205 |
| 00206 |
| 00207 <font class="preprocessor">#endif // NAMESPACE_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>
|