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