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(XALAN_STDBININPUTSTREAM_HEADER_GUARD) 00020 #define XALAN_STDBININPUTSTREAM_HEADER_GUARD 00021 00022 00023 00024 // Base include file. Must be first. 00025 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00026 00027 00028 00029 #if defined(XALAN_CLASSIC_IOSTREAMS) 00030 #include <iostream.h> 00031 #else 00032 #include <iosfwd> 00033 #endif 00034 00035 00036 00037 #include <xercesc/util/BinInputStream.hpp> 00038 00039 00040 00041 XALAN_CPP_NAMESPACE_BEGIN 00042 00043 00044 00045 class XALAN_PLATFORMSUPPORT_EXPORT StdBinInputStream : public XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream 00046 { 00047 public: 00048 00049 typedef XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream ParentType; 00050 00051 #if defined(XALAN_NO_STD_NAMESPACE) 00052 typedef istream StreamType; 00053 #else 00054 typedef std::istream StreamType; 00055 #endif 00056 00057 00058 StdBinInputStream(StreamType& theStream); 00059 00060 virtual 00061 ~StdBinInputStream(); 00062 00063 virtual XalanFilePos 00064 curPos() const; 00065 00066 virtual XalanSize_t 00067 readBytes( 00068 XMLByte* const toFill, 00069 const XalanSize_t maxToRead); 00070 00071 virtual const XalanDOMChar* 00072 getContentType() const; 00073 00074 private: 00075 00076 // Unimplemented... 00077 StdBinInputStream(const StdBinInputStream& theSource); 00078 00079 bool 00080 operator==(const StdBinInputStream& theSource) const; 00081 00082 StdBinInputStream& 00083 operator=(const StdBinInputStream& theSource); 00084 00085 00086 // Data members... 00087 StreamType& m_stream; 00088 }; 00089 00090 00091 00092 XALAN_CPP_NAMESPACE_END 00093 00094 00095 00096 #endif // XALAN_STDBININPUTSTREAM_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 |
|