00001 #include "AbstractModule.h" 00002 #include <iostream> 00003 00004 void AbstractModule::deleteGUI() 00005 { 00006 if (m_gui != NULL) { 00007 m_gui->destroy(); 00008 delete m_gui; 00009 } 00010 } 00011 00012 void AbstractModule::setGUI(AbstractModuleGUI *gui) 00013 { 00014 m_gui = gui; 00015 m_gui->init(); 00016 } 00017 00018 void AbstractModule::assertFramedataType(IFrameData *data, std::string type, std::string where) throw(WarningWrongFrameDataType) 00019 { 00020 if (data->getType() != type) { 00021 delete data; 00022 throw WarningWrongFrameDataType(where.c_str(), type.c_str(), data->getType().c_str()); 00023 } 00024 }