Xerces-C++ 3.2.4

AttributeList.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/*
19 * $Id$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_ATTRIBUTELIST_HPP)
23#define XERCESC_INCLUDE_GUARD_ATTRIBUTELIST_HPP
24
25#include <xercesc/util/XercesDefs.hpp>
26
27 XERCES_CPP_NAMESPACE_BEGIN
28
80 class SAX_EXPORT AttributeList
81{
82 public:
83 // -----------------------------------------------------------------------
84 // Constructors and Destructor
85 // -----------------------------------------------------------------------
89 AttributeList()
90 {
91 }
92
94 virtual ~AttributeList()
95 {
96 }
98
111 virtual XMLSize_t getLength() const = 0;
112
129 virtual const XMLCh* getName(const XMLSize_t index) const = 0;
130
152 virtual const XMLCh* getType(const XMLSize_t index) const = 0;
153
167 virtual const XMLCh* getValue(const XMLSize_t index) const = 0;
168
183 virtual const XMLCh* getType(const XMLCh* const name) const = 0;
184
199 virtual const XMLCh* getValue(const XMLCh* const name) const = 0;
200
215 virtual const XMLCh* getValue(const char* const name) const = 0;
217
218private :
219 /* Constructors and operators */
220 /* Copy constructor */
221 AttributeList(const AttributeList&);
222 /* Assignment operator */
223 AttributeList& operator=(const AttributeList&);
224
225};
226
227 XERCES_CPP_NAMESPACE_END
228
229#endif
XercesDefs.hpp
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
SAX_EXPORT
#define SAX_EXPORT
Definition: XercesDefs.hpp:164
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
XMLSize_t
size_t XMLSize_t
Definition: Xerces_autoconf_config.hpp:112
AttributeList
Interface for an element's attribute specifications.
Definition: AttributeList.hpp:81
AttributeList::~AttributeList
virtual ~AttributeList()
Destructor.
Definition: AttributeList.hpp:94
AttributeList::AttributeList
AttributeList()
Default constructor.
Definition: AttributeList.hpp:89
AttributeList::getLength
virtual XMLSize_t getLength() const =0
Return the number of attributes in this list.
AttributeList::getValue
virtual const XMLCh * getValue(const XMLCh *const name) const =0
Return the value of an attribute in the list (by name).
AttributeList::getName
virtual const XMLCh * getName(const XMLSize_t index) const =0
Return the name of an attribute in this list (by position).
AttributeList::getValue
virtual const XMLCh * getValue(const XMLSize_t index) const =0
Return the value of an attribute in the list (by position).
AttributeList::getType
virtual const XMLCh * getType(const XMLSize_t index) const =0
Return the type of an attribute in the list (by position).
AttributeList::getValue
virtual const XMLCh * getValue(const char *const name) const =0
Return the value of an attribute in the list (by name).
AttributeList::getType
virtual const XMLCh * getType(const XMLCh *const name) const =0
Return the type of an attribute in the list (by name).