SourceForge.net Logo
XQillaConfiguration.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2001-2008
3  * DecisionSoft Limited. All rights reserved.
4  * Copyright (c) 2004-2008
5  * Oracle. All rights reserved.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * $Id$
20  */
21 
22 #ifndef XQILLACONFIGURATION_H
23 #define XQILLACONFIGURATION_H
24 
25 #include <xqilla/framework/XQillaExport.hpp>
27 
29 #include <xercesc/util/XMemory.hpp>
30 
31 class DocumentCache;
32 class SequenceBuilder;
33 class ItemFactory;
34 class UpdateFactory;
35 class URIResolver;
36 class StaticContext;
37 class DynamicContext;
38 
39 class XQILLA_API XQillaConfiguration : public XERCES_CPP_NAMESPACE_QUALIFIER XMemory
40 {
41 public:
42  virtual ~XQillaConfiguration() {}
43 
44  virtual DocumentCache *createDocumentCache(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
45 
46  virtual SequenceBuilder *createSequenceBuilder(const DynamicContext *context) = 0;
47 
48  virtual ItemFactory *createItemFactory(DocumentCache *cache,
49  XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
50 
51  virtual UpdateFactory *createUpdateFactory(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
52 
53  virtual URIResolver *createDefaultURIResolver(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
54 
55  virtual void populateStaticContext(StaticContext *context) {}
56 
57  virtual void populateDynamicContext(DynamicContext *context) {}
58 
59  virtual void testInterrupt() {}
60 };
61 
62 #endif
virtual void testInterrupt()
Definition: XQillaConfiguration.hpp:59
Expression Context is a storage for contexts.
Definition: DocumentCache.hpp:54
This is an abstract class used to resolve URIs in different ways.
Definition: URIResolver.hpp:39
Definition: SequenceBuilder.hpp:33
The parse time static context interface.
Definition: StaticContext.hpp:59
virtual ~XQillaConfiguration()
Definition: XQillaConfiguration.hpp:42
Definition: UpdateFactory.hpp:34
The execution time dynamic context interface.
Definition: DynamicContext.hpp:39
Definition: XQillaConfiguration.hpp:39
Definition: ItemFactory.hpp:51
virtual void populateStaticContext(StaticContext *context)
Definition: XQillaConfiguration.hpp:55
virtual void populateDynamicContext(DynamicContext *context)
Definition: XQillaConfiguration.hpp:57