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 <XalanDOM/XalanDOMString.hpp> 00068 00069 00070 00071 class XALAN_PLATFORMSUPPORT_EXPORT XalanDecimalFormatSymbols 00072 { 00073 public: 00074 00075 // Eventually, this constructor should take a locale to determine 00076 // all of the stuff it needs to know. But locales are implemented 00077 // on all of our platforms yet. 00078 explicit 00079 XalanDecimalFormatSymbols(); 00080 00081 XalanDecimalFormatSymbols(const XalanDecimalFormatSymbols& theSource); 00082 00083 ~XalanDecimalFormatSymbols(); 00084 00085 XalanDecimalFormatSymbols& 00086 operator=(const XalanDecimalFormatSymbols& theRHS); 00087 00093 const XalanDOMString& 00094 getCurrencySymbol() const 00095 { 00096 return m_currencySymbol; 00097 } 00098 00104 XalanDOMChar 00105 getDecimalSeparator() const 00106 { 00107 return m_decimalSeparator; 00108 } 00109 00115 XalanDOMChar 00116 getDigit() const 00117 { 00118 return m_digit; 00119 } 00120 00126 XalanDOMChar 00127 getGroupingSeparator() const 00128 { 00129 return m_groupingSeparator; 00130 } 00131 00137 const XalanDOMString& 00138 getInfinity() const 00139 { 00140 return m_infinity; 00141 } 00142 00148 const XalanDOMString& 00149 getInternationalCurrencySymbol() const 00150 { 00151 return m_internationalCurrencySymbol; 00152 } 00153 00159 XalanDOMChar 00160 getMinusSign() const 00161 { 00162 return m_minusSign; 00163 } 00164 00170 XalanDOMChar 00171 getMonetaryDecimalSeparator() const 00172 { 00173 return m_monetaryDecimalSeparator; 00174 } 00175 00182 const XalanDOMString& 00183 getNaN() const 00184 { 00185 return m_NaN; 00186 } 00187 00194 XalanDOMChar 00195 getPatternSeparator() const 00196 { 00197 return m_patternSeparator; 00198 } 00199 00205 XalanDOMChar 00206 getPercent() const 00207 { 00208 return m_percent; 00209 } 00210 00216 XalanDOMChar 00217 getPerMill() const 00218 { 00219 return m_perMill; 00220 } 00221 00227 XalanDOMChar 00228 getZeroDigit() const 00229 { 00230 return m_zeroDigit; 00231 } 00232 00238 void 00239 setCurrencySymbol(const XalanDOMString& theCurrencySymbol) 00240 { 00241 m_currencySymbol = theCurrencySymbol; 00242 } 00243 00249 void 00250 setDecimalSeparator(XalanDOMChar theDecimalSeparator) 00251 { 00252 m_decimalSeparator = theDecimalSeparator; 00253 } 00254 00260 void 00261 setDigit(XalanDOMChar theDigit) 00262 { 00263 m_digit = theDigit; 00264 } 00265 00271 void 00272 setGroupingSeparator(XalanDOMChar theGroupingSeparator) 00273 { 00274 m_groupingSeparator = theGroupingSeparator; 00275 } 00276 00282 void 00283 setInfinity(const XalanDOMString& theInfinity) 00284 { 00285 m_infinity = theInfinity; 00286 } 00287 00294 void 00295 setInternationalCurrencySymbol(const XalanDOMString& theInternationalCurrencySymbol) 00296 { 00297 m_internationalCurrencySymbol = theInternationalCurrencySymbol; 00298 } 00299 00305 void 00306 setMinusSign(XalanDOMChar theMinusSign) 00307 { 00308 m_minusSign = theMinusSign; 00309 } 00310 00317 void 00318 setMonetaryDecimalSeparator(XalanDOMChar theMonetaryDecimalSeparator) 00319 { 00320 m_monetaryDecimalSeparator = theMonetaryDecimalSeparator; 00321 } 00322 00329 void 00330 setNaN(const XalanDOMString& theNaN) 00331 { 00332 m_NaN = theNaN; 00333 } 00334 00342 void 00343 setPatternSeparator(XalanDOMChar thePatternSeparator) 00344 { 00345 m_patternSeparator = thePatternSeparator; 00346 } 00347 00353 void 00354 setPercent(XalanDOMChar thePercent) 00355 { 00356 m_percent = thePercent; 00357 } 00358 00364 void 00365 setPerMill(XalanDOMChar thePerMill) 00366 { 00367 m_perMill = thePerMill; 00368 } 00369 00375 void 00376 setZeroDigit(XalanDOMChar theZeroDigit) 00377 { 00378 m_zeroDigit = theZeroDigit; 00379 } 00380 00381 private: 00382 00383 XalanDOMString m_currencySymbol; 00384 00385 XalanDOMChar m_decimalSeparator; 00386 XalanDOMChar m_digit; 00387 XalanDOMChar m_groupingSeparator; 00388 00389 XalanDOMString m_infinity; 00390 XalanDOMString m_internationalCurrencySymbol; 00391 00392 XalanDOMChar m_minusSign; 00393 XalanDOMChar m_monetaryDecimalSeparator; 00394 00395 XalanDOMString m_NaN; 00396 00397 XalanDOMChar m_patternSeparator; 00398 XalanDOMChar m_percent; 00399 XalanDOMChar m_perMill; 00400 XalanDOMChar m_zeroDigit; 00401 }; 00402 00403 00404 00405 #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.0 |
|