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, 2015 Oracle and/or its affiliates. All rights reserved.
5 *
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
20#ifndef XQILLACONFIGURATION_H
21#define XQILLACONFIGURATION_H
22
23#include <xqilla/framework/XQillaExport.hpp>
25
28
29class DocumentCache;
30class SequenceBuilder;
31class ItemFactory;
32class UpdateFactory;
33class URIResolver;
34class ASTToXML;
35class StaticContext;
36class DynamicContext;
37
38class XQILLA_API XQillaConfiguration : public XERCES_CPP_NAMESPACE_QUALIFIER XMemory
39{
40public:
42
43 virtual DocumentCache *createDocumentCache(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
44
46
48 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
49
50 virtual UpdateFactory *createUpdateFactory(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
51
52 virtual URIResolver *createDefaultURIResolver(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
53
54 virtual ASTToXML *createASTToXML() = 0;
55
56 virtual void populateStaticContext(StaticContext *context) {}
57
58 virtual void populateDynamicContext(DynamicContext *context) {}
59
60 virtual void testInterrupt() {}
61};
62
63#endif
Expression Context is a storage for contexts.
Definition: DocumentCache.hpp:53
The execution time dynamic context interface.
Definition: DynamicContext.hpp:39
Definition: ItemFactory.hpp:51
Definition: SequenceBuilder.hpp:32
The parse time static context interface.
Definition: StaticContext.hpp:58
This is an abstract class used to resolve URIs in different ways.
Definition: URIResolver.hpp:38
Definition: UpdateFactory.hpp:33
Definition: XQillaConfiguration.hpp:39
virtual void populateDynamicContext(DynamicContext *context)
Definition: XQillaConfiguration.hpp:58
virtual DocumentCache * createDocumentCache(xercesc::MemoryManager *memMgr)=0
virtual URIResolver * createDefaultURIResolver(xercesc::MemoryManager *memMgr)=0
virtual void testInterrupt()
Definition: XQillaConfiguration.hpp:60
virtual ~XQillaConfiguration()
Definition: XQillaConfiguration.hpp:41
virtual UpdateFactory * createUpdateFactory(xercesc::MemoryManager *memMgr)=0
virtual ItemFactory * createItemFactory(DocumentCache *cache, xercesc::MemoryManager *memMgr)=0
virtual void populateStaticContext(StaticContext *context)
Definition: XQillaConfiguration.hpp:56
virtual ASTToXML * createASTToXML()=0
virtual SequenceBuilder * createSequenceBuilder(const DynamicContext *context)=0