Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanNumberFormat.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANNUMBERFORMAT_HEADER_GUARD_1357924680)
17 #define XALANNUMBERFORMAT_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
27 
28 
29 
30 XALAN_CPP_NAMESPACE_BEGIN
31 
32 
33 
35 {
36 public:
37 
38  explicit
40 
41  static XalanNumberFormat*
43  {
44  XalanNumberFormat* theInstance;
45 
46  return XalanConstruct(
47  theManager,
48  theInstance,
49  theManager);
50  }
51 
52  virtual
54 
57  {
58  return m_groupingSeparator.getMemoryManager();
59  }
60 
67  virtual XalanDOMString&
68  format(double theValue,
69  XalanDOMString& theResult);
70 
71 
72 
79  virtual XalanDOMString&
80  format(int theValue,
81  XalanDOMString& theResult);
82 
83 
84 
91  virtual XalanDOMString&
92  format(
93  unsigned int theValue,
94  XalanDOMString& theResult);
95 
102  virtual XalanDOMString&
103  format(long theValue,
104  XalanDOMString& theResult);
105 
106 
113  virtual XalanDOMString&
114  format(
115  unsigned long theValue,
116  XalanDOMString& theResult);
117 
123  virtual bool
124  isGroupingUsed() const;
125 
131  virtual void
132  setGroupingUsed(bool bUsed);
133 
139  virtual void
140  setGroupingSize(unsigned long size);
141 
148  virtual void
149  setGroupingSeparator(const XalanDOMString& s);
150 
151 protected:
152 
153  void
154  applyGrouping(
155  const XalanDOMString& value,
156  XalanDOMString& result);
157 
158 private:
159 
160  // Not implemented...
162 
164  operator=(const XalanNumberFormat&);
165 
166  bool
168 
169  // Data members...
170  bool m_isGroupingUsed;
171 
172  XalanDOMString m_groupingSeparator;
173 
174  unsigned long m_groupingSize;
175 
176  static const XalanDOMChar s_defaultGroupingSeparator[];
177 };
178 
179 
180 
181 XALAN_CPP_NAMESPACE_END
182 
183 
184 
185 #endif // XALANNUMBERFORMAT_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