Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GenerateEvent.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_GenerateEvent_HEADER_GUARD)
00017 #define XALAN_GenerateEvent_HEADER_GUARD 
00018 
00019 
00020 
00021 // Base include file.  Must be first.
00022 #include <xalanc/XSLT/XSLTDefinitions.hpp>
00023 
00024 
00025 
00026 #include <xalanc/XalanDOM/XalanDOMString.hpp>
00027 
00028 
00029 
00030 XALAN_DECLARE_XERCES_CLASS(AttributeList)
00031 
00032 
00033 
00034 XALAN_CPP_NAMESPACE_BEGIN
00035 
00036 
00037 
00038 typedef XERCES_CPP_NAMESPACE_QUALIFIER AttributeList    AttributeListType;
00039 
00040 
00041 
00050 class XALAN_XSLT_EXPORT GenerateEvent
00051 {
00052 public:
00053 
00054     enum EventType
00055     {
00060         EVENTTYPE_STARTDOCUMENT = 1,
00061             
00065         EVENTTYPE_ENDDOCUMENT = 2,
00066         
00070         EVENTTYPE_STARTELEMENT = 3,
00071         
00075         EVENTTYPE_ENDELEMENT = 4,
00076         
00080         EVENTTYPE_CHARACTERS = 5,
00081         
00085         EVENTTYPE_IGNORABLEWHITESPACE = 6,
00086 
00090         EVENTTYPE_PI = 7,
00091 
00095         EVENTTYPE_COMMENT = 8,
00096 
00100         EVENTTYPE_ENTITYREF = 9,
00101 
00105         EVENTTYPE_CDATA = 10
00106     };
00107 
00108 
00114     GenerateEvent(EventType     eventType);
00115     
00123     GenerateEvent(
00124             EventType               eventType,
00125             const XalanDOMChar*     name,
00126             AttributeListType*      atts);
00127 
00135     GenerateEvent(
00136             EventType                   eventType,
00137             const XalanDOMString&       name,
00138             const AttributeListType*    atts = 0);
00139 
00148     GenerateEvent(
00149             EventType                   eventType,
00150             const XalanDOMChar*         ch,
00151             XalanDOMString::size_type   start,
00152             XalanDOMString::size_type   length);
00153     
00161     GenerateEvent(
00162             EventType               eventType,
00163             const XalanDOMChar*     name,
00164             const XalanDOMChar*     data);
00165     
00173     GenerateEvent(
00174             EventType               eventType,
00175             const XalanDOMChar*     data);
00176 
00181     EventType               m_eventType;
00182 
00186     XalanDOMString          m_characters;
00187 
00191     XalanDOMString::size_type   m_start;
00192 
00196     XalanDOMString::size_type   m_length;
00197 
00201     XalanDOMString          m_name;
00202 
00206     XalanDOMString          m_data;
00207 
00211     const AttributeListType*    m_pAtts;
00212 };
00213 
00214 
00215 
00216 XALAN_CPP_NAMESPACE_END
00217 
00218 
00219 
00220 #endif  //XALAN_GenerateEvent_HEADER_GUARD

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.