Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

boss_synthesis.h

Go to the documentation of this file.
00001 /* boss_synthesis.h    $Revision: 1.4 $ $Date: 2005/12/10 20:33:54 $
00002    Copyright (C) 2000 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 
00027 using namespace std;
00028 
00029 #ifndef BOSS_SYNTHESIS_H
00030 #define BOSS_SYNTHESIS_H
00031 
00032 //#include "boss_conman/boss_conman.h"
00033 
00034 #include "boss_utility/dom_tools.h"
00035 #include "boss_utility/boss_module.h"
00036 #include "boss_utility/boss_types.h"
00037 #include "tdsp/dsp_weight_window.h"
00038 #include "tdsp/dsp_vector.h"
00039 #include "boss_mysql/boss_mysql_handler.h"
00040 #include "boss_utility/boss_config.h"
00041 #include "boss_utility/dom_userdata.h"
00042 #include "fstream"
00043 #include "ltdl.h"
00044 
00050 typedef dsp::vector< short > t_Signal;
00069 class BOSS_Synthesis {
00070  protected:
00071   typedef pair<string, BOSS::Module *> ModulePointer;
00072   typedef vector<ModulePointer> Scheduler;
00073   typedef map<string, pair< Scheduler, MySQL_Handler * > > InvMap;
00074   InvMap invmap; 
00075   Scheduler * scheduler;
00076   MySQL_Handler * data_base;
00077   BOSS::Config & cl;
00078   //  BOSS_ConMan * con_man;
00079   
00080   void initModules(const string & inv);
00081   BOSS::Module * load(const string & name);
00082   void setInventory(xercesc::DOMNode * sentence);
00083   
00084  public:
00085   
00086   BOSS_Synthesis(BOSS::Config & c);
00087   t_Signal operator () (xercesc::DOMNode * sentence);
00088   ~BOSS_Synthesis();
00089 };
00090  // end of boss_server group
00092 #endif

Generated on Tue Dec 20 23:14:38 2005 for BOSS by doxygen 1.3.6