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 #if !defined(NULLPRINTWRITER_HEADER_GUARD_1357924680) 00019 #define NULLPRINTWRITER_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00025 00026 00027 00028 // Base class header file. 00029 #include <xalanc/PlatformSupport/PrintWriter.hpp> 00030 00031 00032 00033 XALAN_CPP_NAMESPACE_BEGIN 00034 00035 00036 00037 class XALAN_PLATFORMSUPPORT_EXPORT NullPrintWriter : public PrintWriter 00038 { 00039 public: 00040 00041 explicit 00042 NullPrintWriter(MemoryManager& theManager); 00043 00044 virtual 00045 ~NullPrintWriter(); 00046 00047 // Functions inherited from PrintWriter... 00048 00049 virtual bool 00050 checkError() const; 00051 00052 virtual void 00053 close(); 00054 00055 virtual void 00056 flush(); 00057 00058 virtual void 00059 write( 00060 const char* s, 00061 size_t theOffset = 0, 00062 size_t theLength = npos); 00063 00064 virtual void 00065 write( 00066 const XalanDOMChar* s, 00067 XalanDOMString::size_type theOffset = 0, 00068 XalanDOMString::size_type theLength = XalanDOMString::npos); 00069 00070 virtual void 00071 write(XalanDOMChar c); 00072 00073 virtual void 00074 write( 00075 const XalanDOMString& s, 00076 XalanDOMString::size_type theOffset = 0, 00077 XalanDOMString::size_type theLength = XalanDOMString::npos); 00078 00079 #if !defined(XALAN_BOOL_AS_INT) 00080 virtual void 00081 print(bool b); 00082 #endif 00083 00084 virtual void 00085 print(char c); 00086 00087 virtual void 00088 print( 00089 const char* s, 00090 size_t theLength = npos); 00091 00092 virtual void 00093 print( 00094 const XalanDOMChar* s, 00095 XalanDOMString::size_type theLength = XalanDOMString::npos); 00096 00097 virtual void 00098 print(double d); 00099 00100 virtual void 00101 print(int i); 00102 00103 virtual void 00104 print(long l); 00105 00106 virtual void 00107 print(const XalanDOMString& s); 00108 00109 virtual void 00110 println(); 00111 00112 #if !defined(XALAN_BOOL_AS_INT) 00113 virtual void 00114 println(bool x); 00115 #endif 00116 00117 virtual void 00118 println(char x); 00119 00120 virtual void 00121 println( 00122 const char* s, 00123 size_t theLength = npos); 00124 00125 virtual void 00126 println( 00127 const XalanDOMChar* s, 00128 XalanDOMString::size_type theLength = XalanDOMString::npos); 00129 00130 virtual void 00131 println(double x); 00132 00133 virtual void 00134 println(int x); 00135 00136 virtual void 00137 println(long x); 00138 00139 virtual void 00140 println(const XalanDOMString& s); 00141 00142 private: 00143 00144 // Not implemented 00145 NullPrintWriter(const NullPrintWriter&); 00146 00147 NullPrintWriter& 00148 operator=(const NullPrintWriter&); 00149 00150 bool 00151 operator==(const NullPrintWriter&); 00152 }; 00153 00154 00155 00156 XALAN_CPP_NAMESPACE_END 00157 00158 00159 00160 #endif // NULLPRINTWRITER_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.11 |
|