Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XNumberBase.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(XNUMBERBASE_HEADER_GUARD_1357924680)
17 #define XNUMBERBASE_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
27 
28 
29 
30 // Base class header file.
31 #include <xalanc/XPath/XObject.hpp>
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
40 {
41 public:
42 
44 
45  XNumberBase(const XNumberBase& source);
46 
47  virtual
48  ~XNumberBase();
49 
50  // These methods are inherited from XObject ...
51 
52  virtual const XalanDOMString&
53  getTypeString() const;
54 
55  virtual double
56  num() const = 0;
57 
58  virtual bool
59  boolean() const;
60 
61  virtual const XalanDOMString&
62  str() const = 0;
63 
64  virtual void
65  str(
66  FormatterListener& formatterListener,
67  MemberFunctionPtr function) const = 0;
68 
69 #if !defined(XALAN_NO_USING_DECLARATION)
70  using ParentType::str;
71 #endif
72 
73  virtual double
74  stringLength() const = 0;
75 
76  virtual void
78 
79  virtual void
80  ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const;
81 
82 protected:
83 
87  explicit
88  XNumberBase();
89 
90 private:
91 };
92 
93 
94 
95 XALAN_CPP_NAMESPACE_END
96 
97 
98 
99 #endif // XNUMBERBASE_HEADER_GUARD_1357924680
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
Definition: XObjectTypeCallback.hpp:51
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)=0
Process a callback request for preferred type information.
virtual bool boolean() const
Cast result object to a boolean.
virtual const XalanDOMString & getTypeString() const =0
Given a request type, return the equivalent string.
A SAX-based formatter interface for the XSL processor.
Definition: FormatterListener.hpp:62
virtual double num() const
Cast result object to a number.
Class to hold XPath return types.
Definition: XObject.hpp:61
virtual double stringLength() const =0
Get the length of the string value of the instance.
Definition: XalanDOMString.hpp:42
virtual const XalanDOMString & str() const
Cast result object to a string.
Definition: XNumberBase.hpp:39
XObject ParentType
Definition: XNumberBase.hpp:43
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33

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