Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

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

XalanNumberFormat.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(XALANNUMBERFORMAT_HEADER_GUARD_1357924680) 00017 #define XALANNUMBERFORMAT_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00023 00024 00025 00026 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00027 00028 00029 00030 XALAN_CPP_NAMESPACE_BEGIN 00031 00032 00033 00034 class XALAN_PLATFORMSUPPORT_EXPORT XalanNumberFormat 00035 { 00036 public: 00037 00038 explicit 00039 XalanNumberFormat(); 00040 00041 virtual 00042 ~XalanNumberFormat(); 00043 00050 virtual XalanDOMString 00051 format(double theValue); 00052 00059 virtual void 00060 format( 00061 double theValue, 00062 XalanDOMString& theResult); 00063 00070 virtual XalanDOMString 00071 format(int theValue); 00072 00079 virtual void 00080 format( 00081 int theValue, 00082 XalanDOMString& theResult); 00083 00090 virtual XalanDOMString 00091 format(unsigned int theValue); 00092 00099 virtual void 00100 format( 00101 unsigned int theValue, 00102 XalanDOMString& theResult); 00103 00110 virtual XalanDOMString 00111 format(long theValue); 00112 00119 virtual void 00120 format( 00121 long theValue, 00122 XalanDOMString& theResult); 00123 00130 virtual XalanDOMString 00131 format(unsigned long theValue); 00132 00139 virtual void 00140 format( 00141 unsigned long theValue, 00142 XalanDOMString& theResult); 00143 00149 virtual bool 00150 isGroupingUsed() const; 00151 00157 virtual void 00158 setGroupingUsed(bool bUsed); 00159 00165 virtual void 00166 setGroupingSize(unsigned long size); 00167 00174 virtual void 00175 setGroupingSeparator(const XalanDOMString& s); 00176 00177 protected: 00178 00179 void 00180 applyGrouping( 00181 const XalanDOMString& value, 00182 XalanDOMString& result); 00183 00184 private: 00185 00186 // Not implemented... 00187 XalanNumberFormat(const XalanNumberFormat&); 00188 00189 XalanNumberFormat& 00190 operator=(const XalanNumberFormat&); 00191 00192 bool 00193 operator==(const XalanNumberFormat&); 00194 00195 // Data members... 00196 bool m_isGroupingUsed; 00197 00198 XalanDOMString m_groupingSeparator; 00199 00200 unsigned long m_groupingSize; 00201 00202 static const XalanDOMChar s_defaultGroupingSeparator[]; 00203 }; 00204 00205 00206 00207 XALAN_CPP_NAMESPACE_END 00208 00209 00210 00211 #endif // XALANNUMBERFORMAT_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.