Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XNumber.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(XNUMBER_HEADER_GUARD_1357924680)
17 #define XNUMBER_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
27 
28 
29 
30 // Base class header file.
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
40 {
41 public:
42 
48  XNumber(double val,
49  MemoryManagerType& theManager);
50 
51  XNumber(const XNumber& source, MemoryManagerType& theManager);
52 
53  virtual
54  ~XNumber();
55 
56  // These methods are inherited from XObject ...
57 
58  virtual double
59  num() const;
60 
61  virtual const XalanDOMString&
62  str() const;
63 
64  virtual void
65  str(
66  FormatterListener& formatterListener,
67  MemberFunctionPtr function) const;
68 
69  virtual void
70  str(XalanDOMString& theBuffer) const;
71 
72  virtual double
73  stringLength() const;
74 
75  // These methods are new to XNumber...
76 
82  void
83  set(double theValue);
84 
85 private:
86  // not implemented
87  XNumber();
88  XNumber(const XNumber&);
89 
90  // Value of the number being represented.
91  double m_value;
92 
93  mutable XalanDOMString m_cachedStringValue;
94 };
95 
96 
97 
98 XALAN_CPP_NAMESPACE_END
99 
100 
101 
102 #endif // XNUMBER_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