Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

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

XalanFileOutputStream.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(XALANFILEOUTPUTSTREAM_HEADER_GUARD_1357924680) 00017 #define XALANFILEOUTPUTSTREAM_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00023 00024 00025 00026 #if defined(WIN32) 00027 #include <windows.h> 00028 #else 00029 #include <cstdio> 00030 #endif 00031 00032 #include <vector> 00033 00034 00035 00036 // Base class header file. 00037 #include <xalanc/PlatformSupport/XalanOutputStream.hpp> 00038 00039 00040 00041 XALAN_CPP_NAMESPACE_BEGIN 00042 00043 00044 00045 class XALAN_PLATFORMSUPPORT_EXPORT XalanFileOutputStream : public XalanOutputStream 00046 { 00047 public : 00048 00049 enum { eDefaultBufferSize = 8192 }; 00050 00051 #if defined(WIN32) 00052 typedef HANDLE HandleType; 00053 #else 00054 typedef FILE* HandleType; 00055 #endif 00056 00063 XalanFileOutputStream( 00064 const XalanDOMString& theFileName, 00065 unsigned int theBufferSize = eDefaultBufferSize); 00066 00067 virtual 00068 ~XalanFileOutputStream(); 00069 00070 00071 class XALAN_PLATFORMSUPPORT_EXPORT XalanFileOutputStreamOpenException : public XalanOutputStream::XalanOutputStreamException 00072 { 00073 public: 00074 00082 XalanFileOutputStreamOpenException( 00083 const XalanDOMString& theFileName, 00084 int theErrorCode); 00085 00086 virtual 00087 ~XalanFileOutputStreamOpenException(); 00088 }; 00089 00090 class XALAN_PLATFORMSUPPORT_EXPORT XalanFileOutputStreamWriteException : public XalanOutputStream::XalanOutputStreamException 00091 { 00092 public: 00093 00101 XalanFileOutputStreamWriteException( 00102 const XalanDOMString& theFileName, 00103 int theErrorCode); 00104 00105 virtual 00106 ~XalanFileOutputStreamWriteException(); 00107 }; 00108 00109 protected: 00110 00111 virtual void 00112 writeData( 00113 const char* theBuffer, 00114 size_type theBufferLength); 00115 00116 virtual void 00117 doFlush(); 00118 00119 private: 00120 00121 // These are not implemented... 00122 XalanFileOutputStream(const XalanFileOutputStream&); 00123 00124 XalanFileOutputStream& 00125 operator=(const XalanFileOutputStream&); 00126 00127 bool 00128 operator==(const XalanFileOutputStream&) const; 00129 00130 00131 // Data members... 00132 const XalanDOMString m_fileName; 00133 00134 const HandleType m_handle; 00135 }; 00136 00137 00138 00139 XALAN_CPP_NAMESPACE_END 00140 00141 00142 00143 #endif // XALANFILEOUTPUTSTREAM_HEADER_GUARD_1357924680

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.