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(PRINTWRITER_HEADER_GUARD_1357924680) 00017 #define PRINTWRITER_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00023 00024 00025 00026 // Base class header file. 00027 #include <xalanc/PlatformSupport/Writer.hpp> 00028 00029 00030 00031 XALAN_CPP_NAMESPACE_BEGIN 00032 00033 00034 00035 class XALAN_PLATFORMSUPPORT_EXPORT PrintWriter : public Writer 00036 { 00037 public: 00038 00044 PrintWriter(bool fAutoFlush = false); 00045 00046 virtual 00047 ~PrintWriter(); 00048 00054 virtual bool 00055 checkError() const = 0; 00056 00057 // Functions inherited from Writer... 00058 00059 virtual void 00060 close() = 0; 00061 00062 virtual void 00063 flush() = 0; 00064 00065 00066 // Output functions inherited from Writer... 00067 00068 virtual void 00069 write( 00070 const char* s, 00071 size_t theOffset = 0, 00072 size_t theLength = npos) = 0; 00073 00074 virtual void 00075 write( 00076 const XalanDOMChar* s, 00077 XalanDOMString::size_type theOffset = 0, 00078 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00079 00080 virtual void 00081 write(XalanDOMChar c) = 0; 00082 00083 virtual void 00084 write( 00085 const XalanDOMString& s, 00086 XalanDOMString::size_type theOffset = 0, 00087 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00088 00089 // Output functions which are new... 00090 00091 #if !defined(XALAN_BOOL_AS_INT) 00092 virtual void 00093 print(bool b) = 0; 00094 #endif 00095 00096 virtual void 00097 print(char c) = 0; 00098 00099 virtual void 00100 print( 00101 const char* s, 00102 size_t theLength = npos) = 0; 00103 00104 virtual void 00105 print( 00106 const XalanDOMChar* s, 00107 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00108 00109 virtual void 00110 print(double d) = 0; 00111 00112 virtual void 00113 print(int i) = 0; 00114 00115 virtual void 00116 print(long l) = 0; 00117 00118 virtual void 00119 print(const XalanDOMString& s) = 0; 00120 00121 virtual void 00122 println() = 0; 00123 00124 #if !defined(XALAN_BOOL_AS_INT) 00125 virtual void 00126 println(bool b) = 0; 00127 #endif 00128 00129 virtual void 00130 println(char x) = 0; 00131 00132 virtual void 00133 println( 00134 const char* s, 00135 size_t theLength = npos) = 0; 00136 00137 virtual void 00138 println( 00139 const XalanDOMChar* s, 00140 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00141 00142 virtual void 00143 println(double x) = 0; 00144 00145 virtual void 00146 println(int x) = 0; 00147 00148 virtual void 00149 println(long x) = 0; 00150 00151 virtual void 00152 println(const XalanDOMString& s) = 0; 00153 00154 protected: 00155 00156 const bool m_fAutoFlush; 00157 00158 // Some static strings to help derived classes... 00159 static const XalanDOMChar s_trueString[]; 00160 00161 static const XalanDOMChar s_falseString[]; 00162 00163 static const XalanDOMChar s_newlineString[]; 00164 00165 private: 00166 00167 // Not implemented 00168 PrintWriter(const PrintWriter&); 00169 00170 PrintWriter& 00171 operator=(const PrintWriter&); 00172 00173 bool 00174 operator==(const PrintWriter&); 00175 }; 00176 00177 00178 00179 XALAN_CPP_NAMESPACE_END 00180 00181 00182 00183 #endif // PRINTWRITER_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.8 |
|