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  

ICUXalanNumberFormatProxy.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(ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680)
00017 #define ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 // Base header file.  Must be first.
00022 #include <xalanc/ICUBridge/ICUBridgeDefinitions.hpp>
00023 
00024 
00025 
00026 #include <xalanc/PlatformSupport/XalanNumberFormat.hpp>
00027 
00028 
00029 
00030 #include <unicode/decimfmt.h>
00031 
00032 
00033 
00034 XALAN_CPP_NAMESPACE_BEGIN
00035 
00036 
00037 
00038 // Class that implements the XSLT function format-number using the ICU.
00039 //
00040 class XALAN_ICUBRIDGE_EXPORT ICUXalanNumberFormatProxy : public XalanNumberFormat
00041 {
00042 public:
00043 
00044     explicit
00045     ICUXalanNumberFormatProxy(MemoryManagerType& theManager);
00046 
00047     virtual
00048     ~ICUXalanNumberFormatProxy();
00049 
00050     virtual XalanDOMString&
00051     format(double           theValue,
00052             XalanDOMString& theResult);
00053 
00054 
00055     virtual XalanDOMString&
00056     format(int              theValue,
00057             XalanDOMString& theResult);
00058 
00059 
00060     virtual XalanDOMString&
00061     format(unsigned int     theValue, XalanDOMString& theResult);
00062 
00063 
00064     virtual XalanDOMString&
00065     format(long     theValue, XalanDOMString& theResult);
00066 
00067 
00068     virtual XalanDOMString&
00069     format(unsigned long    theValue, XalanDOMString& theResult);
00070 
00071 
00072     virtual bool
00073     isGroupingUsed() const;
00074 
00075     virtual void
00076     setGroupingUsed(bool bUsed);
00077 
00078     virtual void
00079     setGroupingSize(unsigned long   size);
00080 
00081     virtual void
00082     setGroupingSeparator(const XalanDOMString&  s);
00083 
00084 private:
00085 
00086 #if defined(XALAN_HAS_CPP_NAMESPACE)
00087     typedef U_ICU_NAMESPACE::DecimalFormat      DecimalFormatType;
00088 #else
00089     typedef DecimalFormat*                      DecimalFormatType;
00090 #endif
00091 
00092     DecimalFormatType*      m_decimalFormat;
00093 
00094 };
00095 
00096 
00097 
00098 XALAN_CPP_NAMESPACE_END
00099 
00100 
00101 
00102 #endif  // ICUXALANNUMBERFORMATPROXY_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