Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanDecimalFormatSymbols.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680)
17 #define XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 #include <cassert>
27 
28 
29 
31 
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 
39 {
40 public:
41 
42  // Eventually, this constructor should take a locale to determine
43  // all of the stuff it needs to know. But locales are implemented
44  // on all of our platforms yet.
45  explicit
47 
49  MemoryManagerType& theManager);
50 
52 
54  operator=(const XalanDecimalFormatSymbols& theRHS);
55 
61  const XalanDOMString&
63  {
64  return m_currencySymbol;
65  }
66 
72  XalanDOMChar
74  {
75  return m_decimalSeparator;
76  }
77 
83  XalanDOMChar
84  getDigit() const
85  {
86  return m_digit;
87  }
88 
94  XalanDOMChar
96  {
97  return m_groupingSeparator;
98  }
99 
105  const XalanDOMString&
106  getInfinity() const
107  {
108  return m_infinity;
109  }
110 
116  const XalanDOMString&
118  {
119  return m_internationalCurrencySymbol;
120  }
121 
127  XalanDOMChar
128  getMinusSign() const
129  {
130  return m_minusSign;
131  }
132 
138  XalanDOMChar
140  {
141  return m_monetaryDecimalSeparator;
142  }
143 
150  const XalanDOMString&
151  getNaN() const
152  {
153  return m_NaN;
154  }
155 
162  XalanDOMChar
164  {
165  return m_patternSeparator;
166  }
167 
173  XalanDOMChar
174  getPercent() const
175  {
176  return m_percent;
177  }
178 
184  XalanDOMChar
185  getPerMill() const
186  {
187  return m_perMill;
188  }
189 
195  XalanDOMChar
196  getZeroDigit() const
197  {
198  return m_zeroDigit;
199  }
200 
206  void
207  setCurrencySymbol(const XalanDOMString& theCurrencySymbol)
208  {
209  m_currencySymbol = theCurrencySymbol;
210  }
211 
217  void
218  setCurrencySymbol(const XalanDOMChar* theCurrencySymbol)
219  {
220  assert(theCurrencySymbol != 0);
221 
222  m_currencySymbol = theCurrencySymbol;
223  }
224 
230  void
231  setDecimalSeparator(XalanDOMChar theDecimalSeparator)
232  {
233  m_decimalSeparator = theDecimalSeparator;
234  }
235 
241  void
242  setDigit(XalanDOMChar theDigit)
243  {
244  m_digit = theDigit;
245  }
246 
252  void
253  setGroupingSeparator(XalanDOMChar theGroupingSeparator)
254  {
255  m_groupingSeparator = theGroupingSeparator;
256  }
257 
263  void
264  setInfinity(const XalanDOMString& theInfinity)
265  {
266  m_infinity = theInfinity;
267  }
268 
274  void
275  setInfinity(const XalanDOMChar* theInfinity)
276  {
277  assert(theInfinity != 0);
278 
279  m_infinity = theInfinity;
280  }
281 
288  void
289  setInternationalCurrencySymbol(const XalanDOMString& theInternationalCurrencySymbol)
290  {
291  m_internationalCurrencySymbol = theInternationalCurrencySymbol;
292  }
293 
300  void
301  setInternationalCurrencySymbol(const XalanDOMChar* theInternationalCurrencySymbol)
302  {
303  assert(theInternationalCurrencySymbol != 0);
304 
305  m_internationalCurrencySymbol = theInternationalCurrencySymbol;
306  }
307 
313  void
314  setMinusSign(XalanDOMChar theMinusSign)
315  {
316  m_minusSign = theMinusSign;
317  }
318 
325  void
326  setMonetaryDecimalSeparator(XalanDOMChar theMonetaryDecimalSeparator)
327  {
328  m_monetaryDecimalSeparator = theMonetaryDecimalSeparator;
329  }
330 
337  void
338  setNaN(const XalanDOMString& theNaN)
339  {
340  m_NaN = theNaN;
341  }
342 
349  void
350  setNaN(const XalanDOMChar* theNaN)
351  {
352  assert(theNaN != 0);
353 
354  m_NaN = theNaN;
355  }
356 
364  void
365  setPatternSeparator(XalanDOMChar thePatternSeparator)
366  {
367  m_patternSeparator = thePatternSeparator;
368  }
369 
375  void
376  setPercent(XalanDOMChar thePercent)
377  {
378  m_percent = thePercent;
379  }
380 
386  void
387  setPerMill(XalanDOMChar thePerMill)
388  {
389  m_perMill = thePerMill;
390  }
391 
397  void
398  setZeroDigit(XalanDOMChar theZeroDigit)
399  {
400  m_zeroDigit = theZeroDigit;
401  }
402 
403  bool
404  operator==(const XalanDecimalFormatSymbols& theRHS) const;
405 
406  bool
408  {
409  return !operator==(theRHS);
410  }
411 
412 private:
413  // not implemented
416 
417  XalanDOMString m_currencySymbol;
418 
419  XalanDOMChar m_decimalSeparator;
420  XalanDOMChar m_digit;
421  XalanDOMChar m_groupingSeparator;
422 
423  XalanDOMString m_infinity;
424  XalanDOMString m_internationalCurrencySymbol;
425 
426  XalanDOMChar m_minusSign;
427  XalanDOMChar m_monetaryDecimalSeparator;
428 
429  XalanDOMString m_NaN;
430 
431  XalanDOMChar m_patternSeparator;
432  XalanDOMChar m_percent;
433  XalanDOMChar m_perMill;
434  XalanDOMChar m_zeroDigit;
435 };
436 
437 
438 
439 XALAN_CPP_NAMESPACE_END
440 
441 
442 
443 #endif // XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680

Interpreting class diagrams

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

dot

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

Apache Logo