ivmodule.cpp 625 B

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