#include "ivmodule.h" #include #include namespace iv { ivmodule::ivmodule() { } ivmodule::~ivmodule() { mbrun = false; mpthread->join(); } void ivmodule::start() { mbrun = true; mpthread = new std::thread(&ivmodule::modulerun,this); } void ivmodule::modulerun() { } void ivmodule::setmodulename(const char *strmodulename) { strncpy(mstrmodulename,strmodulename,256); } #ifdef USE_PLUS_MODULECOMM void ivmodule::setdefaultcommtype(iv::modulecomm::ModuleComm_TYPE xtype) { mdefcommtype = xtype; } iv::modulecomm::ModuleComm_TYPE ivmodule::getdefefaultcommtype() { return mdefcommtype; } #endif }