api_shared_types.h

Go to the documentation of this file.
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 XQuery;
00026   class StaticContext;
00027   class DynamicContext;
00028   class XmlDataManager;
00029   class Iterator;
00030   class ResultIterator;
00031   class StatelessExternalFunction;
00032   class TypeIdentifier;
00033   class ItemSequence;
00034   class Collection;
00035 
00036   class ErrorHandler;
00037 
00038 
00039   // smart pointers
00040   typedef zorba::SmartPtr<XQuery>                     XQuery_t;
00041   typedef zorba::SmartPtr<StaticContext>              StaticContext_t;
00042   typedef zorba::SmartPtr<ResultIterator>             ResultIterator_t;
00043   typedef zorba::SmartPtr<Iterator>                   Iterator_t;
00044   typedef zorba::SmartPtr<TypeIdentifier>             TypeIdentifier_t;
00045   typedef zorba::SmartPtr<Collection>                 Collection_t;
00046 
00047   // auto pointer (used for transfering ownership of the return type of external functions)
00048   typedef std::auto_ptr<ItemSequence>                   ItemSequence_t;
00049 
00050   // data handlers 
00051   class Item;
00052   class String;
00053 
00054 } /* namespace zorba */
00055 #endif