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(WRITER_HEADER_GUARD_1357924680) 00017 #define WRITER_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00023 00024 00025 00026 #include <cstddef> 00027 00028 00029 00030 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00031 00032 00033 00034 XALAN_CPP_NAMESPACE_BEGIN 00035 00036 00037 00038 class XalanOutputStream; 00039 00040 00041 00042 class XALAN_PLATFORMSUPPORT_EXPORT Writer 00043 { 00044 public: 00045 00046 Writer(); 00047 00048 virtual 00049 ~Writer(); 00050 00054 virtual void 00055 close() = 0; 00056 00060 virtual void 00061 flush() = 0; 00062 00066 virtual XalanOutputStream* 00067 getStream(); 00068 00072 virtual const XalanOutputStream* 00073 getStream() const; 00074 00075 00076 // Output functions 00077 00078 #if defined(XALAN_INLINE_INITIALIZATION) 00079 static const size_t npos = ~0u; 00080 #else 00081 static const size_t npos; 00082 #endif 00083 00091 virtual void 00092 write( 00093 const char* s, 00094 size_t theOffset = 0, 00095 size_t theLength = npos) = 0; 00096 00104 virtual void 00105 write( 00106 const XalanDOMChar* s, 00107 XalanDOMString::size_type theOffset = 0, 00108 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00109 00115 virtual void 00116 write(XalanDOMChar c) = 0; 00117 00125 virtual void 00126 write( 00127 const XalanDOMString& s, 00128 XalanDOMString::size_type theOffset = 0, 00129 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00130 00131 private: 00132 00133 // Not implemented 00134 Writer(const Writer&); 00135 00136 Writer& 00137 operator=(const Writer&); 00138 00139 bool 00140 operator==(const Writer&); 00141 }; 00142 00143 00144 00145 XALAN_CPP_NAMESPACE_END 00146 00147 00148 00149 #endif // WRITER_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.10 |
|