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  

TraceListener.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_TraceListener_HEADER_GUARD)
00017 #define XALAN_TraceListener_HEADER_GUARD 
00018 
00019 // Base include file.  Must be first.
00020 #include "XSLTDefinitions.hpp"
00021 
00022 
00023 
00024 XALAN_CPP_NAMESPACE_BEGIN
00025 
00026 
00027 
00028 class TracerEvent;
00029 class SelectionEvent;
00030 class GenerateEvent;
00031 
00032 
00033 
00034 class XALAN_XSLT_EXPORT TraceListener
00035 {
00036 public:
00037 
00038     TraceListener();
00039 
00040     virtual
00041     ~TraceListener();
00042 
00049     virtual void
00050     trace(const TracerEvent&    ev) = 0;
00051 
00057     virtual void
00058     selected(const SelectionEvent&  ev) = 0;
00059 
00065     virtual void
00066     generated(const GenerateEvent&  ev) = 0;
00067 
00068     struct TraceListenerTraceFunctor
00069     {
00070         TraceListenerTraceFunctor(const TracerEvent&    theEvent) :
00071             m_event(theEvent)
00072         {
00073         }
00074 
00075         void
00076         operator()(TraceListener*   theListener) const
00077         {
00078             theListener->trace(m_event);
00079         }
00080 
00081         const TracerEvent&  m_event;
00082     };
00083 
00084     struct TraceListenerSelectFunctor
00085     {
00086         TraceListenerSelectFunctor(const SelectionEvent&        theEvent) :
00087             m_event(theEvent)
00088         {
00089         }
00090 
00091         void
00092         operator()(TraceListener*   theListener) const
00093         {
00094             theListener->selected(m_event);
00095         }
00096 
00097         const SelectionEvent&   m_event;
00098     };
00099 
00100     struct TraceListenerGenerateFunctor
00101     {
00102         TraceListenerGenerateFunctor(const GenerateEvent&   theEvent) :
00103             m_event(theEvent)
00104         {
00105         }
00106 
00107         void
00108         operator()(TraceListener*   theListener) const
00109         {
00110             theListener->generated(m_event);
00111         }
00112 
00113         const GenerateEvent&    m_event;
00114     };
00115 
00116 };
00117 
00118 
00119 
00120 XALAN_CPP_NAMESPACE_END
00121 
00122 
00123 
00124 #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