Xerces-C++ 3.2.0

Attributes.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: Attributes.hpp 932889 2010-04-11 13:10:10Z borisk $
20 */
21
22 #if !defined(XERCESC_INCLUDE_GUARD_ATTRIBUTES_HPP)
23 #define XERCESC_INCLUDE_GUARD_ATTRIBUTES_HPP
24
25 #include <xercesc/util/XercesDefs.hpp>
26
27 XERCES_CPP_NAMESPACE_BEGIN
28
82 class SAX2_EXPORT Attributes
83 {
84 public:
85 // -----------------------------------------------------------------------
86 // Constructors and Destructor
87 // -----------------------------------------------------------------------
91 Attributes()
92 {
93 }
94
96 virtual ~Attributes()
97 {
98 }
100
113 virtual XMLSize_t getLength() const = 0;
114
128 virtual const XMLCh* getURI(const XMLSize_t index) const = 0;
129
143 virtual const XMLCh* getLocalName(const XMLSize_t index) const = 0;
144
158 virtual const XMLCh* getQName(const XMLSize_t index) const = 0;
159
181 virtual const XMLCh* getType(const XMLSize_t index) const = 0;
182
196 virtual const XMLCh* getValue(const XMLSize_t index) const = 0;
197
199 // Name-based query.
201
212 virtual bool getIndex(const XMLCh* const uri,
213 const XMLCh* const localPart,
214 XMLSize_t& index) const = 0 ;
215
225 virtual int getIndex(const XMLCh* const uri,
226 const XMLCh* const localPart ) const = 0 ;
227
236 virtual bool getIndex(const XMLCh* const qName,
237 XMLSize_t& index) const = 0 ;
238
246 virtual int getIndex(const XMLCh* const qName ) const = 0 ;
247
260 virtual const XMLCh* getType(const XMLCh* const uri,
261 const XMLCh* const localPart ) const = 0 ;
262
273 virtual const XMLCh* getType(const XMLCh* const qName) const = 0;
274
286 virtual const XMLCh* getValue(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
287
298 virtual const XMLCh* getValue(const XMLCh* const qName) const = 0;
299
301
302 private :
303 /* Constructors and operators */
304 /* Copy constructor */
305 Attributes(const Attributes&);
306 /* Assignment operator */
307 Attributes& operator=(const Attributes&);
308
309 };
310
311 XERCES_CPP_NAMESPACE_END
312
313 #endif
XercesDefs.hpp
Attributes::~Attributes
virtual ~Attributes()
Destructor.
Definition: Attributes.hpp:96
SAX2_EXPORT
#define SAX2_EXPORT
Definition: XercesDefs.hpp:165
Attributes
Interface for an element&#39;s attribute specifications.
Definition: Attributes.hpp:82
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:118
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLSize_t
size_t XMLSize_t
Definition: Xerces_autoconf_config.hpp:110
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Attributes::Attributes
Attributes()
Default constructor.
Definition: Attributes.hpp:91