00001 /* 00002 * Copyright 2003,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 #if !defined(DOMCONFIGURATION_HPP) 00018 #define DOMCONFIGURATION_HPP 00019 00020 //------------------------------------------------------------------------------------ 00021 // Includes 00022 //------------------------------------------------------------------------------------ 00023 00024 #include <xercesc/util/XMLString.hpp> 00025 00026 XERCES_CPP_NAMESPACE_BEGIN 00027 00417 class DOMConfiguration 00418 { 00419 protected: 00420 //----------------------------------------------------------------------------------- 00421 // Constructor 00422 //----------------------------------------------------------------------------------- 00425 DOMConfiguration() {}; 00427 00428 private: 00429 // ----------------------------------------------------------------------- 00430 // Unimplemented constructors and operators 00431 // ----------------------------------------------------------------------- 00434 DOMConfiguration(const DOMConfiguration &); 00435 DOMConfiguration & operator = (const DOMConfiguration &); 00437 00438 public: 00439 00440 // ----------------------------------------------------------------------- 00441 // Setter methods 00442 // ----------------------------------------------------------------------- 00443 00457 virtual void setParameter(const XMLCh* name, const void* value) = 0; 00458 00459 // ----------------------------------------------------------------------- 00460 // Getter methods 00461 // ----------------------------------------------------------------------- 00472 virtual const void* getParameter(const XMLCh* name) const = 0; 00473 00474 00475 // ----------------------------------------------------------------------- 00476 // Query methods 00477 // ----------------------------------------------------------------------- 00478 00488 virtual bool canSetParameter(const XMLCh* name, const void* value) const = 0; 00489 00490 // ----------------------------------------------------------------------- 00491 // All constructors are hidden, just the destructor is available 00492 // ----------------------------------------------------------------------- 00499 virtual ~DOMConfiguration() {}; 00501 }; 00502 00503 XERCES_CPP_NAMESPACE_END 00504 00505 #endif 00506