Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

XalanDecimalFormatSymbols.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2004 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #if !defined(XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680)
00017 #define XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 // Base include file.  Must be first.
00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp>
00023 
00024 
00025 
00026 #include <cassert>
00027 
00028 
00029 
00030 #include <xalanc/XalanDOM/XalanDOMString.hpp>
00031 
00032 
00033 
00034 XALAN_CPP_NAMESPACE_BEGIN
00035 
00036 
00037 
00038 class XALAN_PLATFORMSUPPORT_EXPORT XalanDecimalFormatSymbols
00039 {
00040 public:
00041 
00042     // Eventually, this constructor should take a locale to determine
00043     // all of the stuff it needs to know.  But locales are implemented
00044     // on all of our platforms yet.
00045     explicit
00046     XalanDecimalFormatSymbols();
00047 
00048     XalanDecimalFormatSymbols(const XalanDecimalFormatSymbols&  theSource);
00049 
00050     ~XalanDecimalFormatSymbols();
00051 
00052     XalanDecimalFormatSymbols&
00053     operator=(const XalanDecimalFormatSymbols&  theRHS);
00054 
00060     const XalanDOMString&
00061     getCurrencySymbol() const
00062     {
00063         return m_currencySymbol;
00064     }
00065 
00071     XalanDOMChar
00072     getDecimalSeparator() const
00073     {
00074         return m_decimalSeparator;
00075     }
00076 
00082     XalanDOMChar
00083     getDigit() const
00084     {
00085         return m_digit;
00086     }
00087 
00093     XalanDOMChar
00094     getGroupingSeparator() const
00095     {
00096         return m_groupingSeparator;
00097     }
00098 
00104     const XalanDOMString&
00105     getInfinity() const
00106     {
00107         return m_infinity;
00108     }
00109 
00115     const XalanDOMString&
00116     getInternationalCurrencySymbol() const
00117     {
00118         return m_internationalCurrencySymbol;
00119     }
00120 
00126     XalanDOMChar
00127     getMinusSign() const
00128     {
00129         return m_minusSign;
00130     }
00131 
00137     XalanDOMChar
00138     getMonetaryDecimalSeparator() const
00139     {
00140         return m_monetaryDecimalSeparator;
00141     }
00142 
00149     const XalanDOMString&
00150     getNaN() const
00151     {
00152         return m_NaN;
00153     }
00154 
00161     XalanDOMChar
00162     getPatternSeparator() const
00163     {
00164         return m_patternSeparator;
00165     }
00166 
00172     XalanDOMChar
00173     getPercent() const
00174     {
00175         return m_percent;
00176     }
00177 
00183     XalanDOMChar
00184     getPerMill() const
00185     {
00186         return m_perMill;
00187     }
00188 
00194     XalanDOMChar
00195     getZeroDigit() const
00196     {
00197         return m_zeroDigit;
00198     }
00199 
00205     void
00206     setCurrencySymbol(const XalanDOMString&     theCurrencySymbol)
00207     {
00208         m_currencySymbol = theCurrencySymbol;
00209     }
00210 
00216     void
00217     setCurrencySymbol(const XalanDOMChar*   theCurrencySymbol)
00218     {
00219         assert(theCurrencySymbol != 0);
00220 
00221         m_currencySymbol = theCurrencySymbol;
00222     }
00223 
00229     void
00230     setDecimalSeparator(XalanDOMChar    theDecimalSeparator)
00231     {
00232         m_decimalSeparator = theDecimalSeparator;
00233     }
00234 
00240     void
00241     setDigit(XalanDOMChar   theDigit)
00242     {
00243         m_digit = theDigit;
00244     }
00245 
00251     void
00252     setGroupingSeparator(XalanDOMChar   theGroupingSeparator)
00253     {
00254         m_groupingSeparator = theGroupingSeparator;
00255     }
00256 
00262     void
00263     setInfinity(const XalanDOMString&   theInfinity)
00264     {
00265         m_infinity = theInfinity;
00266     }
00267 
00273     void
00274     setInfinity(const XalanDOMChar*     theInfinity)
00275     {
00276         assert(theInfinity != 0);
00277 
00278         m_infinity = theInfinity;
00279     }
00280 
00287     void
00288     setInternationalCurrencySymbol(const XalanDOMString&    theInternationalCurrencySymbol)
00289     {
00290         m_internationalCurrencySymbol = theInternationalCurrencySymbol;
00291     }
00292 
00299     void
00300     setInternationalCurrencySymbol(const XalanDOMChar*  theInternationalCurrencySymbol)
00301     {
00302         assert(theInternationalCurrencySymbol != 0);
00303 
00304         m_internationalCurrencySymbol = theInternationalCurrencySymbol;
00305     }
00306 
00312     void
00313     setMinusSign(XalanDOMChar   theMinusSign)
00314     {
00315         m_minusSign = theMinusSign;
00316     }
00317 
00324     void
00325     setMonetaryDecimalSeparator(XalanDOMChar    theMonetaryDecimalSeparator)
00326     {
00327         m_monetaryDecimalSeparator = theMonetaryDecimalSeparator;
00328     }
00329 
00336     void
00337     setNaN(const XalanDOMString&    theNaN)
00338     {
00339         m_NaN = theNaN;
00340     }
00341 
00348     void
00349     setNaN(const XalanDOMChar*  theNaN)
00350     {
00351         assert(theNaN != 0);
00352 
00353         m_NaN = theNaN;
00354     }
00355 
00363     void
00364     setPatternSeparator(XalanDOMChar    thePatternSeparator)
00365     {
00366         m_patternSeparator = thePatternSeparator;
00367     }
00368 
00374     void
00375     setPercent(XalanDOMChar thePercent)
00376     {
00377         m_percent = thePercent;
00378     }
00379 
00385     void
00386     setPerMill(XalanDOMChar thePerMill)
00387     {
00388         m_perMill = thePerMill;
00389     }
00390 
00396     void
00397     setZeroDigit(XalanDOMChar   theZeroDigit)
00398     {
00399         m_zeroDigit = theZeroDigit;
00400     }
00401 
00402     bool
00403     operator==(const XalanDecimalFormatSymbols&     theRHS) const;
00404 
00405     bool
00406     operator!=(const XalanDecimalFormatSymbols&     theRHS) const
00407     {
00408         return !operator==(theRHS);
00409     }
00410 
00411 private:
00412 
00413     XalanDOMString  m_currencySymbol;
00414 
00415     XalanDOMChar    m_decimalSeparator;
00416     XalanDOMChar    m_digit;
00417     XalanDOMChar    m_groupingSeparator;
00418 
00419     XalanDOMString  m_infinity;
00420     XalanDOMString  m_internationalCurrencySymbol;
00421 
00422     XalanDOMChar    m_minusSign;
00423     XalanDOMChar    m_monetaryDecimalSeparator;
00424 
00425     XalanDOMString  m_NaN;
00426 
00427     XalanDOMChar    m_patternSeparator;
00428     XalanDOMChar    m_percent;
00429     XalanDOMChar    m_perMill;
00430     XalanDOMChar    m_zeroDigit;
00431 };
00432 
00433 
00434 
00435 XALAN_CPP_NAMESPACE_END
00436 
00437 
00438 
00439 #endif  // XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680

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.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.