XMLAttDefList.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id$
*/
#if !defined(XERCESC_INCLUDE_GUARD_XMLATTDEFLIST_HPP)
#define XERCESC_INCLUDE_GUARD_XMLATTDEFLIST_HPP
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/XMemory.hpp>
#include <xercesc/internal/XSerializable.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class XMLAttDef;
class XMLPARSER_EXPORT XMLAttDefList : public XSerializable, public XMemory
{
public:
// -----------------------------------------------------------------------
// Constructors and Destructor
// -----------------------------------------------------------------------
virtual ~XMLAttDefList();
// -----------------------------------------------------------------------
// The virtual interface
// -----------------------------------------------------------------------
virtual bool isEmpty() const = 0;
virtual XMLAttDef* findAttDef
(
const unsigned int uriID
, const XMLCh* const attName
) = 0;
virtual const XMLAttDef* findAttDef
(
const unsigned int uriID
, const XMLCh* const attName
) const = 0;
virtual XMLAttDef* findAttDef
(
const XMLCh* const attURI
, const XMLCh* const attName
) = 0;
virtual const XMLAttDef* findAttDef
(
const XMLCh* const attURI
, const XMLCh* const attName
) const = 0;
virtual XMLSize_t getAttDefCount() const = 0;
virtual XMLAttDef &getAttDef(XMLSize_t index) = 0;
virtual const XMLAttDef &getAttDef(XMLSize_t index) const = 0;
/***
* Support for Serialization/De-serialization
***/
DECL_XSERIALIZABLE(XMLAttDefList)
// -----------------------------------------------------------------------
// Getter methods
// -----------------------------------------------------------------------
MemoryManager* getMemoryManager() const;
protected :
// -----------------------------------------------------------------------
// Hidden constructors and operators
// -----------------------------------------------------------------------
XMLAttDefList(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
private:
// unimplemented
XMLAttDefList(const XMLAttDefList&);
XMLAttDefList& operator=(const XMLAttDefList&);
MemoryManager* fMemoryManager;
};
// ---------------------------------------------------------------------------
// XMLAttDefList: Getter methods
// ---------------------------------------------------------------------------
inline MemoryManager* XMLAttDefList::getMemoryManager() const
{
return fMemoryManager;
}
// ---------------------------------------------------------------------------
// XMLAttDefList: Constructors and Destructor
// ---------------------------------------------------------------------------
inline XMLAttDefList::~XMLAttDefList()
{
}
// ---------------------------------------------------------------------------
// XMLAttDefList: Protected Constructor
// ---------------------------------------------------------------------------
inline XMLAttDefList::XMLAttDefList(MemoryManager* const manager):
fMemoryManager(manager)
{
}
XERCES_CPP_NAMESPACE_END
#endif
XMemory.hpp
XercesDefs.hpp
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
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
XMLSize_t
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
XMLCh
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
XMLAttDefList
This class defines an abstract interface that all validators must support.
Definition XMLAttDefList.hpp:51
XMLAttDefList::getAttDefCount
virtual XMLSize_t getAttDefCount() const =0
return total number of attributes in this list
XMLAttDefList::findAttDef
virtual const XMLAttDef * findAttDef(const unsigned int uriID, const XMLCh *const attName) const =0
XMLAttDefList::getMemoryManager
MemoryManager * getMemoryManager() const
Get the memory manager.
Definition XMLAttDefList.hpp:148
XMLAttDefList::findAttDef
virtual const XMLAttDef * findAttDef(const XMLCh *const attURI, const XMLCh *const attName) const =0
XMLAttDefList::getAttDef
virtual const XMLAttDef & getAttDef(XMLSize_t index) const =0
return attribute at the index-th position in the list.
XMLAttDefList::getAttDef
virtual XMLAttDef & getAttDef(XMLSize_t index)=0
return attribute at the index-th position in the list.
XMLAttDefList::findAttDef
virtual XMLAttDef * findAttDef(const unsigned int uriID, const XMLCh *const attName)=0
XMLAttDefList::isEmpty
virtual bool isEmpty() const =0
XMLAttDefList::XMLAttDefList
XMLAttDefList(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Definition XMLAttDefList.hpp:164
XMLAttDefList::findAttDef
virtual XMLAttDef * findAttDef(const XMLCh *const attURI, const XMLCh *const attName)=0
XMLAttDefList::~XMLAttDefList
virtual ~XMLAttDefList()
Definition XMLAttDefList.hpp:156
XMLAttDef
Represents the core information of an attribute definition.
Definition XMLAttDef.hpp:53
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
XMemory
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition XMemory.hpp:41