Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

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

TraceListenerDefault.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_TraceListenerDefault_HEADER_GUARD) 00017 #define XALAN_TraceListenerDefault_HEADER_GUARD 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include <xalanc/XSLT/XSLTDefinitions.hpp> 00023 00024 00025 00026 // Base class header file... 00027 #include <xalanc/XSLT/TraceListener.hpp> 00028 00029 00030 00031 XALAN_CPP_NAMESPACE_BEGIN 00032 00033 00034 00035 class DOMSupport; 00036 class ElemTemplateElement; 00037 class NodeRefListBase; 00038 class PrintWriter; 00039 00040 00041 00042 class XALAN_XSLT_EXPORT TraceListenerDefault : public TraceListener 00043 { 00044 public: 00045 00046 TraceListenerDefault( 00047 PrintWriter& thePrintWriter, 00048 bool traceTemplates = false, 00049 bool traceElements = false, 00050 bool traceGeneration = false, 00051 bool traceSelection = false); 00052 00053 virtual 00054 ~TraceListenerDefault(); 00055 00056 virtual void 00057 trace(const TracerEvent& ev); 00058 00059 virtual void 00060 selected(const SelectionEvent& ev); 00061 00062 virtual void 00063 generated(const GenerateEvent& ev); 00064 00065 bool 00066 getTraceTemplates() const 00067 { 00068 return m_traceTemplates; 00069 } 00070 00071 void 00072 setTraceTemplates(bool b) 00073 { 00074 m_traceTemplates = b; 00075 } 00076 00077 bool 00078 getTraceElement() const 00079 { 00080 return m_traceElements; 00081 } 00082 00083 void 00084 setTraceElements(bool b) 00085 { 00086 m_traceElements = b; 00087 } 00088 00089 bool 00090 getTraceGeneration() const 00091 { 00092 return m_traceGeneration; 00093 } 00094 00095 void 00096 setTraceGeneration(bool b) 00097 { 00098 m_traceGeneration = b; 00099 } 00100 00101 bool 00102 getTraceSelection() const 00103 { 00104 return m_traceSelection; 00105 } 00106 00107 void 00108 setTraceSelection(bool b) 00109 { 00110 m_traceSelection = b; 00111 } 00112 00113 private: 00114 00115 void 00116 processNodeList(const NodeRefListBase& nl); 00117 00118 void 00119 printNodeInfo(const ElemTemplateElement& node); 00120 00121 00122 // Data members... 00123 PrintWriter& m_printWriter; 00124 00125 bool m_traceTemplates; 00126 00127 bool m_traceElements; 00128 00129 bool m_traceGeneration; 00130 00131 bool m_traceSelection; 00132 }; 00133 00134 00135 00136 XALAN_CPP_NAMESPACE_END 00137 00138 00139 00140 #endif //XALAN_TraceListenerDefault_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.