00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 #if !defined(XMLATTDEFLIST_HPP)
00064 #define XMLATTDEFLIST_HPP
00065
00066 #include <xercesc/util/XercesDefs.hpp>
00067 #include <xercesc/util/XMemory.hpp>
00068 #include <xercesc/internal/XSerializable.hpp>
00069
00070 XERCES_CPP_NAMESPACE_BEGIN
00071
00072 class XMLAttDef;
00073
00091 class XMLAttDefList : public XSerializable, public XMemory
00092 {
00093 public:
00094
00095
00096
00097
00100 virtual ~XMLAttDefList();
00102
00103
00104
00105
00106
00107
00111 virtual bool hasMoreElements() const = 0;
00112 virtual bool isEmpty() const = 0;
00113 virtual XMLAttDef* findAttDef
00114 (
00115 const unsigned long uriID
00116 , const XMLCh* const attName
00117 ) = 0;
00118 virtual const XMLAttDef* findAttDef
00119 (
00120 const unsigned long uriID
00121 , const XMLCh* const attName
00122 ) const = 0;
00123 virtual XMLAttDef* findAttDef
00124 (
00125 const XMLCh* const attURI
00126 , const XMLCh* const attName
00127 ) = 0;
00128 virtual const XMLAttDef* findAttDef
00129 (
00130 const XMLCh* const attURI
00131 , const XMLCh* const attName
00132 ) const = 0;
00133
00137 virtual XMLAttDef& nextElement() = 0;
00138
00142 virtual void Reset() = 0;
00143
00147 virtual unsigned int getAttDefCount() const = 0;
00148
00152 virtual XMLAttDef &getAttDef(unsigned int index) = 0;
00153
00157 virtual const XMLAttDef &getAttDef(unsigned int index) const = 0;
00158
00159
00160
00161
00162 DECL_XSERIALIZABLE(XMLAttDefList)
00163
00164
00165
00166
00167
00168
00171
00179 MemoryManager* getMemoryManager() const;
00180
00182
00183 protected :
00184
00185
00186
00187 XMLAttDefList(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00188
00189 private:
00190
00191 XMLAttDefList(const XMLAttDefList&);
00192 XMLAttDefList& operator=(const XMLAttDefList&);
00193
00194 MemoryManager* fMemoryManager;
00195 };
00196
00197
00198
00199
00200
00201
00202
00203 inline MemoryManager* XMLAttDefList::getMemoryManager() const
00204 {
00205 return fMemoryManager;
00206 }
00207
00208
00209
00210
00211 inline XMLAttDefList::~XMLAttDefList()
00212 {
00213 }
00214
00215
00216
00217
00218
00219 inline XMLAttDefList::XMLAttDefList(MemoryManager* const manager):
00220 fMemoryManager(manager)
00221 {
00222 }
00223
00224 XERCES_CPP_NAMESPACE_END
00225
00226 #endif