Xalan-C++ API Reference 1.12.0
TraceListenerDefault.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(XALAN_TraceListenerDefault_HEADER_GUARD)
19#define XALAN_TraceListenerDefault_HEADER_GUARD
20
21
22
23// Base include file. Must be first.
25
26
27
28// Base class header file...
30
32
33
34
35namespace XALAN_CPP_NAMESPACE {
36
37
38
39class DOMSupport;
40class ElemTemplateElement;
41class ExecutionContext;
42class NodeRefListBase;
43class PrintWriter;
44class XPathExecutionContext;
45
46
47
49{
50public:
51
54 MemoryManager& theManager,
55 bool traceTemplates = false,
56 bool traceElements = false,
57 bool traceGeneration = false,
58 bool traceSelection = false);
59
63 MemoryManager& theManager,
64 bool traceTemplates = false,
65 bool traceElements = false,
66 bool traceGeneration = false,
67 bool traceSelection = false);
68
69 virtual
71
72 virtual void
74
75 virtual void
77
78 virtual void
80
81 bool
83 {
84 return m_traceTemplates;
85 }
86
87 void
89 {
90 m_traceTemplates = b;
91 }
92
93 bool
95 {
96 return m_traceElements;
97 }
98
99 void
101 {
102 m_traceElements = b;
103 }
104
105 bool
107 {
108 return m_traceGeneration;
109 }
110
111 void
113 {
114 m_traceGeneration = b;
115 }
116
117 bool
119 {
120 return m_traceSelection;
121 }
122
123 void
125 {
126 m_traceSelection = b;
127 }
128
129private:
130
131 void
132 processNodeList(const NodeRefListBase& nl);
133
134 void
135 printNodeInfo(const ElemTemplateElement& node);
136
137
138 // Data members...
139 XPathExecutionContext* m_executionContext;
140
141 PrintWriter& m_printWriter;
142
143 bool m_traceTemplates;
144
145 bool m_traceElements;
146
147 bool m_traceGeneration;
148
149 bool m_traceSelection;
150
151 MemoryManager& m_memoryManager;
152};
153
154
155
156}
157
158
159
160#endif //XALAN_TraceListenerDefault_HEADER_GUARD
#define XALAN_XSLT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This is the class for events generated by the XSL processor after it generates a new node in the resu...
Local implementation of NodeRefList.
virtual void generated(const GenerateEvent &ev)
Method that is called just after the formatter listener is called.
TraceListenerDefault(XPathExecutionContext &theExecutionContext, PrintWriter &thePrintWriter, MemoryManager &theManager, bool traceTemplates=false, bool traceElements=false, bool traceGeneration=false, bool traceSelection=false)
TraceListenerDefault(PrintWriter &thePrintWriter, MemoryManager &theManager, bool traceTemplates=false, bool traceElements=false, bool traceGeneration=false, bool traceSelection=false)
virtual void selected(const SelectionEvent &ev)
Method that is called just after the formatter listener is called.
virtual void trace(const TracerEvent &ev)
Method that is called when a trace event occurs.
This is the parent class of events generated for tracing the progress of the XSL processor.