00001 /* 00002 * Copyright 1999-2000,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 00017 /* 00018 * $Log: XMLEntityResolver.hpp,v $ 00019 * Revision 1.3 2004/09/26 01:06:31 cargilld 00020 * Fix documentation generation problem. Replace <pre> with <code>. Patch from James Littlejohn. 00021 * 00022 * Revision 1.2 2004/09/08 13:56:24 peiyongz 00023 * Apache License Version 2.0 00024 * 00025 * Revision 1.1 2003/10/30 21:37:32 knoaman 00026 * Enhanced Entity Resolver Support. Thanks to David Cargill. 00027 * 00028 * 00029 * Revision 1.1 1999/11/09 01:07:44 twl 00030 * Initial checkin 00031 * 00032 */ 00033 00034 #ifndef XMLENTITYRESOLVER_HPP 00035 #define XMLENTITYRESOLVER_HPP 00036 00037 #include <xercesc/util/XercesDefs.hpp> 00038 #include <xercesc/util/XMemory.hpp> 00039 #include <xercesc/util/XMLResourceIdentifier.hpp> 00040 00041 XERCES_CPP_NAMESPACE_BEGIN 00042 00043 class InputSource; 00044 00111 class XMLEntityResolver 00112 { 00113 public: 00116 00117 00119 virtual ~XMLEntityResolver() 00120 { 00121 } 00122 00124 00127 00165 virtual InputSource* resolveEntity 00166 ( 00167 XMLResourceIdentifier* resourceIdentifier 00168 ) = 0; 00169 00171 protected: 00173 XMLEntityResolver() 00174 { 00175 } 00176 00177 private : 00178 /* Unimplemented constructors and operators */ 00179 00180 /* Copy constructor */ 00181 XMLEntityResolver(const XMLEntityResolver&); 00182 00183 /* Assignment operator */ 00184 XMLEntityResolver& operator=(const XMLEntityResolver&); 00185 00186 }; 00187 00188 XERCES_CPP_NAMESPACE_END 00189 00190 #endif