00001 #ifndef DOMImplementationLS_HEADER_GUARD_ 00002 #define DOMImplementationLS_HEADER_GUARD_ 00003 00004 /* 00005 * Copyright 2002,2004 The Apache Software Foundation. 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); 00008 * you may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 */ 00019 00020 /* 00021 * $Id: DOMImplementationLS.hpp 191054 2005-06-17 02:56:35Z jberry $ 00022 */ 00023 00024 00025 #include <xercesc/util/PlatformUtils.hpp> 00026 00027 XERCES_CPP_NAMESPACE_BEGIN 00028 00029 00030 class DOMBuilder; 00031 class DOMWriter; 00032 class DOMInputSource; 00033 class MemoryManager; 00034 class XMLGrammarPool; 00035 00049 class CDOM_EXPORT DOMImplementationLS 00050 { 00051 protected: 00052 // ----------------------------------------------------------------------- 00053 // Hidden constructors 00054 // ----------------------------------------------------------------------- 00057 DOMImplementationLS() {}; 00059 00060 private: 00061 // ----------------------------------------------------------------------- 00062 // Unimplemented constructors and operators 00063 // ----------------------------------------------------------------------- 00066 DOMImplementationLS(const DOMImplementationLS &); 00067 DOMImplementationLS & operator = (const DOMImplementationLS &); 00069 00070 public: 00071 // ----------------------------------------------------------------------- 00072 // All constructors are hidden, just the destructor is available 00073 // ----------------------------------------------------------------------- 00080 virtual ~DOMImplementationLS() {}; 00082 00083 // ----------------------------------------------------------------------- 00084 // Public constants 00085 // ----------------------------------------------------------------------- 00094 enum 00095 { 00096 MODE_SYNCHRONOUS = 1, 00097 MODE_ASYNCHRONOUS = 2 00098 }; 00100 00101 // ----------------------------------------------------------------------- 00102 // Virtual DOMImplementation LS interface 00103 // ----------------------------------------------------------------------- 00106 // ----------------------------------------------------------------------- 00107 // Factory create methods 00108 // ----------------------------------------------------------------------- 00140 virtual DOMBuilder* createDOMBuilder(const short mode, 00141 const XMLCh* const schemaType, 00142 MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager, 00143 XMLGrammarPool* const gramPool = 0) = 0; 00144 00145 00157 virtual DOMWriter* createDOMWriter(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager) = 0; 00158 00171 virtual DOMInputSource* createDOMInputSource() = 0; 00172 00174 }; 00175 00176 00177 XERCES_CPP_NAMESPACE_END 00178 00179 #endif