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(XALAN_XALANTRANSFORMERPROBLEMLISTENER_HEADER_GUARD) 00019 #define XALAN_XALANTRANSFORMERPROBLEMLISTENER_HEADER_GUARD 00020 00021 00022 00023 00024 // Base include file. Must be first. 00025 #include "XalanTransformerDefinitions.hpp" 00026 00027 00028 00029 #if defined(XALAN_CLASSIC_IOSTREAMS) 00030 class ostream; 00031 #else 00032 #include <iosfwd> 00033 #endif 00034 00035 00036 00037 // Xalan header files. 00038 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00039 00040 00041 00042 #include <xalanc/XSLT/ProblemListenerDefault.hpp> 00043 00044 00045 00046 XALAN_CPP_NAMESPACE_BEGIN 00047 00048 00049 00050 class XALAN_TRANSFORMER_EXPORT XalanTransformerProblemListener : public ProblemListener 00051 { 00052 public: 00053 00054 #if defined(XALAN_NO_STD_NAMESPACE) 00055 typedef ostream StreamType; 00056 #else 00057 typedef std::ostream StreamType; 00058 #endif 00059 00060 XalanTransformerProblemListener( 00061 MemoryManager& theManager, 00062 StreamType* theStream, 00063 PrintWriter* thePrintWriter); 00064 00065 virtual 00066 ~XalanTransformerProblemListener(); 00067 00068 // These methods are inherited from ProblemListener ... 00069 00070 virtual void 00071 setPrintWriter(PrintWriter* pw); 00072 00073 virtual void 00074 problem( 00075 eSource source, 00076 eClassification classification, 00077 const XalanNode* sourceNode, 00078 const ElemTemplateElement* styleNode, 00079 const XalanDOMString& msg, 00080 const XalanDOMChar* uri, 00081 XalanFileLoc lineNo, 00082 XalanFileLoc charOffset); 00083 00084 virtual void 00085 problem( 00086 eSource source, 00087 eClassification classification, 00088 const XalanDOMString& msg, 00089 const Locator* locator, 00090 const XalanNode* sourceNode); 00091 00092 virtual void 00093 problem( 00094 eSource source, 00095 eClassification classification, 00096 const XalanDOMString& msg, 00097 const XalanNode* sourceNode); 00098 00099 private: 00100 00101 //not implemented 00102 XalanTransformerProblemListener(); 00103 XalanTransformerProblemListener(const XalanTransformerProblemListener&); 00104 00105 ProblemListenerDefault m_problemListener; 00106 00107 StreamType* m_warningStream; 00108 00109 XalanDOMString m_warningString; 00110 }; 00111 00112 00113 00114 XALAN_CPP_NAMESPACE_END 00115 00116 00117 00118 #endif // XALAN_XALANTRANSFORMERPROBLEMLISTENER_HEADER_GUARD
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|