12345678910111213141516171819202122232425262728293031 |
- #ifndef IVMODULE_H
- #define IVMODULE_H
- #include <thread>
- #include "modulecomm.h"
- namespace iv {
- class ivmodule
- {
- public:
- ivmodule();
- ~ivmodule();
- public:
- void start();
- virtual void modulerun();
- void setmodulename(const char * strmodulename);
- void setdefaultcommtype(iv::modulecomm::ModuleComm_TYPE xtype);
- iv::modulecomm::ModuleComm_TYPE getdefefaultcommtype();
- public:
- bool mbrun = false;
- private:
- std::thread * mpthread;
- iv::modulecomm::ModuleComm_TYPE mdefcommtype = iv::modulecomm::ModuleComm_SHAREMEM;
- char mstrmodulename[256];
- };
- }
- #endif // IVMODULE_H
|