00001 /* boss_tools.h $Revision: 1.3 $ 00002 Copyright (C) 2004 University of Bonn. 00003 http://www.ikp.uni-bonn.de/boss 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 00025 #ifndef BOSS_MODULE_H 00026 #define BOSS_MODULE_H 00027 00028 using namespace std; 00029 00030 #include "xercesc/dom/DOM.hpp" 00031 #include "boss_utility/boss_config.h" 00032 #include "boss_mysql/boss_mysql_handler.h" 00033 #include <string> 00034 00035 namespace BOSS{ 00036 00037 class Module { 00038 protected: 00039 BOSS::Config & cl; 00040 MySQL_Handler * data_base; 00041 00042 public: 00043 Module(BOSS::Config & __cl, MySQL_Handler * __data_base): cl(__cl), data_base(__data_base) {} 00044 virtual void operator()(xercesc::DOMNode*) = 0; 00045 virtual string getDescription() = 0; 00046 }; 00047 } 00048 00049 // synthesis module class factories types 00050 typedef BOSS::Module * create_module(BOSS::Config &, MySQL_Handler *); 00051 typedef void destroy_module(BOSS::Module *); 00052 00053 #endif