Xerces-C++: PSVIAttributeList.hpp Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#if !defined(XERCESC_INCLUDE_GUARD_PSVIATTRIBUTE_LIST_HPP)
23#define XERCESC_INCLUDE_GUARD_PSVIATTRIBUTE_LIST_HPP
24
27#include <xercesc/util/RefVectorOf.hpp>
28
30
40{
41public:
43 fPSVIAttribute(0)
44 , fAttributeName(0)
45 , fAttributeNamespace(0)
46 {
47 }
48
50 {
51 delete fPSVIAttribute;
52 }
53
57};
58
60{
61public:
62
63
64
67
74
76
81
82
86
87
88
89
90
92
93
94
95
96
97
98
99
100
102
103
104
105
106
107
108
109
110
112
113
114
115
116
117
118
119
120
122
123
124
125
126
127
128
129
131 , const XMLCh * attrNamespace);
132
134
135
139
149 const XMLCh * attrName
150 , const XMLCh * attrNS);
151
155 void reset();
156
158
159private:
160
161
162
163
166
167
168
169
170
171
172
173
174
175
176
178 RefVectorOf* fAttrList;
180};
181
183{
184 delete fAttrList;
185}
186
188 const XMLCh *attrName
189 , const XMLCh * attrNS)
190{
192 if(fAttrPos == fAttrList->size())
193 {
196 fAttrList->addElement(storage);
197 }
198 else
199 {
200 storage = fAttrList->elementAt(fAttrPos);
201 }
204 fAttrPos++;
206}
207
209{
210 fAttrPos = 0;
211}
212
214
215#endif
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Configurable memory manager.
Definition MemoryManager.hpp:40
Definition PSVIAttributeList.hpp:60
void reset()
reset the list
Definition PSVIAttributeList.hpp:208
const XMLCh * getAttributeNamespaceAtIndex(const XMLSize_t index)
PSVIAttributeList(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
PSVIAttribute * getAttributePSVIByName(const XMLCh *attrName, const XMLCh *attrNamespace)
PSVIAttribute * getAttributePSVIAtIndex(const XMLSize_t index)
const XMLCh * getAttributeNameAtIndex(const XMLSize_t index)
~PSVIAttributeList()
Definition PSVIAttributeList.hpp:182
PSVIAttribute * getPSVIAttributeToFill(const XMLCh *attrName, const XMLCh *attrNS)
methods needed by implementation
Definition PSVIAttributeList.hpp:187
XMLSize_t getLength() const
A container for the PSVI contributions to attributes that occur on a particular element.
Definition PSVIAttributeList.hpp:40
const XMLCh * fAttributeNamespace
Definition PSVIAttributeList.hpp:56
PSVIAttributeStorage()
Definition PSVIAttributeList.hpp:42
const XMLCh * fAttributeName
Definition PSVIAttributeList.hpp:55
~PSVIAttributeStorage()
Definition PSVIAttributeList.hpp:49
PSVIAttribute * fPSVIAttribute
Definition PSVIAttributeList.hpp:54
Definition PSVIAttribute.hpp:42
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition XMemory.hpp:41