ivmodule.cpp 603 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include "ivmodule.h"
  2. #include <string.h>
  3. namespace iv {
  4. ivmodule::ivmodule()
  5. {
  6. }
  7. ivmodule::~ivmodule()
  8. {
  9. mbrun = false;
  10. mpthread->join();
  11. }
  12. void ivmodule::start()
  13. {
  14. mbrun = true;
  15. mpthread = new std::thread(&ivmodule::modulerun,this);
  16. }
  17. void ivmodule::modulerun()
  18. {
  19. }
  20. void ivmodule::setmodulename(const char *strmodulename)
  21. {
  22. strncpy(mstrmodulename,strmodulename,256);
  23. }
  24. void ivmodule::setdefaultcommtype(iv::modulecomm::ModuleComm_TYPE xtype)
  25. {
  26. mdefcommtype = xtype;
  27. }
  28. iv::modulecomm::ModuleComm_TYPE ivmodule::getdefefaultcommtype()
  29. {
  30. return mdefcommtype;
  31. }
  32. }