00001 /* 00002 * Copyright (c) 2001, 2008, 00003 * DecisionSoft Limited. All rights reserved. 00004 * Copyright (c) 2004, 2015 Oracle and/or its affiliates. All rights reserved. 00005 * 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); 00008 * you may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 */ 00019 00020 #ifndef XQILLACONFIGURATION_H 00021 #define XQILLACONFIGURATION_H 00022 00023 #include <xqilla/framework/XQillaExport.hpp> 00024 #include <xqilla/simple-api/XQilla.hpp> 00025 00026 #include <xercesc/framework/MemoryManager.hpp> 00027 #include <xercesc/util/XMemory.hpp> 00028 00029 class DocumentCache; 00030 class SequenceBuilder; 00031 class ItemFactory; 00032 class UpdateFactory; 00033 class URIResolver; 00034 class ASTToXML; 00035 class StaticContext; 00036 class DynamicContext; 00037 00038 class XQILLA_API XQillaConfiguration : public XERCES_CPP_NAMESPACE_QUALIFIER XMemory 00039 { 00040 public: 00041 virtual ~XQillaConfiguration() {} 00042 00043 virtual DocumentCache *createDocumentCache(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0; 00044 00045 virtual SequenceBuilder *createSequenceBuilder(const DynamicContext *context) = 0; 00046 00047 virtual ItemFactory *createItemFactory(DocumentCache *cache, 00048 XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0; 00049 00050 virtual UpdateFactory *createUpdateFactory(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0; 00051 00052 virtual URIResolver *createDefaultURIResolver(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0; 00053 00054 virtual ASTToXML *createASTToXML() = 0; 00055 00056 virtual void populateStaticContext(StaticContext *context) {} 00057 00058 virtual void populateDynamicContext(DynamicContext *context) {} 00059 00060 virtual void testInterrupt() {} 00061 }; 00062 00063 #endif