> The XQuery Processor
00001 /* 00002 * Copyright 2006-2008 The FLWOR Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef ZORBA_SHARED_TYPES_INCL_H 00017 #define ZORBA_SHARED_TYPES_INCL_H 00018 00019 #include <memory> 00020 00021 #include <zorba/smart_ptr.h> 00022 00023 namespace zorba { 00024 00025 class Zorba; 00026 class XQuery; 00027 class StaticContext; 00028 class DynamicContext; 00029 class XmlDataManager; 00030 class Iterator; 00031 class ResultIterator; 00032 class StatelessExternalFunction; 00033 class TypeIdentifier; 00034 class ItemSequence; 00035 class Collection; 00036 00037 class ErrorHandler; 00038 00039 00040 // smart pointers 00041 typedef zorba::SmartPtr<XQuery> XQuery_t; 00042 typedef zorba::SmartPtr<StaticContext> StaticContext_t; 00043 typedef zorba::SmartPtr<ResultIterator> ResultIterator_t; 00044 typedef zorba::SmartPtr<Iterator> Iterator_t; 00045 typedef zorba::SmartPtr<TypeIdentifier> TypeIdentifier_t; 00046 typedef zorba::SmartPtr<Collection> Collection_t; 00047 00048 // auto pointer (used for transfering ownership of the return type of external functions) 00049 typedef std::auto_ptr<ItemSequence> ItemSequence_t; 00050 00051 // data handlers 00052 class Item; 00053 class String; 00054 00055 // uri resolvers 00056 class DocumentURIResolver; 00057 class CollectionURIResolver; 00058 class SchemaURIResolver; 00059 class ModuleURIResolver; 00060 00061 } /* namespace zorba */ 00062 #endif