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