blob: 7bfe582d32da4b57f16b40c7101f4c961cb2ac17 [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>XalanNumberingResourceBundle.hpp</h1><a href="XalanNumberingResourceBundle_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_NUMBERINGRESOURCEBUNDLE_HEADER_GUARD)</font>
<a name="l00018"></a><a class="code" href="XalanNumberingResourceBundle_8hpp.html#a0">00018</a> <font class="preprocessor"></font><font class="preprocessor">#define XALAN_NUMBERINGRESOURCEBUNDLE_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 &lt;<a class="code" href="XSLTDefinitions_8hpp.html">xalanc/XSLT/XSLTDefinitions.hpp</a>&gt;</font>
00024
00025
00026
00027 <font class="preprocessor">#include &lt;<a class="code" href="XalanVector_8hpp.html">xalanc/Include/XalanVector.hpp</a>&gt;</font>
00028
00029
00030
00031 <font class="preprocessor">#include &lt;<a class="code" href="DOMStringHelper_8hpp.html">xalanc/PlatformSupport/DOMStringHelper.hpp</a>&gt;</font>
00032
00033
00034
00035 XALAN_CPP_NAMESPACE_BEGIN
00036
<a name="l00037"></a><a class="code" href="XalanNumberingResourceBundle_8hpp.html#a1">00037</a> <a class="code" href="XalanMemoryManagement_8hpp.html#a4">XALAN_USES_MEMORY_MANAGER</a>(XalanDOMCharVectorType)
00038
00039 <font class="keyword">class </font>XalanNumberingResourceBundle
00040 {
00041 <font class="keyword">public</font>:
00042
00043 <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> NumberType;
00044
00045 <font class="keyword">typedef</font> XalanVector&lt;NumberType&gt; NumberTypeVectorType;
00046 <font class="keyword">typedef</font> XalanVector&lt;XalanDOMCharVectorType&gt; DigitsTableVectorType;
00047
00048 <font class="comment">// Enum to describe language orientation. (English is left-to-right,</font>
00049 <font class="comment">// Hebrew is right-to-left, etc.)</font>
00050 <font class="keyword">enum</font> eOrientation { eLeftToRight, eRightToLeft, eTopToBottom, eBottomToTop };
00051
00052 <font class="comment">// Enum to describe how numbering is done.</font>
00053 <font class="keyword">enum</font> eNumberingMethod { eAdditive, eMultiplicativeAdditive };
00054
00055 <font class="comment">// Enum to describe the where the multiplier goes.</font>
00056 <font class="keyword">enum</font> eMultiplierOrder { eFollows, ePrecedes };
00057
00058
00059 XalanNumberingResourceBundle(
00060 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theLanguage,
00061 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theUILanguage,
00062 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theHelpLanguage,
00063 <font class="keyword">const</font> XalanDOMCharVectorType&amp; theAlphabet,
00064 <font class="keyword">const</font> XalanDOMCharVectorType&amp; theTraditionalAlphabet,
00065 eOrientation theOrientation,
00066 eNumberingMethod theNumberingMethod,
00067 eMultiplierOrder theMultiplierOrder,
00068 NumberType theMaxNumericalValue,
00069 <font class="keyword">const</font> NumberTypeVectorType&amp; theNumberGroups,
00070 <font class="keyword">const</font> NumberTypeVectorType&amp; theMultipliers,
00071 <font class="keyword">const</font> XalanDOMCharVectorType&amp; theZeroChar,
00072 <font class="keyword">const</font> XalanDOMCharVectorType&amp; theMultiplierChars,
00073 <font class="keyword">const</font> DigitsTableVectorType&amp; theDigitsTable,
00074 <font class="keyword">const</font> NumberTypeVectorType&amp; theDigitsTableTable,
00075 MemoryManagerType&amp; theManager);
00076
00077 <font class="keyword">explicit</font>
00078 XalanNumberingResourceBundle(MemoryManagerType&amp; theManager);
00079
00080 XalanNumberingResourceBundle(<font class="keyword">const</font> XalanNumberingResourceBundle&amp; theSource,
00081 MemoryManagerType&amp; theManager);
00082
00083 ~XalanNumberingResourceBundle();
00084
00085 MemoryManagerType&amp;
00086 getMemoryManager()<font class="keyword"></font>
00087 <font class="keyword"> </font>{
00088 <font class="keywordflow">return</font> m_language.getMemoryManager();
00089 }
00090
00091 <font class="keywordtype">bool</font>
00092 <a class="code" href="ElemAttributeSet_8hpp.html#a1">operator==</a>(<font class="keyword">const</font> XalanNumberingResourceBundle&amp; theRHS)<font class="keyword"> const</font>
00093 <font class="keyword"> </font>{
00094 <font class="keywordflow">return</font> <a class="code" href="DOMStringHelper_8hpp.html#a64">equals</a>(m_language, theRHS.m_language);
00095 }
00096
00097 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
00098 getLanguage()<font class="keyword"> const</font>
00099 <font class="keyword"> </font>{
00100 <font class="keywordflow">return</font> m_language;
00101 }
00102
00103 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
00104 getUILanguage()<font class="keyword"> const</font>
00105 <font class="keyword"> </font>{
00106 <font class="keywordflow">return</font> m_uiLanguage;
00107 }
00108
00109 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp;
00110 getHelpLanguage()<font class="keyword"> const</font>
00111 <font class="keyword"> </font>{
00112 <font class="keywordflow">return</font> m_helpLanguage;
00113 }
00114
00115 <font class="keyword">const</font> XalanDOMCharVectorType&amp;
00116 getAlphabet()<font class="keyword"> const</font>
00117 <font class="keyword"> </font>{
00118 <font class="keywordflow">return</font> m_alphabet;
00119 }
00120
00121 <font class="keyword">const</font> XalanDOMCharVectorType&amp;
00122 getTraditionalAlphabet()<font class="keyword"> const</font>
00123 <font class="keyword"> </font>{
00124 <font class="keywordflow">return</font> m_traditionalAlphabet;
00125 }
00126
00127 eOrientation
00128 getOrientation()<font class="keyword"> const</font>
00129 <font class="keyword"> </font>{
00130 <font class="keywordflow">return</font> m_orientation;
00131 }
00132
00133 eNumberingMethod
00134 getNumberingMethod()<font class="keyword"> const</font>
00135 <font class="keyword"> </font>{
00136 <font class="keywordflow">return</font> m_numberingMethod;
00137 }
00138
00139 eMultiplierOrder
00140 getMultiplierOrder()<font class="keyword"> const</font>
00141 <font class="keyword"> </font>{
00142 <font class="keywordflow">return</font> m_multiplierOrder;
00143 }
00144
00145 NumberType
00146 getMaxNumericalValue()<font class="keyword"> const</font>
00147 <font class="keyword"> </font>{
00148 <font class="keywordflow">return</font> m_maxNumericalValue;
00149 }
00150
00151 <font class="keyword">const</font> NumberTypeVectorType&amp;
00152 getNumberGroups()<font class="keyword"> const</font>
00153 <font class="keyword"> </font>{
00154 <font class="keywordflow">return</font> m_numberGroups;
00155 }
00156
00157 <font class="keyword">const</font> NumberTypeVectorType&amp;
00158 getMultipliers()<font class="keyword"> const</font>
00159 <font class="keyword"> </font>{
00160 <font class="keywordflow">return</font> m_multipliers;
00161 }
00162
00163 <font class="keyword">const</font> XalanDOMCharVectorType&amp;
00164 getZeroChar()<font class="keyword"> const</font>
00165 <font class="keyword"> </font>{
00166 <font class="keywordflow">return</font> m_zeroChar;
00167 }
00168
00169 <font class="keyword">const</font> XalanDOMCharVectorType&amp;
00170 getMultiplierChars()<font class="keyword"> const</font>
00171 <font class="keyword"> </font>{
00172 <font class="keywordflow">return</font> m_multiplierChars;
00173 }
00174
00175 <font class="keyword">const</font> DigitsTableVectorType&amp;
00176 getDigitsTable()<font class="keyword"> const</font>
00177 <font class="keyword"> </font>{
00178 <font class="keywordflow">return</font> m_digitsTable;
00179 }
00180
00181 <font class="keyword">const</font> NumberTypeVectorType&amp;
00182 getDigitsTableTable()<font class="keyword"> const</font>
00183 <font class="keyword"> </font>{
00184 <font class="keywordflow">return</font> m_digitsTableTable;
00185 }
00186
00187 <font class="keywordtype">void</font>
00188 <a class="code" href="XalanVector_8hpp.html#a2">swap</a>(XalanNumberingResourceBundle&amp; theOther);
00189
00190 <font class="keyword">private</font>:
00191
00192 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_language;
00193
00194 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_uiLanguage;
00195
00196 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_helpLanguage;
00197
00198 XalanDOMCharVectorType m_alphabet;
00199
00200 XalanDOMCharVectorType m_traditionalAlphabet;
00201
00202 eOrientation m_orientation;
00203
00204 eNumberingMethod m_numberingMethod;
00205
00206 eMultiplierOrder m_multiplierOrder;
00207
00208 NumberType m_maxNumericalValue;
00209
00210 NumberTypeVectorType m_numberGroups;
00211
00212 NumberTypeVectorType m_multipliers;
00213
00214 XalanDOMCharVectorType m_zeroChar;
00215
00216 XalanDOMCharVectorType m_multiplierChars;
00217
00218 DigitsTableVectorType m_digitsTable;
00219
00220 NumberTypeVectorType m_digitsTableTable;
00221 };
00222
00223
00224
00225 XALAN_CPP_NAMESPACE_END
00226
00227
00228
00229 <font class="preprocessor">#endif // XALAN_NUMBERINGRESOURCEBUNDLE_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>