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
33namespace XALAN_CPP_NAMESPACE {
34
35
36
37class XalanNode;
38class XalanNodeList;
39class XalanQName;
40class StylesheetExecutionContext;
41class 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{
51public:
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 */
63
64 virtual
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&
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&
90
91 /**
92 * The XSLT processor instance.
93 */
95
96 /**
97 * The node in the style tree where the event occurs.
98 */
100
101private:
102
103 // not implemented
104 TracerEvent& operator=(const TracerEvent &);
105
106};
107
108
109
110}
111
112
113
114#endif //XALAN_TracerEvent_HEADER_GUARD
#define XALAN_XSLT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This is the parent class of events generated for tracing the progress of the XSL processor.
TracerEvent(const StylesheetExecutionContext &executionContext, const ElemTemplateElement &styleNode)
Construct a tracer event.
static XalanDOMString & printNodeList(const XalanNodeList &l, XalanDOMString &theResult)
Returns a string representation of the node list.
const StylesheetExecutionContext & m_executionContext
The XSLT processor instance.
const ElemTemplateElement & m_styleNode
The node in the style tree where the event occurs.
virtual ~TracerEvent()
static XalanDOMString & printNode(const XalanNode &n, XalanDOMString &theResult)
Returns a string representation of the node.