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(FORMATTERTONULL_HEADER_GUARD_1357924680) 00019 #define FORMATTERTONULL_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XMLSupport/XMLSupportDefinitions.hpp> 00025 00026 00027 00028 // Base class header file. 00029 #include <xalanc/PlatformSupport/FormatterListener.hpp> 00030 00031 00032 00033 XALAN_CPP_NAMESPACE_BEGIN 00034 00035 00036 00037 /** 00038 * This class takes SAX events (in addition to some extra events 00039 * that SAX doesn't handle yet) and produces absolutely nothing. 00040 * This is useful for profiling situations where serialization 00041 * obscures things. 00042 */ 00043 class XALAN_XMLSUPPORT_EXPORT FormatterToNull : public FormatterListener 00044 { 00045 public: 00046 00047 /** 00048 * FormatterToNull instance constructor. 00049 */ 00050 explicit 00051 FormatterToNull(); 00052 00053 virtual 00054 ~FormatterToNull(); 00055 00056 00057 // These methods are inherited from FormatterListener ... 00058 00059 virtual void 00060 setDocumentLocator(const Locator* const locator); 00061 00062 virtual void 00063 startDocument(); 00064 00065 virtual void 00066 endDocument(); 00067 00068 virtual void 00069 startElement( 00070 const XMLCh* const name, 00071 AttributeListType& attrs); 00072 00073 virtual void 00074 endElement(const XMLCh* const name); 00075 00076 virtual void 00077 characters( 00078 const XMLCh* const chars, 00079 const size_type length); 00080 00081 virtual void 00082 charactersRaw( 00083 const XMLCh* const chars, 00084 const size_type length); 00085 00086 virtual void 00087 entityReference(const XMLCh* const name); 00088 00089 virtual void 00090 ignorableWhitespace( 00091 const XMLCh* const chars, 00092 const size_type length); 00093 00094 virtual void 00095 processingInstruction( 00096 const XMLCh* const target, 00097 const XMLCh* const data); 00098 00099 00100 virtual void 00101 resetDocument(); 00102 00103 virtual void 00104 comment(const XMLCh* const data); 00105 00106 virtual void 00107 cdata( 00108 const XMLCh* const ch, 00109 const size_type length); 00110 00111 private: 00112 00113 // These are not implemented. 00114 FormatterToNull(const FormatterToNull&); 00115 00116 FormatterToNull& 00117 operator=(const FormatterToNull&); 00118 00119 bool 00120 operator==(const FormatterToNull&) const; 00121 }; 00122 00123 00124 00125 XALAN_CPP_NAMESPACE_END 00126 00127 00128 00129 #endif // FORMATTERTONULL_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|