/* ---- This file is part of SECONDO. Copyright (C) 2004, University in Hagen, Department of Computer Science, Database Systems for New Applications. SECONDO is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. SECONDO is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SECONDO; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ---- //paragraph [1] Title: [{\Large \bf \begin {center}] [\end {center}}] //[TOC] [\tableofcontents] //[_] [\_] [1] Implementation of the Indoor Algebra June, 2010 Jianqiu Xu [TOC] 1 Overview 2 Defines and Includes */ #undef __TRACE__ //#define __TRACE__ cout << __FILE__ << "::" << __LINE__; #define __TRACE__ #include "../../Tools/Flob/Flob.h" #include "../../Tools/Flob/DbArray.h" #include "Algebra.h" #include "NestedList.h" #include "ListUtils.h" #include "Symbols.h" #include "QueryProcessor.h" #include "StandardTypes.h" #include "IndoorAlgebra.h" #include "SecondoConfig.h" #include "AlmostEqual.h" #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; extern NestedList* nl; extern QueryProcessor* qp; /* 11 Creating the Algebra */ class IndoorAlgebra : public Algebra { public: IndoorAlgebra() : Algebra() { } ~IndoorAlgebra() {}; }; /* 12 Initialization Each algebra module needs an initialization function. The algebra manager has a reference to this function if this algebra is included in the list of required algebras, thus forcing the linker to include this module. The algebra manager invokes this function to get a reference to the instance of the algebra class and to provide references to the global nested list container (used to store constructor, type, operator and object information) and to the query processor. The function has a C interface to make it possible to load the algebra dynamically at runtime. */ extern "C" Algebra* InitializeIndoorAlgebra( NestedList* nlRef, QueryProcessor* qpRef ) { nl = nlRef; qp = qpRef; return (new IndoorAlgebra()); }