Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ProblemListenerDefault.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2004 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #if !defined(XALAN_PROBLEMLISTENERDEFAULT_HEADER_GUARD)
00017 #define XALAN_PROBLEMLISTENERDEFAULT_HEADER_GUARD
00018 
00019 
00020 
00021 // Base include file.  Must be first.
00022 #include "XSLTDefinitions.hpp"
00023 
00024 
00025 
00026 // Xalan header files.
00027 #include <xalanc/XSLT/ProblemListener.hpp>
00028 
00029 
00030 
00031 XALAN_CPP_NAMESPACE_BEGIN
00032 
00033 
00034 
00038 class XALAN_XSLT_EXPORT ProblemListenerDefault : public ProblemListener
00039 {
00040 public:
00041 
00042     ProblemListenerDefault(PrintWriter*     pw = 0);
00043 
00044     virtual
00045     ~ProblemListenerDefault();
00046 
00047     // These methods are inherited from ProblemListener ...
00048 
00049     virtual void
00050     setPrintWriter(PrintWriter*     pw);
00051 
00052     virtual void
00053     problem(
00054             eProblemSource              where,
00055             eClassification             classification, 
00056             const XalanNode*            sourceNode,
00057             const ElemTemplateElement*  styleNode,
00058             const XalanDOMString&       msg,
00059             const XalanDOMChar*         uri,
00060             int                         lineNo,
00061             int                         charOffset);
00062 
00063     // These methods are new...
00064 
00065     PrintWriter*
00066     getPrintWriter() const
00067     {
00068         return m_pw;
00069     }
00070 
00071     static void
00072     problem(
00073             PrintWriter&                pw,
00074             eProblemSource              where,
00075             eClassification             classification,
00076             const XalanNode*            sourceNode,
00077             const ElemTemplateElement*  styleNode,
00078             const XalanDOMString&       msg,
00079             const XalanDOMChar*         uri,
00080             int                         lineNo,
00081             int                         charOffset);
00082 
00083 private:
00084 
00085     PrintWriter*    m_pw;
00086 };
00087 
00088 
00089 
00090 XALAN_CPP_NAMESPACE_END
00091 
00092 
00093 
00094 #endif  // XALAN_PROBLEMLISTENERDEFAULT_HEADER_GUARD

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.