00001 #ifndef DOMXPathNSResolver_HEADER_GUARD_ 00002 #define DOMXPathNSResolver_HEADER_GUARD_ 00003 00004 /* 00005 * Licensed to the Apache Software Foundation (ASF) under one or more 00006 * contributor license agreements. See the NOTICE file distributed with 00007 * this work for additional information regarding copyright ownership. 00008 * The ASF licenses this file to You under the Apache License, Version 2.0 00009 * (the "License"); you may not use this file except in compliance with 00010 * the License. You may obtain a copy of the License at 00011 * 00012 * http://www.apache.org/licenses/LICENSE-2.0 00013 * 00014 * Unless required by applicable law or agreed to in writing, software 00015 * distributed under the License is distributed on an "AS IS" BASIS, 00016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00017 * See the License for the specific language governing permissions and 00018 * limitations under the License. 00019 */ 00020 00021 #include <xercesc/util/XercesDefs.hpp> 00022 00023 XERCES_CPP_NAMESPACE_BEGIN 00032 class CDOM_EXPORT DOMXPathNSResolver 00033 { 00034 00035 protected: 00036 // ----------------------------------------------------------------------- 00037 // Hidden constructors 00038 // ----------------------------------------------------------------------- 00041 DOMXPathNSResolver() {}; 00043 00044 private: 00045 // ----------------------------------------------------------------------- 00046 // Unimplemented constructors and operators 00047 // ----------------------------------------------------------------------- 00050 DOMXPathNSResolver(const DOMXPathNSResolver &); 00051 DOMXPathNSResolver& operator = (const DOMXPathNSResolver&); 00053 00054 public: 00055 // ----------------------------------------------------------------------- 00056 // All constructors are hidden, just the destructor is available 00057 // ----------------------------------------------------------------------- 00064 virtual ~DOMXPathNSResolver() {}; 00066 00067 // ----------------------------------------------------------------------- 00068 // Virtual DOMDocument interface 00069 // ----------------------------------------------------------------------- 00072 00079 virtual const XMLCh* lookupNamespaceURI(const XMLCh* prefix) const = 0; 00081 00082 00083 // ----------------------------------------------------------------------- 00084 // Non-standard extension 00085 // ----------------------------------------------------------------------- 00088 00099 virtual const XMLCh* lookupPrefix(const XMLCh* URI) const = 0; 00100 00101 00103 }; 00104 00105 XERCES_CPP_NAMESPACE_END 00106 00107 #endif 00108