car_sim.h 499 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "../common/notifier.h"
  3. #include <iostream>
  4. #include <fstream>
  5. #include <ctime>
  6. #include <csignal>
  7. class CEgoClient;
  8. class CControlSensor;
  9. /*
  10. 获取车端反馈状态信息
  11. 车辆报警信息
  12. */
  13. class CCarSim
  14. {
  15. public:
  16. CCarSim(CEgoClient* car);
  17. void Start() ;
  18. void Stop();
  19. void OnPeerMessage(int16_t cmd, int16_t length, const void* data);
  20. int64_t testPing;
  21. private:
  22. CEgoClient* _car;
  23. CControlSensor* _control_sensor;
  24. std::string filename;
  25. };