Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


XNumberBase.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XNUMBERBASE_HEADER_GUARD_1357924680)
19 #define XNUMBERBASE_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base header file. Must be first.
25 
26 
27 
29 
30 
31 
32 // Base class header file.
33 #include <xalanc/XPath/XObject.hpp>
34 
35 
36 
37 XALAN_CPP_NAMESPACE_BEGIN
38 
39 
40 
42 {
43 public:
44 
46 
47  /**
48  * Construct an XNumberBase object from another.
49  *
50  * @param source The source XNumberBase instance.
51  * @param theMemoryManager The MemoryManager instance.
52  */
54  const XNumberBase& source,
55  MemoryManager& theMemoryManager);
56 
57  virtual
58  ~XNumberBase();
59 
60  // These methods are inherited from XObject ...
61 
62  virtual const XalanDOMString&
63  getTypeString() const;
64 
65  virtual double
66  num(XPathExecutionContext& executionContext) const = 0;
67 
68  using ParentType::num;
69 
70  virtual bool
71  boolean(XPathExecutionContext& executionContext) const;
72 
73  virtual const XalanDOMString&
74  str(XPathExecutionContext& executionContext) const = 0;
75 
76  virtual const XalanDOMString&
77  str() const = 0;
78 
79  virtual void
80  str(
81  XPathExecutionContext& executionContext,
82  FormatterListener& formatterListener,
83  MemberFunctionPtr function) const = 0;
84 
85  virtual void
86  str(
87  FormatterListener& formatterListener,
88  MemberFunctionPtr function) const = 0;
89 
90  virtual void
91  str(
92  XPathExecutionContext& executionContext,
93  XalanDOMString& theBuffer) const = 0;
94 
95  virtual void
96  str(XalanDOMString& theBuffer) const = 0;
97 
98  virtual double
99  stringLength(XPathExecutionContext& executionContext) const = 0;
100 
101  virtual void
103 
104  virtual void
105  ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const;
106 
107 protected:
108 
109  /**
110  * Constructor for derived classes
111  *
112  * @param theMemoryManager The MemoryManager instance.
113  */
114  XNumberBase(MemoryManager& theMemoryManager);
115 
116 private:
117 };
118 
119 
120 
121 XALAN_CPP_NAMESPACE_END
122 
123 
124 
125 #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...
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)=0
Process a callback request for preferred type information.
virtual double num() const
Cast result object to a number.
virtual const XalanDOMString & getTypeString() const =0
Given a request type, return the equivalent string.
virtual bool boolean(XPathExecutionContext &executionContext) const =0
Cast result object to a boolean.
A SAX-based formatter interface for the XSL processor.
Class to hold XPath return types.
Definition: XObject.hpp:63
virtual double stringLength(XPathExecutionContext &executionContext) const =0
Get the length of the string value of the instance.
XObject ParentType
Definition: XNumberBase.hpp:45
#define XALAN_XPATH_EXPORT
virtual const XalanDOMString & str() const =0
Cast result object to a string.

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.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo