StoreProcessTask.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // Created by zx on 2020/7/7.
  3. //
  4. #ifndef NNXX_TESTS_STOREPROCESS_H
  5. #define NNXX_TESTS_STOREPROCESS_H
  6. #include <parkspace_allocation_message.pb.h>
  7. #include "TaskQueue/BaseTask.h"
  8. #include "Locate_communicator.h"
  9. class StoreProcessTask :public tq::BaseTask{
  10. public:
  11. StoreProcessTask();
  12. virtual ~StoreProcessTask();
  13. Error_manager init_task(unsigned int command_id, unsigned int terminor_id,std::string license);
  14. protected:
  15. virtual void Main();
  16. /*
  17. * 定位
  18. */
  19. Error_manager locate_step();
  20. /*
  21. * 分配车位
  22. */
  23. Error_manager alloc_space_step();
  24. /*
  25. * 车位解锁,当停车失败时需要车位解锁
  26. */
  27. Error_manager release_space_step();
  28. protected:
  29. unsigned int m_command_id;
  30. unsigned int m_terminor_id;
  31. std::string m_license; //当前流程的车辆标识(车牌号)
  32. //以下的流程中产生的数据
  33. message::Measure_response_msg m_measure_response_msg; //测量数据
  34. message::Parkspace_allocation_response_msg m_parcspace_alloc_response_msg; //分配的车位数据
  35. public:
  36. bool mb_completed;
  37. };
  38. #endif //NNXX_TESTS_STOREPROCESS_H