Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

TraceListener.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_TraceListener_HEADER_GUARD)
17 #define XALAN_TraceListener_HEADER_GUARD
18 
19 // Base include file. Must be first.
20 #include "XSLTDefinitions.hpp"
21 
22 
23 
24 XALAN_CPP_NAMESPACE_BEGIN
25 
26 
27 
28 class TracerEvent;
29 class SelectionEvent;
30 class GenerateEvent;
31 
32 
33 
35 {
36 public:
37 
38  TraceListener();
39 
40  virtual
41  ~TraceListener();
42 
49  virtual void
50  trace(const TracerEvent& ev) = 0;
51 
57  virtual void
58  selected(const SelectionEvent& ev) = 0;
59 
65  virtual void
66  generated(const GenerateEvent& ev) = 0;
67 
69  {
71  m_event(theEvent)
72  {
73  }
74 
75  void
76  operator()(TraceListener* theListener) const
77  {
78  theListener->trace(m_event);
79  }
80 
82  };
83 
85  {
87  m_event(theEvent)
88  {
89  }
90 
91  void
92  operator()(TraceListener* theListener) const
93  {
94  theListener->selected(m_event);
95  }
96 
98  };
99 
101  {
103  m_event(theEvent)
104  {
105  }
106 
107  void
108  operator()(TraceListener* theListener) const
109  {
110  theListener->generated(m_event);
111  }
112 
114  };
115 
116 };
117 
118 
119 
120 XALAN_CPP_NAMESPACE_END
121 
122 
123 
124 #endif //XALAN_TraceListener_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