00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XALAN_TracerEvent_HEADER_GUARD) 00019 #define XALAN_TracerEvent_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XSLT/XSLTDefinitions.hpp> 00025 00026 00027 00028 // $$$ ToDo: This is necessary while XalanDOMString is a typedef. 00029 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00030 00031 00032 00033 XALAN_CPP_NAMESPACE_BEGIN 00034 00035 00036 00037 class XalanNode; 00038 class XalanNodeList; 00039 class XalanQName; 00040 class StylesheetExecutionContext; 00041 class ElemTemplateElement; 00042 00043 00044 00045 /** 00046 * This is the parent class of events generated for tracing the 00047 * progress of the XSL processor. 00048 */ 00049 class XALAN_XSLT_EXPORT TracerEvent 00050 { 00051 public: 00052 00053 /** 00054 * Construct a tracer event. 00055 * 00056 * @param executionContext XSLT processor instance 00057 * @param sourceNode current context node 00058 * @param styleNode node in the style tree where the event occurs 00059 */ 00060 TracerEvent( 00061 const StylesheetExecutionContext& executionContext, 00062 const ElemTemplateElement& styleNode); 00063 00064 virtual 00065 ~TracerEvent(); 00066 00067 /** 00068 * Returns a string representation of the node. The string returned for 00069 * elements will contain the element name and any attributes enclosed in 00070 * angle brackets. The string returned for attributes will be of form, 00071 * "name=value." 00072 * 00073 * @param n any DOM node 00074 * @return string representation of the given node 00075 */ 00076 static XalanDOMString& 00077 printNode(const XalanNode& n, XalanDOMString& theResult); 00078 00079 /** 00080 * Returns a string representation of the node list. The string will contain 00081 * the list of nodes inside square braces. Elements will contain the element 00082 * name and any attributes enclosed in angle brackets. Attributes will be of 00083 * form, "name=value." 00084 * 00085 * @param l any DOM node list 00086 * @return string representation of the given node list 00087 */ 00088 static XalanDOMString& 00089 printNodeList(const XalanNodeList& l, XalanDOMString& theResult); 00090 00091 /** 00092 * The XSLT processor instance. 00093 */ 00094 const StylesheetExecutionContext& m_executionContext; 00095 00096 /** 00097 * The node in the style tree where the event occurs. 00098 */ 00099 const ElemTemplateElement& m_styleNode; 00100 00101 private: 00102 00103 // not implemented 00104 TracerEvent& operator=(const TracerEvent &); 00105 00106 }; 00107 00108 00109 00110 XALAN_CPP_NAMESPACE_END 00111 00112 00113 00114 #endif //XALAN_TracerEvent_HEADER_GUARD
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|