Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

TraceListenerDefault.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALAN_TraceListenerDefault_HEADER_GUARD)
17 #define XALAN_TraceListenerDefault_HEADER_GUARD
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 // Base class header file...
28 
30 
31 XALAN_CPP_NAMESPACE_BEGIN
32 
33 
34 
35 class DOMSupport;
37 class NodeRefListBase;
38 class PrintWriter;
39 
40 
41 
43 {
44 public:
45 
47  PrintWriter& thePrintWriter,
48  bool traceTemplates = false,
49  bool traceElements = false,
50  bool traceGeneration = false,
51  bool traceSelection = false,
53 
54  virtual
56 
57  virtual void
58  trace(const TracerEvent& ev);
59 
60  virtual void
61  selected(const SelectionEvent& ev);
62 
63  virtual void
64  generated(const GenerateEvent& ev);
65 
66  bool
67  getTraceTemplates() const
68  {
69  return m_traceTemplates;
70  }
71 
72  void
73  setTraceTemplates(bool b)
74  {
75  m_traceTemplates = b;
76  }
77 
78  bool
79  getTraceElement() const
80  {
81  return m_traceElements;
82  }
83 
84  void
85  setTraceElements(bool b)
86  {
87  m_traceElements = b;
88  }
89 
90  bool
91  getTraceGeneration() const
92  {
93  return m_traceGeneration;
94  }
95 
96  void
97  setTraceGeneration(bool b)
98  {
99  m_traceGeneration = b;
100  }
101 
102  bool
103  getTraceSelection() const
104  {
105  return m_traceSelection;
106  }
107 
108  void
109  setTraceSelection(bool b)
110  {
111  m_traceSelection = b;
112  }
113 
114 private:
115 
116  void
117  processNodeList(const NodeRefListBase& nl);
118 
119  void
120  printNodeInfo(const ElemTemplateElement& node);
121 
122 
123  // Data members...
124  PrintWriter& m_printWriter;
125 
126  bool m_traceTemplates;
127 
128  bool m_traceElements;
129 
130  bool m_traceGeneration;
131 
132  bool m_traceSelection;
133 
134  MemoryManagerType& m_memoryManager;
135 };
136 
137 
138 
139 XALAN_CPP_NAMESPACE_END
140 
141 
142 
143 #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