00001 /* 00002 * The Apache Software License, Version 1.1 00003 * 00004 * 00005 * Copyright (c) 1999-2004 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 <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00064 00065 00066 00067 #include <cassert> 00068 00069 00070 00071 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00072 00073 00074 00075 XALAN_CPP_NAMESPACE_BEGIN 00076 00077 00078 00079 class XALAN_PLATFORMSUPPORT_EXPORT XalanDecimalFormatSymbols 00080 { 00081 public: 00082 00083 // Eventually, this constructor should take a locale to determine 00084 // all of the stuff it needs to know. But locales are implemented 00085 // on all of our platforms yet. 00086 explicit 00087 XalanDecimalFormatSymbols(); 00088 00089 XalanDecimalFormatSymbols(const XalanDecimalFormatSymbols& theSource); 00090 00091 ~XalanDecimalFormatSymbols(); 00092 00093 XalanDecimalFormatSymbols& 00094 operator=(const XalanDecimalFormatSymbols& theRHS); 00095 00101 const XalanDOMString& 00102 getCurrencySymbol() const 00103 { 00104 return m_currencySymbol; 00105 } 00106 00112 XalanDOMChar 00113 getDecimalSeparator() const 00114 { 00115 return m_decimalSeparator; 00116 } 00117 00123 XalanDOMChar 00124 getDigit() const 00125 { 00126 return m_digit; 00127 } 00128 00134 XalanDOMChar 00135 getGroupingSeparator() const 00136 { 00137 return m_groupingSeparator; 00138 } 00139 00145 const XalanDOMString& 00146 getInfinity() const 00147 { 00148 return m_infinity; 00149 } 00150 00156 const XalanDOMString& 00157 getInternationalCurrencySymbol() const 00158 { 00159 return m_internationalCurrencySymbol; 00160 } 00161 00167 XalanDOMChar 00168 getMinusSign() const 00169 { 00170 return m_minusSign; 00171 } 00172 00178 XalanDOMChar 00179 getMonetaryDecimalSeparator() const 00180 { 00181 return m_monetaryDecimalSeparator; 00182 } 00183 00190 const XalanDOMString& 00191 getNaN() const 00192 { 00193 return m_NaN; 00194 } 00195 00202 XalanDOMChar 00203 getPatternSeparator() const 00204 { 00205 return m_patternSeparator; 00206 } 00207 00213 XalanDOMChar 00214 getPercent() const 00215 { 00216 return m_percent; 00217 } 00218 00224 XalanDOMChar 00225 getPerMill() const 00226 { 00227 return m_perMill; 00228 } 00229 00235 XalanDOMChar 00236 getZeroDigit() const 00237 { 00238 return m_zeroDigit; 00239 } 00240 00246 void 00247 setCurrencySymbol(const XalanDOMString& theCurrencySymbol) 00248 { 00249 m_currencySymbol = theCurrencySymbol; 00250 } 00251 00257 void 00258 setCurrencySymbol(const XalanDOMChar* theCurrencySymbol) 00259 { 00260 assert(theCurrencySymbol != 0); 00261 00262 m_currencySymbol = theCurrencySymbol; 00263 } 00264 00270 void 00271 setDecimalSeparator(XalanDOMChar theDecimalSeparator) 00272 { 00273 m_decimalSeparator = theDecimalSeparator; 00274 } 00275 00281 void 00282 setDigit(XalanDOMChar theDigit) 00283 { 00284 m_digit = theDigit; 00285 } 00286 00292 void 00293 setGroupingSeparator(XalanDOMChar theGroupingSeparator) 00294 { 00295 m_groupingSeparator = theGroupingSeparator; 00296 } 00297 00303 void 00304 setInfinity(const XalanDOMString& theInfinity) 00305 { 00306 m_infinity = theInfinity; 00307 } 00308 00314 void 00315 setInfinity(const XalanDOMChar* theInfinity) 00316 { 00317 assert(theInfinity != 0); 00318 00319 m_infinity = theInfinity; 00320 } 00321 00328 void 00329 setInternationalCurrencySymbol(const XalanDOMString& theInternationalCurrencySymbol) 00330 { 00331 m_internationalCurrencySymbol = theInternationalCurrencySymbol; 00332 } 00333 00340 void 00341 setInternationalCurrencySymbol(const XalanDOMChar* theInternationalCurrencySymbol) 00342 { 00343 assert(theInternationalCurrencySymbol != 0); 00344 00345 m_internationalCurrencySymbol = theInternationalCurrencySymbol; 00346 } 00347 00353 void 00354 setMinusSign(XalanDOMChar theMinusSign) 00355 { 00356 m_minusSign = theMinusSign; 00357 } 00358 00365 void 00366 setMonetaryDecimalSeparator(XalanDOMChar theMonetaryDecimalSeparator) 00367 { 00368 m_monetaryDecimalSeparator = theMonetaryDecimalSeparator; 00369 } 00370 00377 void 00378 setNaN(const XalanDOMString& theNaN) 00379 { 00380 m_NaN = theNaN; 00381 } 00382 00389 void 00390 setNaN(const XalanDOMChar* theNaN) 00391 { 00392 assert(theNaN != 0); 00393 00394 m_NaN = theNaN; 00395 } 00396 00404 void 00405 setPatternSeparator(XalanDOMChar thePatternSeparator) 00406 { 00407 m_patternSeparator = thePatternSeparator; 00408 } 00409 00415 void 00416 setPercent(XalanDOMChar thePercent) 00417 { 00418 m_percent = thePercent; 00419 } 00420 00426 void 00427 setPerMill(XalanDOMChar thePerMill) 00428 { 00429 m_perMill = thePerMill; 00430 } 00431 00437 void 00438 setZeroDigit(XalanDOMChar theZeroDigit) 00439 { 00440 m_zeroDigit = theZeroDigit; 00441 } 00442 00443 bool 00444 operator==(const XalanDecimalFormatSymbols& theRHS) const; 00445 00446 bool 00447 operator!=(const XalanDecimalFormatSymbols& theRHS) const 00448 { 00449 return !operator==(theRHS); 00450 } 00451 00452 private: 00453 00454 XalanDOMString m_currencySymbol; 00455 00456 XalanDOMChar m_decimalSeparator; 00457 XalanDOMChar m_digit; 00458 XalanDOMChar m_groupingSeparator; 00459 00460 XalanDOMString m_infinity; 00461 XalanDOMString m_internationalCurrencySymbol; 00462 00463 XalanDOMChar m_minusSign; 00464 XalanDOMChar m_monetaryDecimalSeparator; 00465 00466 XalanDOMString m_NaN; 00467 00468 XalanDOMChar m_patternSeparator; 00469 XalanDOMChar m_percent; 00470 XalanDOMChar m_perMill; 00471 XalanDOMChar m_zeroDigit; 00472 }; 00473 00474 00475 00476 XALAN_CPP_NAMESPACE_END 00477 00478 00479 00480 #endif // XALANDECIMALFORMATSYMBOLS_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.7 |
|