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 00019 #if !defined(ICURESHANDLER_1357924680) 00020 #define ICURESHANDLER_1357924680 00021 00022 00023 00024 #include "xalanc/Include/PlatformDefinitions.hpp" 00025 00026 #include "SAX2Handler.hpp" 00027 00028 00029 00030 XALAN_CPP_NAMESPACE_BEGIN 00031 00032 00033 00034 class ICUResHandler : public SAX2Handler 00035 { 00036 public: 00037 00038 // ----------------------------------------------------------------------- 00039 // Constructors 00040 // ----------------------------------------------------------------------- 00041 ICUResHandler( 00042 const char* fileName, 00043 const char* indexFileName); 00044 00045 virtual 00046 ~ICUResHandler(); 00047 00048 // ----------------------------------------------------------------------- 00049 // Implementations of the SAX DocumentHandler interface 00050 // ----------------------------------------------------------------------- 00051 virtual void 00052 endDocument(); 00053 00054 virtual void 00055 endElement( 00056 const XMLCh* const, 00057 const XMLCh* const localname, 00058 const XMLCh* const); 00059 00060 virtual void 00061 startDocument(); 00062 00063 virtual void 00064 startElement( 00065 const XMLCh* const uri, 00066 const XMLCh* const localname, 00067 const XMLCh* const qname, 00068 const Attributes& attributes); 00069 00070 virtual void 00071 characters( 00072 const XMLCh* const chars, 00073 const XalanSize_t length); 00074 00075 protected: 00076 00077 virtual void 00078 createHeaderForDataFile(); 00079 00080 virtual void 00081 createBottomForDataFile(); 00082 00083 virtual void 00084 printBeginOfDataLine(); 00085 00086 virtual void 00087 printEndOfDataLine(); 00088 00089 void 00090 printToDataFile(const char* sArrayOfStrings[]); 00091 00092 00093 MsgFileOutputStream m_stream; 00094 00095 private: 00096 00097 // Not implemented... 00098 ICUResHandler& 00099 operator=(const ICUResHandler&); 00100 00101 ICUResHandler(const ICUResHandler&); 00102 00103 bool 00104 operator==(const ICUResHandler&) const; 00105 }; 00106 00107 00108 00109 XALAN_CPP_NAMESPACE_END 00110 00111 00112 00113 #endif // ICURESHANDLER_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|