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, MemoryManagerType& theManager XALAN_DEFAULT_MEMMGR); 00045 00046 MemoryManagerType& 00047 getMemoryManager() 00048 { 00049 return m_memoryManager; 00050 } 00051 00052 virtual 00053 ~PrintWriter(); 00054 00060 virtual bool 00061 checkError() const = 0; 00062 00063 // Functions inherited from Writer... 00064 00065 virtual void 00066 close() = 0; 00067 00068 virtual void 00069 flush() = 0; 00070 00071 00072 // Output functions inherited from Writer... 00073 00074 virtual void 00075 write( 00076 const char* s, 00077 size_t theOffset = 0, 00078 size_t theLength = npos) = 0; 00079 00080 virtual void 00081 write( 00082 const XalanDOMChar* s, 00083 XalanDOMString::size_type theOffset = 0, 00084 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00085 00086 virtual void 00087 write(XalanDOMChar c) = 0; 00088 00089 virtual void 00090 write( 00091 const XalanDOMString& nThe Xalan C++ XSLT Processor Version 1.10
PrintWriter.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(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, MemoryManagerType& theManager XALAN_DEFAULT_MEMMGR); 00045 00046 MemoryManagerType& 00047 getMemoryManager() 00048 { 00049 return m_memoryManager; 00050 } 00051 00052 virtual 00053 ~PrintWriter(); 00054 00060 virtual bool 00061 checkError() const = 0; 00062 00063 // Functions inherited from Writer... 00064 00065 virtual void 00066 close() = 0; 00067 00068 virtual void 00069 flush() = 0; 00070 00071 00072 // Output functions inherited from Writer... 00073 00074 virtual void 00075 write( 00076 const char* s, 00077 size_t theOffset = 0, 00078 size_t theLength = npos) = 0; 00079 00080 virtual void 00081 write( 00082 const XalanDOMChar* s, 00083 XalanDOMString::size_type theOffset = 0, 00084 XalanDOMString::size_type theLength = XalanDOMString::npos) = 0; 00085 00086 virtual void 00087 write(XalanDOMChar c) = 0; 00088 00089 virtual void 00090 write( 00091 const XalanDOMString& nThe Xalan C++ XSLT Processor Version 1.10
PrintWriter.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 di