00001 /* 00002 * The Apache Software License, Version 1.1 00003 * 00004 * 00005 * Copyright (c) 1999 The Apache Software Foundation. All rights 00006 * reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions 00010 * are met: 00011 * 00012 * 1. Redistributions of source code must retain the above copyright 00013 * notice, this list of conditions and the following disclaimer. 00014 * 00015 * 2. Redistributions in binary form must reproduce the above copyright 00016 * notice, this list of conditions and the following disclaimer in 00017 * the documentation and/or other materials provided with the 00018 * distribution. 00019 * 00020 * 3. The end-user documentation included with the redistribution, 00021 * if any, must include the following acknowledgment: 00022 * "This product includes software developed by the 00023 * Apache Software Foundation (http://www.apache.org/)." 00024 * Alternately, this acknowledgment may appear in the software itself, 00025 * if and wherever such third-party acknowledgments normally appear. 00026 * 00027 * 4. The names "Xalan" and "Apache Software Foundation" must 00028 * not be used to endorse or promote products derived from this 00029 * software without prior written permission. For written 00030 * permission, please contact apache@apache.org. 00031 * 00032 * 5. Products derived from this software may not be called "Apache", 00033 * nor may "Apache" appear in their name, without prior written 00034 * permission of the Apache Software Foundation. 00035 * 00036 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 00037 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00038 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00039 * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 00040 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00041 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00042 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 00043 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00044 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00045 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00046 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00047 * SUCH DAMAGE. 00048 * ==================================================================== 00049 * 00050 * This software consists of voluntary contributions made by many 00051 * individuals on behalf of the Apache Software Foundation and was 00052 * originally based on software copyright (c) 1999, International 00053 * Business Machines, Inc., http://www.ibm.com. For more 00054 * information on the Apache Software Foundation, please see 00055 * <http://www.apache.org/>. 00056 */ 00057 #if !defined(XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680) 00058 #define XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680 00059 00060 00061 00062 // Base include file. Must be first. 00063 #include <PlatformSupport/PlatformSupportDefinitions.hpp> 00064 00065 00066 00067 #include <cassert> 00068 00069 00070 00071 #include <XalanDOM/XalanDOMString.hpp> 00072 00073 00074 00075 class XALAN_PLATFORMSUPPORT_EXPORT XalanDecimalFormatSymbols 00076 { 00077 public: 00078 00079 // Eventually, this constructor should take a locale to determine 00080 // all of the stuff it needs to know. But locales are implemented 00081 // on all of our platforms yet. 00082 explicit 00083 XalanDecimalFormatSymbols(); 00084 00085 XalanDecimalFormatSymbols(const XalanDecimalFormatSymbols& theSource); 00086 00087 ~XalanDecimalFormatSymbols(); 00088 00089 XalanDecimalFormatSymbols& 00090 operator=(const XalanDecimalFormatSymbols& theRHS); 00091 00097 const XalanDOMString& 00098 getCurrencySymbol() const 00099 { 00100 return m_currencySymbol; 00101 } 00102 00108 XalanDOMChar 00109 getDecimalSeparator() const 00110 { 00111 return m_decimalSeparator; 00112 } 00113 00119 XalanDOMChar 00120 getDigit() const 00121 { 00122 return m_digit; 00123 } 00124 00130 XalanDOMChar 00131 getGroupingSeparator() const 00132 { 00133 return m_groupingSeparator; 00134 } 00135 00141 const XalanDOMString& 00142 getInfinity() const 00143 { 00144 return m_infinity; 00145 } 00146 00152 const XalanDOMString& 00153 getInternationalCurrencySymbol() const 00154 { 00155 return m_internationalCurrencySymbol; 00156 } 00157 00163 XalanDOMChar 00164 getMinusSign() const 00165 { 00166 return m_minusSign; 00167 } 00168 00174 XalanDOMChar 00175 getMonetaryDecimalSeparator() const 00176 { 00177 return m_monetaryDecimalSeparator; 00178 } 00179 00186 const XalanDOMString& 00187 getNaN() const 00188 { 00189 return m_NaN; 00190 } 00191 00198 XalanDOMChar 00199 getPatternSeparator() const 00200 { 00201 return m_patternSeparator; 00202 } 00203 00209 XalanDOMChar 00210 getPercent() const 00211 { 00212 return m_percent; 00213 } 00214 00220 XalanDOMChar 00221 getPerMill() const 00222 { 00223 return m_perMill; 00224 } 00225 00231 XalanDOMChar 00232 getZeroDigit() const 00233 { 00234 return m_zeroDigit; 00235 } 00236 00242 void 00243 setCurrencySymbol(const XalanDOMString& theCurrencySymbol) 00244 { 00245 m_currencySymbol = theCurrencySymbol; 00246 } 00247 00253 void 00254 setCurrencySymbol(const XalanDOMChar* theCurrencySymbol) 00255 { 00256 assert(theCurrencySymbol != 0); 00257 00258 m_currencySymbol = theCurrencySymbol; 00259 } 00260 00266 void 00267 setDecimalSeparator(XalanDOMChar theDecimalSeparator) 00268 { 00269 m_decimalSeparator = theDecimalSeparator; 00270 } 00271 00277 void 00278 setDigit(XalanDOMChar theDigit) 00279 { 00280 m_digit = theDigit; 00281 } 00282 00288 void 00289 setGroupingSeparator(XalanDOMChar theGroupingSeparator) 00290 { 00291 m_groupingSeparator = theGroupingSeparator; 00292 } 00293 00299 void 00300 setInfinity(const XalanDOMString& theInfinity) 00301 { 00302 m_infinity = theInfinity; 00303 } 00304 00310 void 00311 setInfinity(const XalanDOMChar* theInfinity) 00312 { 00313 assert(theInfinity != 0); 00314 00315 m_infinity = theInfinity; 00316 } 00317 00324 void 00325 setInternationalCurrencySymbol(const XalanDOMString& theInternationalCurrencySymbol) 00326 { 00327 m_internationalCurrencySymbol = theInternationalCurrencySymbol; 00328 } 00329 00336 void 00337 setInternationalCurrencySymbol(const XalanDOMChar* theInternationalCurrencySymbol) 00338 { 00339 assert(theInternationalCurrencySymbol != 0); 00340 00341 m_internationalCurrencySymbol = theInternationalCurrencySymbol; 00342 } 00343 00349 void 00350 setMinusSign(XalanDOMChar theMinusSign) 00351 { 00352 m_minusSign = theMinusSign; 00353 } 00354 00361 void 00362 setMonetaryDecimalSeparator(XalanDOMChar theMonetaryDecimalSeparator) 00363 { 00364 m_monetaryDecimalSeparator = theMonetaryDecimalSeparator; 00365 } 00366 00373 void 00374 setNaN(const XalanDOMString& theNaN) 00375 { 00376 m_NaN = theNaN; 00377 } 00378 00385 void 00386 setNaN(const XalanDOMChar* theNaN) 00387 { 00388 assert(theNaN != 0); 00389 00390 m_NaN = theNaN; 00391 } 00392 00400 void 00401 setPatternSeparator(XalanDOMChar thePatternSeparator) 00402 { 00403 m_patternSeparator = thePatternSeparator; 00404 } 00405 00411 void 00412 setPercent(XalanDOMChar thePercent) 00413 { 00414 m_percent = thePercent; 00415 } 00416 00422 void 00423 setPerMill(XalanDOMChar thePerMill) 00424 { 00425 m_perMill = thePerMill; 00426 } 00427 00433 void 00434 setZeroDigit(XalanDOMChar theZeroDigit) 00435 { 00436 m_zeroDigit = theZeroDigit; 00437 } 00438 00439 private: 00440 00441 XalanDOMString m_currencySymbol; 00442 00443 XalanDOMChar m_decimalSeparator; 00444 XalanDOMChar m_digit; 00445 XalanDOMChar m_groupingSeparator; 00446 00447 XalanDOMString m_infinity; 00448 XalanDOMString m_internationalCurrencySymbol; 00449 00450 XalanDOMChar m_minusSign; 00451 XalanDOMChar m_monetaryDecimalSeparator; 00452 00453 XalanDOMString m_NaN; 00454 00455 XalanDOMChar m_patternSeparator; 00456 XalanDOMChar m_percent; 00457 XalanDOMChar m_perMill; 00458 XalanDOMChar m_zeroDigit; 00459 }; 00460 00461 00462 00463 #endif // XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSL Transformer Version 1.1 |
|