123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #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:
- public:
- bool mbrun = true;
- private:
- std::thread * mpthread;
- #ifdef MODULECOMM_DEFAULT_USE_INTER
- iv::modulecomm::ModuleComm_TYPE mdefcommtype = iv::modulecomm::ModuleComm_INTERIOR;
- #else
- #ifdef MODULECOMM_DEFAULT_USE_FASTRTPS
- iv::modulecomm::ModuleComm_TYPE mdefcommtype = iv::modulecomm::ModuleComm_FASTRTPS;
- #else
- iv::modulecomm::ModuleComm_TYPE mdefcommtype = iv::modulecomm::ModuleComm_SHAREMEM;
- #endif
- #endif
- char mstrmodulename[256];
- };
- }
- #endif // IVMODULE_H
|