00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XUKNOWN_HEADER_GUARD_1357924680) 00019 #define XUKNOWN_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base header file. Must be first. 00024 #include <xalanc/XPath/XPathDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00029 00030 00031 00032 // Base class header file. 00033 #include <xalanc/XPath/XObject.hpp> 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 class XALAN_XPATH_EXPORT XUnknown : public XObject 00042 { 00043 public: 00044 00045 typedef XObject ParentType; 00046 00047 /** 00048 * Perform static initialization. See class XPathInit. 00049 */ 00050 static void 00051 initialize(MemoryManager& theManager); 00052 00053 /** 00054 * Perform static shut down. See class XPathInit. 00055 */ 00056 static void 00057 terminate(); 00058 00059 /** 00060 * Construct an XUnknown object from a string. 00061 * 00062 * @param name The source string. 00063 * @param theMemoryManager The MemoryManager instance. 00064 */ 00065 XUnknown( 00066 const XalanDOMString& name, 00067 MemoryManager& theMemoryManager); 00068 00069 /** 00070 * Construct an XUnknown from another one. 00071 * 00072 * @param source The XUnknown instance to copy. 00073 * @param theMemoryManager The MemoryManager instance. 00074 */ 00075 XUnknown( 00076 const XUnknown& source, 00077 MemoryManager& theMemoryManager); 00078 00079 /** 00080 * Create an XUnknown object from a string. 00081 * 00082 * @param name the source string. 00083 * @param theMemoryManager The MemoryManager instance. 00084 */ 00085 static XUnknown* 00086 create( 00087 const XalanDOMString& name, 00088 MemoryManager& theMemoryManager); 00089 00090 virtual 00091 ~XUnknown(); 00092 00093 // These methods are inherited from XObject ... 00094 virtual const XalanDOMString& 00095 getTypeString() const; 00096 00097 virtual double 00098 num(XPathExecutionContext& executionContext) const; 00099 00100 virtual double 00101 num() const; 00102 00103 virtual bool 00104 boolean(XPathExecutionContext& executionContext) const; 00105 00106 virtual const XalanDOMString& 00107 str(XPathExecutionContext& executionContext) const; 00108 00109 virtual const XalanDOMString& 00110 str() const; 00111 00112 virtual void 00113 str( 00114 XPathExecutionContext& executionContext, 00115 FormatterListener& formatterListener, 00116 MemberFunctionPtr function) const; 00117 00118 virtual void 00119 str( 00120 FormatterListener& formatterListener, 00121 MemberFunctionPtr function) const; 00122 00123 virtual void 00124 str( 00125 XPathExecutionContext& executionContext, 00126 XalanDOMString& theBuffer) const; 00127 00128 virtual void 00129 str(XalanDOMString& theBuffer) const; 00130 00131 virtual double 00132 stringLength(XPathExecutionContext& executionContext) const; 00133 00134 virtual void 00135 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject); 00136 00137 virtual void 00138 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const; 00139 00140 private: 00141 // undefined 00142 XUnknown(const XUnknown& source); 00143 XUnknown(); 00144 00145 XalanDOMString m_value; 00146 00147 static XalanDOMString s_unknownString; 00148 }; 00149 00150 00151 00152 XALAN_CPP_NAMESPACE_END 00153 00154 00155 00156 #endif // XUKNOWN_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|