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
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
void setPercent(XalanDOMChar thePercent)
Sets the character used for percent sign, "%," for example.
Definition: XalanDecimalFormatSymbols.hpp:376
void setInternationalCurrencySymbol(const XalanDOMString &theInternationalCurrencySymbol)
Sets the international string denoting the local currency.
Definition: XalanDecimalFormatSymbols.hpp:289
void setGroupingSeparator(XalanDOMChar theGroupingSeparator)
Sets the character used for thousands separator, "," for example.
Definition: XalanDecimalFormatSymbols.hpp:253
XalanDOMChar getPerMill() const
Retrieve the character used for per thousand sign.
Definition: XalanDecimalFormatSymbols.hpp:185
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
XalanDOMChar getMinusSign() const
Retrieve the character used to represent minus sign.
Definition: XalanDecimalFormatSymbols.hpp:128
XalanDOMChar getPercent() const
Retrieve the character used for percent sign, "%," for example.
Definition: XalanDecimalFormatSymbols.hpp:174
const XalanDOMString & getInfinity() const
Retrieve the string used to represent infinity.
Definition: XalanDecimalFormatSymbols.hpp:106
XalanDOMChar getDigit() const
Retrieve character used for a digit in a pattern.
Definition: XalanDecimalFormatSymbols.hpp:84
Definition: XalanDecimalFormatSymbols.hpp:38
XalanDOMChar getPatternSeparator() const
Retrieve the character used to separate positive and negative subpatterns in a pattern.
Definition: XalanDecimalFormatSymbols.hpp:163
void setInfinity(const XalanDOMChar *theInfinity)
Sets the string used to represent infinity.
Definition: XalanDecimalFormatSymbols.hpp:275
void setMinusSign(XalanDOMChar theMinusSign)
Sets the character used to represent minus sign.
Definition: XalanDecimalFormatSymbols.hpp:314
const XalanDOMString & getCurrencySymbol() const
Retrieve the string denoting the local currency, "$", for example.
Definition: XalanDecimalFormatSymbols.hpp:62
XalanDOMChar getZeroDigit() const
Retrieve the character used for zero.
Definition: XalanDecimalFormatSymbols.hpp:196
void setPatternSeparator(XalanDOMChar thePatternSeparator)
Sets the character used to separate positive and negative subpatterns in a pattern.
Definition: XalanDecimalFormatSymbols.hpp:365
void setNaN(const XalanDOMString &theNaN)
Sets the string used for a numeric value that cannot be represented as a number.
Definition: XalanDecimalFormatSymbols.hpp:338
void setPerMill(XalanDOMChar thePerMill)
Sets the character used for per thousand sign.
Definition: XalanDecimalFormatSymbols.hpp:387
void setDigit(XalanDOMChar theDigit)
Sets the character used for a digit in a pattern.
Definition: XalanDecimalFormatSymbols.hpp:242
const XalanDOMString & getNaN() const
Retrieve the string used for a numeric value that cannot be represented as a number.
Definition: XalanDecimalFormatSymbols.hpp:151
void setDecimalSeparator(XalanDOMChar theDecimalSeparator)
Sets the character used for decimal sign, '.
Definition: XalanDecimalFormatSymbols.hpp:231
Definition: XalanDOMString.hpp:42
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:33
XalanDOMChar getMonetaryDecimalSeparator() const
Retrieve the monetary decimal separator.
Definition: XalanDecimalFormatSymbols.hpp:139
void setZeroDigit(XalanDOMChar theZeroDigit)
Sets the character used for zero.
Definition: XalanDecimalFormatSymbols.hpp:398
XalanDOMChar getDecimalSeparator() const
Retrieve the character used for decimal sign, '.
Definition: XalanDecimalFormatSymbols.hpp:73
const XalanDOMString & getInternationalCurrencySymbol() const
Retrieve the international string denoting the local currency.
Definition: XalanDecimalFormatSymbols.hpp:117
void setCurrencySymbol(const XalanDOMString &theCurrencySymbol)
Sets the string denoting the local currency, "$", for example.
Definition: XalanDecimalFormatSymbols.hpp:207
void setInfinity(const XalanDOMString &theInfinity)
Sets the string used to represent infinity.
Definition: XalanDecimalFormatSymbols.hpp:264
void setInternationalCurrencySymbol(const XalanDOMChar *theInternationalCurrencySymbol)
Sets the international string denoting the local currency.
Definition: XalanDecimalFormatSymbols.hpp:301
XalanDOMChar getGroupingSeparator() const
Retrieve the character used for thousands separator, "," for example.
Definition: XalanDecimalFormatSymbols.hpp:95
bool operator!=(const XalanDecimalFormatSymbols &theRHS) const
Definition: XalanDecimalFormatSymbols.hpp:407
void setNaN(const XalanDOMChar *theNaN)
Sets the string used for a numeric value that cannot be represented as a number.
Definition: XalanDecimalFormatSymbols.hpp:350
void setCurrencySymbol(const XalanDOMChar *theCurrencySymbol)
Sets the string denoting the local currency, "$", for example.
Definition: XalanDecimalFormatSymbols.hpp:218
void setMonetaryDecimalSeparator(XalanDOMChar theMonetaryDecimalSeparator)
Sets the monetary decimal separator.
Definition: XalanDecimalFormatSymbols.hpp:326

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