blob: a3b52ea654e0b42123807eb94b42d17c2136bffa [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>XalanNamespace.hpp</h1><a href="XalanNamespace_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(XALANNAMESPACE_HEADER_GUARD_1357924680)</font>
<a name="l00017"></a><a class="code" href="XalanNamespace_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define XALANNAMESPACE_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 &lt;<a class="code" href="PlatformSupportDefinitions_8hpp.html">xalanc/PlatformSupport/PlatformSupportDefinitions.hpp</a>&gt;</font>
00023
00024
00025
00026 <font class="preprocessor">#include &lt;<a class="code" href="DOMStringHelper_8hpp.html">xalanc/PlatformSupport/DOMStringHelper.hpp</a>&gt;</font>
00027
00028
00029
00030 XALAN_CPP_NAMESPACE_BEGIN
00031
00032
00033
<a name="l00034"></a><a class="code" href="classXalanNamespace.html">00034</a> <font class="keyword">class </font><a class="code" href="classXalanNamespace.html">XalanNamespace</a>
00035 {
00036 <font class="keyword">public</font>:
00037
00038 <font class="keyword">explicit</font>
<a name="l00039"></a><a class="code" href="classXalanNamespace.html#a0">00039</a> <a class="code" href="classXalanNamespace.html#a0">XalanNamespace</a>(MemoryManagerType&amp; theManager) :
00040 m_prefix(theManager),
00041 m_uri(theManager)
00042 {
00043 }
00044
<a name="l00052"></a><a class="code" href="classXalanNamespace.html#a1">00052</a> <a class="code" href="classXalanNamespace.html#a0">XalanNamespace</a>(
00053 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; thePrefix,
00054 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theURI,
00055 MemoryManagerType&amp; theManager) :
00056 m_prefix(thePrefix,theManager),
00057 m_uri(theURI, theManager)
00058 {
00059 }
00060
<a name="l00061"></a><a class="code" href="classXalanNamespace.html#a2">00061</a> <a class="code" href="classXalanNamespace.html#a0">XalanNamespace</a>(
00062 <font class="keyword">const</font> <a class="code" href="classXalanNamespace.html">XalanNamespace</a>&amp; other,
00063 MemoryManagerType&amp; theManager) :
00064 m_prefix(other.m_prefix,theManager),
00065 m_uri(other.m_uri, theManager)
00066 {
00067 }
00068
<a name="l00069"></a><a class="code" href="classXalanNamespace.html#a3">00069</a> <a class="code" href="classXalanNamespace.html#a3">~XalanNamespace</a>()<font class="keyword"></font>
00070 <font class="keyword"> </font>{
00071 }
00072
00078 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
<a name="l00079"></a><a class="code" href="classXalanNamespace.html#a4">00079</a> <a class="code" href="classXalanNamespace.html#a4">getPrefix</a>()<font class="keyword"> const</font>
00080 <font class="keyword"> </font>{
00081 <font class="keywordflow">return</font> m_prefix;
00082 }
00083
00089 <font class="keywordtype">void</font>
<a name="l00090"></a><a class="code" href="classXalanNamespace.html#a5">00090</a> <a class="code" href="classXalanNamespace.html#a5">setPrefix</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; thePrefix)<font class="keyword"></font>
00091 <font class="keyword"> </font>{
00092 m_prefix = thePrefix;
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="classXalanNamespace.html#a6">00101</a> <a class="code" href="classXalanNamespace.html#a6">getURI</a>()<font class="keyword"> const</font>
00102 <font class="keyword"> </font>{
00103 <font class="keywordflow">return</font> m_uri;
00104 }
00105
00111 <font class="keywordtype">void</font>
<a name="l00112"></a><a class="code" href="classXalanNamespace.html#a7">00112</a> <a class="code" href="classXalanNamespace.html#a7">setURI</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theURI)<font class="keyword"></font>
00113 <font class="keyword"> </font>{
00114 m_uri = theURI;
00115 }
00116
00122 <font class="keywordtype">void</font>
<a name="l00123"></a><a class="code" href="classXalanNamespace.html#a8">00123</a> <a class="code" href="classXalanNamespace.html#a7">setURI</a>(<font class="keyword">const</font> XalanDOMChar* theURI)<font class="keyword"></font>
00124 <font class="keyword"> </font>{
00125 assert(theURI != 0);
00126
00127 m_uri = theURI;
00128 }
00129
00136 <font class="keywordtype">void</font>
<a name="l00137"></a><a class="code" href="classXalanNamespace.html#a9">00137</a> <a class="code" href="classXalanNamespace.html#a7">setURI</a>(
00138 <font class="keyword">const</font> XalanDOMChar* theURI,
00139 XalanDOMString::size_type len)<font class="keyword"></font>
00140 <font class="keyword"> </font>{
00141 assert(theURI != 0);
00142
00143 m_uri.<a class="code" href="classXalanDOMString.html#a39">assign</a>(theURI, len);
00144 }
00145
00146 <font class="keywordtype">bool</font>
<a name="l00147"></a><a class="code" href="classXalanNamespace.html#a10">00147</a> <a class="code" href="classXalanNamespace.html#a10">empty</a>()<font class="keyword"> const</font>
00148 <font class="keyword"> </font>{
00149 <font class="keywordflow">return</font> m_prefix.<a class="code" href="classXalanDOMString.html#a28">empty</a>() &amp;&amp; m_uri.<a class="code" href="classXalanDOMString.html#a28">empty</a>();
00150 }
00151
00152 <font class="keywordtype">void</font>
<a name="l00153"></a><a class="code" href="classXalanNamespace.html#a11">00153</a> <a class="code" href="classXalanNamespace.html#a11">clear</a>()<font class="keyword"></font>
00154 <font class="keyword"> </font>{
00155 m_prefix.<a class="code" href="classXalanDOMString.html#a26">clear</a>();
00156
00157 m_uri.<a class="code" href="classXalanDOMString.html#a26">clear</a>();
00158 }
00159
00165 <font class="keywordtype">bool</font>
<a name="l00166"></a><a class="code" href="classXalanNamespace.html#a12">00166</a> <a class="code" href="classXalanNamespace.html#a12">operator==</a>(<font class="keyword">const</font> <a class="code" href="classXalanNamespace.html">XalanNamespace</a>&amp; theRHS)<font class="keyword"> const</font>
00167 <font class="keyword"> </font>{
00168 <font class="keywordflow">return</font> <a class="code" href="DOMStringHelper_8hpp.html#a64">equals</a>(m_prefix, theRHS.m_prefix) &amp;&amp;
00169 <a class="code" href="DOMStringHelper_8hpp.html#a64">equals</a>(m_uri, theRHS.m_uri);
00170 }
00171
00172 <font class="keyword">private</font>:
00173 <font class="comment">//Not implemented</font>
00174 <a class="code" href="classXalanNamespace.html#a0">XalanNamespace</a>();
00175 <a class="code" href="classXalanNamespace.html#a0">XalanNamespace</a>(<font class="keyword">const</font> <a class="code" href="classXalanNamespace.html">XalanNamespace</a>&amp;);
00176
00177 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_prefix;
00178
00179 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_uri;
00180 };
00181
00182 <a class="code" href="XalanMemoryManagement_8hpp.html#a4">XALAN_USES_MEMORY_MANAGER</a>(<a class="code" href="classXalanNamespace.html">XalanNamespace</a>)
00183
00184 XALAN_CPP_NAMESPACE_END
00185
00186
00187
00188 <font class="preprocessor">#endif // ALANNAMESPACE_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>