Xerces-C++: XMLGrammarPool.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_XMLGRAMMARPOOL_HPP)
23#define XERCESC_INCLUDE_GUARD_XMLGRAMMARPOOL_HPP
24
26#include <xercesc/util/RefHashTableOf.hpp>
29
30
32
33class Grammar;
35class DTDGrammar;
36class SchemaGrammar;
39class XMLStringPool;
42
44{
45public :
46
48
50
57
58
60
62
76 virtual bool cacheGrammar(Grammar* const gramToCache) = 0;
77
86
87
97
98
105
113
124
136
138
139
141
143
149
155
166
168
169
171
173
174
175
176
177
178
179
180
181
182
183
184
185
186
188
189
190
191
193
195
201 {
202 return fMemMgr;
203 }
204
213
214
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
272
273
274
275
276
278 {
279 fIgnoreSerializedAnnotations = flag;
280 };
282 {
283 return fIgnoreSerializedAnnotations;
284 };
285
286protected :
287
289
292 :fMemMgr(memMgr)
293 ,fIgnoreSerializedAnnotations(false)
294 {
295 };
297
298private :
299
301
306
307
308
309
310
311
312
313
314
316 bool fIgnoreSerializedAnnotations;
317
318};
319
321
322#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
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Definition BinInputStream.hpp:30
Definition BinOutputStream.hpp:30
Configurable memory manager.
Definition MemoryManager.hpp:40
Definition XMLDTDDescription.hpp:30
Definition XMLGrammarDescription.hpp:33
Definition XMLGrammarPool.hpp:44
virtual bool cacheGrammar(Grammar *const gramToCache)=0
cacheGrammar
XMLGrammarPool(MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager)
Hidden Constructors.
Definition XMLGrammarPool.hpp:291
virtual XMLStringPool * getURIStringPool()=0
Return an XMLStringPool for use by validation routines.
virtual void lockPool()=0
lockPool
bool getIgnoreSerializedAnnotations() const
Definition XMLGrammarPool.hpp:281
virtual XMLDTDDescription * createDTDDescription(const XMLCh *const systemId)=0
createDTDDescription
virtual void deserializeGrammars(BinInputStream *const)=0
virtual XMLSchemaDescription * createSchemaDescription(const XMLCh *const targetNamespace)=0
createSchemaDescription
virtual Grammar * retrieveGrammar(XMLGrammarDescription *const gramDesc)=0
retrieveGrammar
virtual void unlockPool()=0
unlockPool
virtual ~XMLGrammarPool()
virtual destructor
Definition XMLGrammarPool.hpp:55
virtual Grammar * orphanGrammar(const XMLCh *const nameSpaceKey)=0
orphanGrammar
virtual void serializeGrammars(BinOutputStream *const)=0
serialization and deserialization support
MemoryManager * getMemoryManager()
getMemoryManager
Definition XMLGrammarPool.hpp:200
virtual bool clear()=0
clear
virtual SchemaGrammar * createSchemaGrammar()=0
createSchemaGrammar
virtual RefHashTableOfEnumerator< Grammar > getGrammarEnumerator() const =0
Get an enumeration of the cached Grammars in the Grammar pool.
virtual DTDGrammar * createDTDGrammar()=0
createDTDGrammar
void setIgnoreSerializedAnnotations(const bool flag)
Definition XMLGrammarPool.hpp:277
virtual XSModel * getXSModel(bool &XSModelWasChanged)=0
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
Definition XMLSchemaDescription.hpp:33
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition XMemory.hpp:41
Definition XSModel.hpp:60