#ifndef __MINE__BUSINESS__HPP__ #define __MINE__BUSINESS__HPP__ #include #include #include #include "point.h" class staffer_num_business; class reverse_alarm_business; class rear_end_collision_prevented_business; class card_location_base; struct mine_business { mine_business(const mine_business&)=delete; mine_business & operator=(const mine_business&)=delete; static mine_business *inst(); void run_business(); //人员数量曲线功 void fetch_add(bool); //天线反向功能 void load(); void make_reverse_condition(uint64_t type,uint32_t id,int32_t antid,uint32_t ct,uint64_t tof,uint32_t sid); //车辆防追尾告警 void put(const std::shared_ptr&); void make_arg(uint64_t cid,const point &p,uint64_t t); void clear_vehicle(); uint32_t get_mine_display_staff_num(); private: mine_business(); void handle_reverse_alarm(); void record_staffer_num(); void handle_rear_end(); std::unique_ptr m_staffer_num_ptr; std::unique_ptr m_reverse_alarm_ptr; std::unique_ptr m_rear_ended_ptr; }; #endif