hcp2.h 359 B

123456789101112131415161718192021222324252627
  1. #ifndef HCP2_H
  2. #define HCP2_H
  3. #include <iostream>
  4. #include <string>
  5. #include <cstring>
  6. #include <thread>
  7. class hcp2
  8. {
  9. public:
  10. hcp2(std::string strportname);
  11. ~hcp2();
  12. private:
  13. bool mbthreadrun = true;
  14. std::thread * mpthread;
  15. std::string mstrportname;
  16. std::string mstrgpsdata;
  17. private:
  18. void threadrecv();
  19. };
  20. #endif // HCP2_H