Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


XalanNumberingResourceBundle.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #if !defined(XALAN_NUMBERINGRESOURCEBUNDLE_HEADER_GUARD)
20 #define XALAN_NUMBERINGRESOURCEBUNDLE_HEADER_GUARD
21 
22 
23 
24 // Base include file. Must be first.
26 
27 
28 
30 
31 
32 
34 
35 
36 
37 XALAN_CPP_NAMESPACE_BEGIN
38 
40 
42 {
43 public:
44 
45  typedef unsigned long NumberType;
46 
49 
50  // Enum to describe language orientation. (English is left-to-right,
51  // Hebrew is right-to-left, etc.)
52  enum eOrientation { eLeftToRight, eRightToLeft, eTopToBottom, eBottomToTop };
53 
54  // Enum to describe how numbering is done.
55  enum eNumberingMethod { eAdditive, eMultiplicativeAdditive };
56 
57  // Enum to describe the where the multiplier goes.
58  enum eMultiplierOrder { eFollows, ePrecedes };
59 
60 
61  XalanNumberingResourceBundle(
62  const XalanDOMString& theLanguage,
63  const XalanDOMString& theUILanguage,
64  const XalanDOMString& theHelpLanguage,
65  const XalanDOMCharVectorType& theAlphabet,
66  const XalanDOMCharVectorType& theTraditionalAlphabet,
67  eOrientation theOrientation,
68  eNumberingMethod theNumberingMethod,
69  eMultiplierOrder theMultiplierOrder,
70  NumberType theMaxNumericalValue,
71  const NumberTypeVectorType& theNumberGroups,
72  const NumberTypeVectorType& theMultipliers,
73  const XalanDOMCharVectorType& theZeroChar,
74  const XalanDOMCharVectorType& theMultiplierChars,
75  const DigitsTableVectorType& theDigitsTable,
76  const NumberTypeVectorType& theDigitsTableTable,
77  MemoryManager& theManager);
78 
79  explicit
80  XalanNumberingResourceBundle(MemoryManager& theManager);
81 
82  XalanNumberingResourceBundle(const XalanNumberingResourceBundle& theSource,
83  MemoryManager& theManager);
84 
85  ~XalanNumberingResourceBundle();
86 
87  MemoryManager&
89  {
90  return m_language.getMemoryManager();
91  }
92 
93  bool
94  operator==(const XalanNumberingResourceBundle& theRHS) const
95  {
96  return equals(m_language, theRHS.m_language);
97  }
98 
99  const XalanDOMString&
100  getLanguage() const
101  {
102  return m_language;
103  }
104 
105  const XalanDOMString&
107  {
108  return m_uiLanguage;
109  }
110 
111  const XalanDOMString&
113  {
114  return m_helpLanguage;
115  }
116 
118  getAlphabet() const
119  {
120  return m_alphabet;
121  }
122 
125  {
126  return m_traditionalAlphabet;
127  }
128 
131  {
132  return m_orientation;
133  }
134 
137  {
138  return m_numberingMethod;
139  }
140 
143  {
144  return m_multiplierOrder;
145  }
146 
147  NumberType
149  {
150  return m_maxNumericalValue;
151  }
152 
153  const NumberTypeVectorType&
155  {
156  return m_numberGroups;
157  }
158 
159  const NumberTypeVectorType&
161  {
162  return m_multipliers;
163  }
164 
166  getZeroChar() const
167  {
168  return m_zeroChar;
169  }
170 
173  {
174  return m_multiplierChars;
175  }
176 
177  const DigitsTableVectorType&
179  {
180  return m_digitsTable;
181  }
182 
183  const NumberTypeVectorType&
185  {
186  return m_digitsTableTable;
187  }
188 
189  void
190  swap(XalanNumberingResourceBundle& theOther);
191 
192 private:
193 
194  XalanDOMString m_language;
195 
196  XalanDOMString m_uiLanguage;
197 
198  XalanDOMString m_helpLanguage;
199 
200  XalanDOMCharVectorType m_alphabet;
201 
202  XalanDOMCharVectorType m_traditionalAlphabet;
203 
204  eOrientation m_orientation;
205 
206  eNumberingMethod m_numberingMethod;
207 
208  eMultiplierOrder m_multiplierOrder;
209 
210  NumberType m_maxNumericalValue;
211 
212  NumberTypeVectorType m_numberGroups;
213 
214  NumberTypeVectorType m_multipliers;
215 
216  XalanDOMCharVectorType m_zeroChar;
217 
218  XalanDOMCharVectorType m_multiplierChars;
219 
220  DigitsTableVectorType m_digitsTable;
221 
222  NumberTypeVectorType m_digitsTableTable;
223 };
224 
225 
226 
227 XALAN_CPP_NAMESPACE_END
228 
229 
230 
231 #endif // XALAN_NUMBERINGRESOURCEBUNDLE_HEADER_GUARD
const XalanDOMCharVectorType & getTraditionalAlphabet() const
const XalanDOMCharVectorType & getZeroChar() const
XalanVector< XalanDOMCharVectorType > DigitsTableVectorType
bool operator==(const XalanNumberingResourceBundle &theRHS) const
const XalanDOMCharVectorType & getAlphabet() const
const XalanDOMString & getUILanguage() const
const NumberTypeVectorType & getDigitsTableTable() const
const DigitsTableVectorType & getDigitsTable() const
void swap(XalanVector< Type > &theLHS, XalanVector< Type > &theRHS)
const XalanDOMString & getHelpLanguage() const
const XalanDOMCharVectorType & getMultiplierChars() const
#define XALAN_USES_MEMORY_MANAGER(Type)
XalanVector< NumberType > NumberTypeVectorType
const XalanDOMString & getLanguage() const
const NumberTypeVectorType & getNumberGroups() const
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.
const NumberTypeVectorType & getMultipliers() const

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo