Xerces-C++ 3.2.5

DOMConfiguration.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#if !defined(XERCESC_INCLUDE_GUARD_DOMCONFIGURATION_HPP)
19#define XERCESC_INCLUDE_GUARD_DOMCONFIGURATION_HPP
20
21//------------------------------------------------------------------------------------
22// Includes
23//------------------------------------------------------------------------------------
24
25#include <xercesc/util/XMLString.hpp>
26#include <xercesc/util/RefVectorOf.hpp>
27#include <xercesc/dom/DOMStringList.hpp>
28
29 XERCES_CPP_NAMESPACE_BEGIN
30
350 class CDOM_EXPORT DOMConfiguration
351{
352 protected:
353 //-----------------------------------------------------------------------------------
354 // Constructor
355 //-----------------------------------------------------------------------------------
358 DOMConfiguration() {};
360
361 private:
362 // -----------------------------------------------------------------------
363 // Unimplemented constructors and operators
364 // -----------------------------------------------------------------------
367 DOMConfiguration(const DOMConfiguration &);
368 DOMConfiguration & operator = (const DOMConfiguration &);
370
371 public:
372
373 // -----------------------------------------------------------------------
374 // Setter methods
375 // -----------------------------------------------------------------------
376
390 virtual void setParameter(const XMLCh* name, const void* value) = 0;
391 virtual void setParameter(const XMLCh* name, bool value) = 0;
392
393 // -----------------------------------------------------------------------
394 // Getter methods
395 // -----------------------------------------------------------------------
406 virtual const void* getParameter(const XMLCh* name) const = 0;
407
408
409 // -----------------------------------------------------------------------
410 // Query methods
411 // -----------------------------------------------------------------------
412
422 virtual bool canSetParameter(const XMLCh* name, const void* value) const = 0;
423 virtual bool canSetParameter(const XMLCh* name, bool value) const = 0;
424
433 virtual const DOMStringList* getParameterNames() const = 0;
434
435 // -----------------------------------------------------------------------
436 // All constructors are hidden, just the destructor is available
437 // -----------------------------------------------------------------------
444 virtual ~DOMConfiguration() {};
446};
447
448 XERCES_CPP_NAMESPACE_END
449
450#endif
451
DOMStringList.hpp
XMLString.hpp
CDOM_EXPORT
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
XMLCh
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
DOMConfiguration
The DOMConfiguration interface represents the configuration of a document and maintains a table of re...
Definition DOMConfiguration.hpp:351
DOMConfiguration::setParameter
virtual void setParameter(const XMLCh *name, bool value)=0
DOMConfiguration::canSetParameter
virtual bool canSetParameter(const XMLCh *name, const void *value) const =0
Check if setting a parameter to a specific value is supported.
DOMConfiguration::~DOMConfiguration
virtual ~DOMConfiguration()
Destructor.
Definition DOMConfiguration.hpp:444
DOMConfiguration::setParameter
virtual void setParameter(const XMLCh *name, const void *value)=0
Set the value of a parameter.
DOMConfiguration::canSetParameter
virtual bool canSetParameter(const XMLCh *name, bool value) const =0
DOMConfiguration::getParameter
virtual const void * getParameter(const XMLCh *name) const =0
Return the value of a parameter if known.
DOMConfiguration::getParameterNames
virtual const DOMStringList * getParameterNames() const =0
The list of the parameters supported by this DOMConfiguration object and for which at least one value...
DOMConfiguration::DOMConfiguration
DOMConfiguration()
Definition DOMConfiguration.hpp:358
DOMStringList
The DOMStringList interface provides the abstraction of an ordered collection of strings,...
Definition DOMStringList.hpp:37