Xalan-C++ API Reference  1.12.0
TracerEvent.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_TracerEvent_HEADER_GUARD)
19 #define XALAN_TracerEvent_HEADER_GUARD
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
28 // $$$ ToDo: This is necessary while XalanDOMString is a typedef.
30 
31 
32 
33 namespace XALAN_CPP_NAMESPACE {
34 
35 
36 
37 class XalanNode;
38 class XalanNodeList;
39 class XalanQName;
40 class StylesheetExecutionContext;
41 class ElemTemplateElement;
42 
43 
44 
45 /**
46  * This is the parent class of events generated for tracing the
47  * progress of the XSL processor.
48  */
50 {
51 public:
52 
53  /**
54  * Construct a tracer event.
55  *
56  * @param executionContext XSLT processor instance
57  * @param sourceNode current context node
58  * @param styleNode node in the style tree where the event occurs
59  */
61  const StylesheetExecutionContext& executionContext,
62  const ElemTemplateElement& styleNode);
63 
64  virtual
65  ~TracerEvent();
66 
67  /**
68  * Returns a string representation of the node. The string returned for
69  * elements will contain the element name and any attributes enclosed in
70  * angle brackets. The string returned for attributes will be of form,
71  * "name=value."
72  *
73  * @param n any DOM node
74  * @return string representation of the given node
75  */
76  static XalanDOMString&
77  printNode(const XalanNode& n, XalanDOMString& theResult);
78 
79  /**
80  * Returns a string representation of the node list. The string will contain
81  * the list of nodes inside square braces. Elements will contain the element
82  * name and any attributes enclosed in angle brackets. Attributes will be of
83  * form, "name=value."
84  *
85  * @param l any DOM node list
86  * @return string representation of the given node list
87  */
88  static XalanDOMString&
89  printNodeList(const XalanNodeList& l, XalanDOMString& theResult);
90 
91  /**
92  * The XSLT processor instance.
93  */
95 
96  /**
97  * The node in the style tree where the event occurs.
98  */
100 
101 private:
102 
103  // not implemented
104  TracerEvent& operator=(const TracerEvent &);
105 
106 };
107 
108 
109 
110 }
111 
112 
113 
114 #endif //XALAN_TracerEvent_HEADER_GUARD
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::StylesheetExecutionContext
Definition: StylesheetExecutionContext.hpp:106
xalanc::XalanNode
Definition: XalanNode.hpp:38
XalanDOMString.hpp
XALAN_XSLT_EXPORT
#define XALAN_XSLT_EXPORT
Definition: XSLTDefinitions.hpp:27
xalanc::ElemTemplateElement
Definition: ElemTemplateElement.hpp:79
xalanc::XalanNodeList
Definition: XalanNodeList.hpp:36
xalanc::TracerEvent::m_executionContext
const StylesheetExecutionContext & m_executionContext
The XSLT processor instance.
Definition: TracerEvent.hpp:94
xalanc::TracerEvent
This is the parent class of events generated for tracing the progress of the XSL processor.
Definition: TracerEvent.hpp:49
XSLTDefinitions.hpp
xalanc::TracerEvent::m_styleNode
const ElemTemplateElement & m_styleNode
The node in the style tree where the event occurs.
Definition: TracerEvent.hpp:99
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45