Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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 #include <xalanc/Include/XalanMemoryManagement.hpp>
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             MemoryManagerType& theManager XALAN_DEFAULT_MEMMGR);
00053 
00054     virtual
00055     ~TraceListenerDefault();
00056 
00057     virtual void
00058     trace(const TracerEvent&    ev);
00059 
00060     virtual void
00061     selected(const SelectionEvent&  ev);
00062 
00063     virtual void
00064     generated(const GenerateEvent&  ev);
00065 
00066     bool
00067     getTraceTemplates() const
00068     {
00069         return m_traceTemplates;
00070     }
00071 
00072     void
00073     setTraceTemplates(bool  b)
00074     {
00075         m_traceTemplates = b;
00076     }
00077 
00078     bool
00079     getTraceElement() const
00080     {
00081         return m_traceElements;
00082     }
00083 
00084     void
00085     setTraceElements(bool   b)
00086     {
00087         m_traceElements = b;
00088     }
00089 
00090     bool
00091     getTraceGeneration() const
00092     {
00093         return m_traceGeneration;
00094     }
00095 
00096     void
00097     setTraceGeneration(bool     b)
00098     {
00099         m_traceGeneration = b;
00100     }
00101 
00102     bool
00103     getTraceSelection() const
00104     {
00105         return m_traceSelection;
00106     }
00107 
00108     void
00109     setTraceSelection(bool  b)
00110     {
00111         m_traceSelection = b;
00112     }
00113 
00114 private:
00115 
00116     void
00117     processNodeList(const NodeRefListBase&  nl);
00118 
00119     void
00120     printNodeInfo(const ElemTemplateElement&    node);
00121 
00122 
00123     // Data members...
00124     PrintWriter&        m_printWriter;
00125 
00126     bool                m_traceTemplates;
00127 
00128     bool                m_traceElements;
00129 
00130     bool                m_traceGeneration;
00131 
00132     bool                m_traceSelection;
00133 
00134     MemoryManagerType&  m_memoryManager;
00135 };
00136 
00137 
00138 
00139 XALAN_CPP_NAMESPACE_END
00140 
00141 
00142 
00143 #endif //XALAN_TraceListenerDefault_HEADER_GUARD 

Interpreting class diagrams

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

dot

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

Apache Logo