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(XPATHCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680) 00019 #define XPATHCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XPath/XPathDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/PlatformSupport/XalanDOMStringCache.hpp> 00029 #include <xalanc/PlatformSupport/XalanDOMStringPool.hpp> 00030 00031 00032 00033 // Base class header file... 00034 #include <xalanc/XPath/XPathConstructionContext.hpp> 00035 00036 00037 00038 XALAN_CPP_NAMESPACE_BEGIN 00039 00040 00041 00042 /** 00043 * 00044 * An default implementation of an abtract class which provides support for 00045 * constructing the internal representation of an XPath. 00046 * 00047 */ 00048 class XALAN_XPATH_EXPORT XPathConstructionContextDefault : public XPathConstructionContext 00049 { 00050 public: 00051 00052 /* 00053 * Construct an instance. 00054 */ 00055 XPathConstructionContextDefault(MemoryManager& theManager XALAN_DEFAULT_MEMMGR); 00056 00057 static XPathConstructionContextDefault* 00058 create(MemoryManager& theManager); 00059 00060 virtual 00061 ~XPathConstructionContextDefault(); 00062 00063 00064 // These interfaces are inherited from XPathConstructionContext... 00065 virtual void 00066 problem( 00067 eSource source, 00068 eClassification classification, 00069 const XalanDOMString& msg, 00070 const Locator* locator, 00071 const XalanNode* sourceNode); 00072 00073 virtual void 00074 problem( 00075 eSource source, 00076 eClassification classification, 00077 const XalanDOMString& msg, 00078 const XalanNode* sourceNode); 00079 00080 virtual void 00081 reset(); 00082 00083 virtual const XalanDOMString& 00084 getPooledString(const XalanDOMString& theString); 00085 00086 virtual const XalanDOMString& 00087 getPooledString( 00088 const XalanDOMChar* theString, 00089 XalanDOMString::size_type theLength = XalanDOMString::npos); 00090 00091 virtual XalanDOMString& 00092 getCachedString(); 00093 00094 virtual bool 00095 releaseCachedString(XalanDOMString& theString); 00096 00097 private: 00098 00099 XalanDOMStringPool m_stringPool; 00100 00101 XalanDOMStringCache m_stringCache; 00102 }; 00103 00104 00105 00106 XALAN_CPP_NAMESPACE_END 00107 00108 00109 00110 #endif // XPATHCONSTRUCTIONCONTEXTDEFAULT_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 |
|