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(XSTRINGBASE_HEADER_GUARD_1357924680) 00019 #define XSTRINGBASE_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base header file. Must be first. 00024 #include <xalanc/XPath/XPathDefinitions.hpp> 00025 00026 00027 00028 // Base class header file. 00029 #include <xalanc/XPath/XObject.hpp> 00030 #include <xalanc/XPath/XObjectResultTreeFragProxy.hpp> 00031 00032 00033 00034 XALAN_CPP_NAMESPACE_BEGIN 00035 00036 00037 00038 class XPathEnvSupport; 00039 00040 00041 00042 class XALAN_XPATH_EXPORT XStringBase : public XObject 00043 { 00044 public: 00045 00046 typedef XObject ParentType; 00047 00048 /** 00049 * Construct an XStringBase object. 00050 * 00051 * @param theMemoryManager The MemoryManager instance. 00052 */ 00053 XStringBase(MemoryManager& theMemoryManager); 00054 00055 /** 00056 * Construct an XStringBase object. 00057 * 00058 * @param theMemoryManager The MemoryManager instance. 00059 * @param theExecutionContext The current XPathExecutionContext. 00060 */ 00061 XStringBase( 00062 MemoryManager& theMemoryManager, 00063 XPathExecutionContext& theExecutionContext); 00064 00065 /** 00066 * Construct an XStringBase object from another. 00067 * 00068 * @param source The source XStringBase instance. 00069 * @param theMemoryManager The MemoryManager instance. 00070 */ 00071 XStringBase( 00072 const XStringBase& source, 00073 MemoryManager& theMemoryManager); 00074 00075 virtual 00076 ~XStringBase(); 00077 00078 00079 // These methods are inherited from XObject ... 00080 00081 virtual const XalanDOMString& 00082 getTypeString() const; 00083 00084 virtual double 00085 num(XPathExecutionContext& executionContext) const; 00086 00087 using ParentType::num; 00088 00089 virtual bool 00090 boolean(XPathExecutionContext& executionContext) const; 00091 00092 using ParentType::str; 00093 00094 virtual const XalanDOMString& 00095 str(XPathExecutionContext& executionContext) const = 0; 00096 00097 virtual const XalanDOMString& 00098 str() const = 0; 00099 00100 virtual void 00101 str( 00102 XPathExecutionContext& executionContext, 00103 FormatterListener& formatterListener, 00104 MemberFunctionPtr function) const = 0; 00105 00106 virtual void 00107 str( 00108 FormatterListener& formatterListener, 00109 MemberFunctionPtr function) const = 0; 00110 00111 virtual void 00112 str( 00113 XPathExecutionContext& executionContext, 00114 XalanDOMString& theBuffer) const = 0; 00115 00116 virtual void 00117 str(XalanDOMString& theBuffer) const = 0; 00118 00119 virtual double 00120 stringLength(XPathExecutionContext& executionContext) const = 0; 00121 00122 virtual const XalanDocumentFragment& 00123 rtree() const; 00124 00125 virtual void 00126 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject); 00127 00128 virtual void 00129 ProcessXObjectTypeCallback(XObjectTypeCallback& theCallbackObject) const; 00130 00131 private: 00132 00133 friend class XObjectResultTreeFragProxyText; 00134 00135 // Not implemented 00136 XStringBase(const XStringBase& source); 00137 00138 XStringBase(); 00139 00140 mutable double m_cachedNumberValue; 00141 00142 mutable XObjectResultTreeFragProxy m_resultTreeFrag; 00143 }; 00144 00145 00146 00147 XALAN_CPP_NAMESPACE_END 00148 00149 00150 00151 #endif // XSTRINGBASE_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 |
|