Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XUnknown.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(XUKNOWN_HEADER_GUARD_1357924680)
17 #define XUKNOWN_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 
48  static void
49  initialize(MemoryManagerType& theManager);
50 
54  static void
55  terminate();
56 
62  XUnknown(const XalanDOMString& name, MemoryManagerType& theManager);
63 
64  XUnknown(const XUnknown& source, MemoryManagerType& theManager);
65 
66  static XUnknown*
67  create(const XalanDOMString& name, MemoryManagerType& theManager);
68 
69  virtual
70  ~XUnknown();
71 
72  // These methods are inherited from XObject ...
73  virtual const XalanDOMString&
74  getTypeString() const;
75 
76  virtual double
77  num() const;
78 
79  virtual bool
80  boolean() const;
81 
82  virtual const XalanDOMString&
83  str() const;
84 
85  virtual void
86  str(
87  FormatterListener& formatterListener,
88  MemberFunctionPtr function) const;
89 
90 #if !defined(XALAN_NO_USING_DECLARATION)
91  using ParentType::str;
92 #endif
93 
94  virtual double
95  stringLength() const;
96 
97  virtual void
99 
100  virtual void
101  ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const;
102 
103 private:
104  // undefined
105  XUnknown(const XUnknown& source);
106  XUnknown();
107 
108  XalanDOMString m_value;
109 
110  static XalanDOMString s_unknownString;
111 };
112 
113 
114 
115 XALAN_CPP_NAMESPACE_END
116 
117 
118 
119 #endif // XUKNOWN_HEADER_GUARD_1357924680
static void terminate()
Perform static shut down.
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
Definition: XObjectTypeCallback.hpp:51
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
virtual void ProcessXObjectTypeCallback(XObjectTypeCallback &theCallbackObject)=0
Process a callback request for preferred type information.
virtual bool boolean() const
Cast result object to a boolean.
XObject ParentType
Definition: XUnknown.hpp:43
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
static void initialize(MemoryManagerType &theManager)
Perform static initialization.
Definition: XUnknown.hpp:39
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.
#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