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(EXECUTIONCONTEXT_HEADER_GUARD_1357924680) 00019 #define EXECUTIONCONTEXT_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/Include/XalanMemoryManagement.hpp> 00029 00030 00031 00032 #include "xalanc/PlatformSupport/ProblemListenerBase.hpp" 00033 00034 00035 00036 XALAN_DECLARE_XERCES_CLASS(Locator) 00037 00038 00039 00040 XALAN_CPP_NAMESPACE_BEGIN 00041 00042 00043 00044 typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType; 00045 00046 00047 00048 class XalanDOMString; 00049 class XalanNode; 00050 class XalanText; 00051 00052 00053 00054 // 00055 // An abstract class which provides support for execution. 00056 // 00057 class XALAN_PLATFORMSUPPORT_EXPORT ExecutionContext : public ProblemListenerBase 00058 { 00059 public: 00060 00061 ExecutionContext(MemoryManager& theMemoryManager); 00062 00063 virtual 00064 ~ExecutionContext(); 00065 00066 00067 // These interfaces are inherited from ProblemListenerBase 00068 virtual void 00069 problem( 00070 eSource source, 00071 eClassification classification, 00072 const XalanDOMString& msg, 00073 const Locator* locator, 00074 const XalanNode* sourceNode) = 0; 00075 00076 virtual void 00077 problem( 00078 eSource source, 00079 eClassification classification, 00080 const XalanDOMString& msg, 00081 const XalanNode* sourceNode) = 0; 00082 00083 bool 00084 hasPreserveOrStripSpaceConditions() const 00085 { 00086 return m_hasPreserveOrStripConditions; 00087 } 00088 00089 /** 00090 * Determine if a text node should be stripped from the source tree, 00091 * as if it weren't there. 00092 * 00093 * @param textNode text node from the source tree 00094 * @return true if the text node should be stripped 00095 */ 00096 virtual bool 00097 shouldStripSourceNode(const XalanText& node) = 0; 00098 00099 MemoryManager& 00100 getMemoryManager() const 00101 { 00102 return m_memoryManager; 00103 } 00104 00105 MemoryManager& 00106 getExceptionMemoryManager() const 00107 { 00108 return XalanMemoryManager::getExceptionMemoryManager(m_memoryManager); 00109 } 00110 00111 protected: 00112 00113 MemoryManager& m_memoryManager; 00114 00115 bool m_hasPreserveOrStripConditions; 00116 }; 00117 00118 00119 00120 XALAN_CPP_NAMESPACE_END 00121 00122 00123 00124 #endif // EXECUTIONCONTEXT_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 |
|