Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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(MemoryManagerType&  theManager);
00047 
00048     XalanDecimalFormatSymbols(const XalanDecimalFormatSymbols&  theSource,
00049                                 MemoryManagerType&              theManager);
00050 
00051     ~XalanDecimalFormatSymbols();
00052 
00053     XalanDecimalFormatSymbols&
00054     operator=(const XalanDecimalFormatSymbols&  theRHS);
00055 
00061     const XalanDOMString&
00062     getCurrencySymbol() const
00063     {
00064         return m_currencySymbol;
00065     }
00066 
00072     XalanDOMChar
00073     getDecimalSeparator() const
00074     {
00075         return m_decimalSeparator;
00076     }
00077 
00083     XalanDOMChar
00084     getDigit() const
00085     {
00086         return m_digit;
00087     }
00088 
00094     XalanDOMChar
00095     getGroupingSeparator() const
00096     {
00097         return m_groupingSeparator;
00098     }
00099 
00105     const XalanDOMString&
00106     getInfinity() const
00107     {
00108         return m_infinity;
00109     }
00110 
00116     const XalanDOMString&
00117     getInternationalCurrencySymbol() const
00118     {
00119         return m_internationalCurrencySymbol;
00120     }
00121 
00127     XalanDOMChar
00128     getMinusSign() const
00129     {
00130         return m_minusSign;
00131     }
00132 
00138     XalanDOMChar
00139     getMonetaryDecimalSeparator() const
00140     {
00141         return m_monetaryDecimalSeparator;
00142     }
00143 
00150     const XalanDOMString&
00151     getNaN() const
00152     {
00153         return m_NaN;
00154     }
00155 
00162     XalanDOMChar
00163     getPatternSeparator() const
00164     {
00165         return m_patternSeparator;
00166     }
00167 
00173     XalanDOMChar
00174     getPercent() const
00175     {
00176         return m_percent;
00177     }
00178 
00184     XalanDOMChar
00185     getPerMill() const
00186     {
00187         return m_perMill;
00188     }
00189 
00195     XalanDOMChar
00196     getZeroDigit() const
00197     {
00198         return m_zeroDigit;
00199     }
00200 
00206     void
00207     setCurrencySymbol(const XalanDOMString&     theCurrencySymbol)
00208     {
00209         m_currencySymbol = theCurrencySymbol;
00210     }
00211 
00217     void
00218     setCurrencySymbol(const XalanDOMChar*   theCurrencySymbol)
00219     {
00220         assert(theCurrencySymbol != 0);
00221 
00222         m_currencySymbol = theCurrencySymbol;
00223     }
00224 
00230     void
00231     setDecimalSeparator(XalanDOMChar    theDecimalSeparator)
00232     {
00233         m_decimalSeparator = theDecimalSeparator;
00234     }
00235 
00241     void
00242     setDigit(XalanDOMChar   theDigit)
00243     {
00244         m_digit = theDigit;
00245     }
00246 
00252     void
00253     setGroupingSeparator(XalanDOMChar   theGroupingSeparator)
00254     {
00255         m_groupingSeparator = theGroupingSeparator;
00256     }
00257 
00263     void
00264     setInfinity(const XalanDOMString&   theInfinity)
00265     {
00266         m_infinity = theInfinity;
00267     }
00268 
00274     void
00275     setInfinity(const XalanDOMChar*     theInfinity)
00276     {
00277         assert(theInfinity != 0);
00278 
00279         m_infinity = theInfinity;
00280     }
00281 
00288     void
00289     setInternationalCurrencySymbol(const XalanDOMString&    theInternationalCurrencySymbol)
00290     {
00291         m_internationalCurrencySymbol = theInternationalCurrencySymbol;
00292     }
00293 
00300     void
00301     setInternationalCurrencySymbol(const XalanDOMChar*  theInternationalCurrencySymbol)
00302     {
00303         assert(theInternationalCurrencySymbol != 0);
00304 
00305         m_internationalCurrencySymbol = theInternationalCurrencySymbol;
00306     }
00307 
00313     void
00314     setMinusSign(XalanDOMChar   theMinusSign)
00315     {
00316         m_minusSign = theMinusSign;
00317     }
00318 
00325     void
00326     setMonetaryDecimalSeparator(XalanDOMChar    theMonetaryDecimalSeparator)
00327     {
00328         m_monetaryDecimalSeparator = theMonetaryDecimalSeparator;
00329     }
00330 
00337     void
00338     setNaN(const XalanDOMString&    theNaN)
00339     {
00340         m_NaN = theNaN;
00341     }
00342 
00349     void
00350     setNaN(const XalanDOMChar*  theNaN)
00351     {
00352         assert(theNaN != 0);
00353 
00354         m_NaN = theNaN;
00355     }
00356 
00364     void
00365     setPatternSeparator(XalanDOMChar    thePatternSeparator)
00366     {
00367         m_patternSeparator = thePatternSeparator;
00368     }
00369 
00375     void
00376     setPercent(XalanDOMChar thePercent)
00377     {
00378         m_percent = thePercent;
00379     }
00380 
00386     void
00387     setPerMill(XalanDOMChar thePerMill)
00388     {
00389         m_perMill = thePerMill;
00390     }
00391 
00397     void
00398     setZeroDigit(XalanDOMChar   theZeroDigit)
00399     {
00400         m_zeroDigit = theZeroDigit;
00401     }
00402 
00403     bool
00404     operator==(const XalanDecimalFormatSymbols&     theRHS) const;
00405 
00406     bool
00407     operator!=(const XalanDecimalFormatSymbols&     theRHS) const
00408     {
00409         return !operator==(theRHS);
00410     }
00411 
00412 private:
00413     // not implemented
00414     XalanDecimalFormatSymbols();
00415     XalanDecimalFormatSymbols(const XalanDecimalFormatSymbols&);
00416 
00417     XalanDOMString  m_currencySymbol;
00418 
00419     XalanDOMChar    m_decimalSeparator;
00420     XalanDOMChar    m_digit;
00421     XalanDOMChar    m_groupingSeparator;
00422 
00423     XalanDOMString  m_infinity;
00424     XalanDOMString  m_internationalCurrencySymbol;
00425 
00426     XalanDOMChar    m_minusSign;
00427     XalanDOMChar    m_monetaryDecimalSeparator;
00428 
00429     XalanDOMString  m_NaN;
00430 
00431     XalanDOMChar    m_patternSeparator;
00432     XalanDOMChar    m_percent;
00433     XalanDOMChar    m_perMill;
00434     XalanDOMChar    m_zeroDigit;
00435 };
00436 
00437 
00438 
00439 XALAN_CPP_NAMESPACE_END
00440 
00441 
00442 
00443 #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