00001 /* boss_conman.h $Revision: 1.3 $ $Date: 2005/12/10 20:33:54 $ 00002 Copyright (C) 2003 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 */ 00021 00027 #ifndef BOSS_SYNTHESIS_MODULE_HPP 00028 #define BOSS_SYNTHESIS_MODULE_HPP 00029 00030 //#include <xercesc/dom/DOM.hpp> 00031 #include "boss_utility/boss_config.h" 00032 #include "boss_utility/boss_module.h" 00033 00034 typedef dsp::vector< short > t_Signal; 00035 00037 00038 class BOSS_ConMan : public BOSS::Module { 00039 public: 00040 BOSS_ConMan(BOSS::Config & __config, MySQL_Handler * __database): 00041 BOSS::Module(__config, __database) {} 00042 virtual ~BOSS_ConMan() {} 00043 00044 void writeSignalToXML(t_Signal & signal, xercesc::DOMNode* sentence) { 00045 DOM_UserData * user_data; 00046 if((user_data = (DOM_UserData*)BOSS::getUserData(sentence)) == 0) { 00047 user_data = new DOM_UserData(); 00048 BOSS::setUserData(sentence, user_data); 00049 } 00050 user_data->setSignal(signal); 00051 } 00052 00053 }; 00054 00055 #endif 00056