|
@@ -197,8 +197,12 @@ public:
|
|
|
ReaderMap mp_ctrl_reader_list; // 所有控制分站
|
|
|
AreaMap mp_area_list; // 所有区域
|
|
|
DrivingfaceWarningPointMap mp_drivingface_warning_point_list; // 掘进面告警点列表
|
|
|
+ DrivingfaceWarningPointMapAll mp_drivingface_warning_point_list_all;//掘进面告警全列表
|
|
|
SpecilaAreaEntryMap mp_special_area_entry_list; //特殊区域入口
|
|
|
DrivingfaceRenderMap mp_driving_face_render_list; //掘进面分站基点配置信息
|
|
|
+ DrivingfaceCardMap mp_driving_face_card_list;//掘进面标识卡配置信息 lemon
|
|
|
+ WorkTypePermissionMap mp_worktype_permission_list;// lemon 2017/07/31
|
|
|
+ RulesMap m_rules_list;
|
|
|
MapInfoMap mp_map_list; // 所有地图
|
|
|
LandmarkInfoMap mp_landmark_list; // 所有地图地标
|
|
|
MapDirectionInfoMap mp_map_direction_list; //地图坐标系X轴正方向与地理北方的夹角
|
|
@@ -230,7 +234,7 @@ public:
|
|
|
std::shared_ptr<CardMap> mp_card_list_over_speed_vehicle; // 超速车辆
|
|
|
std::shared_ptr<CardMap> mp_card_list_area_over_time_vehicle; // 区域超时车辆
|
|
|
std::shared_ptr<CardMap> mp_card_list_over_count_person; // 人员超员
|
|
|
-
|
|
|
+
|
|
|
std::shared_ptr<AreaMap> mp_area_over_count_person; // 人员超员区域
|
|
|
std::shared_ptr<AreaMap> mp_area_over_time_person; // 人员超时区域
|
|
|
std::shared_ptr<AreaMap> mp_area_forbidden_person; // 有人限制区域
|
|
@@ -238,6 +242,8 @@ public:
|
|
|
std::shared_ptr<AreaMap> mp_area_over_time_vehicle; // 车辆超时区域
|
|
|
std::shared_ptr<AreaMap> mp_area_forbidden_vehicle; // 有车限制区域
|
|
|
|
|
|
+ std::shared_ptr<CardMap> mp_card_warning_point_alarm;//lemon
|
|
|
+ std::shared_ptr<CardMap> mp_card_drivingface_eara_alarm;//lemon 20017/07/31 人员进入掘进机告警区域
|
|
|
std::shared_ptr<EventMap> mp_event_list; // 事件列表
|
|
|
std::shared_ptr<LightCallMap> mp_light_call_list; // 控制红绿等命令列表
|
|
|
|
|
@@ -257,7 +263,8 @@ public:
|
|
|
time_t cur_shift_start_time;
|
|
|
private:
|
|
|
int init_smart_pointer_var();
|
|
|
-
|
|
|
+private: //lemon
|
|
|
+ //int m_drivingfaceWarningIdForMinDis;
|
|
|
public:
|
|
|
void init_ui(); // 初始化界面
|
|
|
void init_param(); // 初始化运行参数
|
|
@@ -284,6 +291,8 @@ public:
|
|
|
int init_area(int area_id = 0); // 区域
|
|
|
int init_special_area_entry(void); // 特殊区域入口
|
|
|
int init_drivingface_render(void); //掘进面分站基准点配置
|
|
|
+ int init_drivingface_card(void);//lemon init drivingface_card..
|
|
|
+ int init_drivingface_permission_card(void);//lemon 2017/07/31
|
|
|
int init_reader(int reader_id = 0); // 分站
|
|
|
int init_ctrl_reader(int reader_id = 0); // 控制分站
|
|
|
//int init_antenna(int reader_id = 0); // 天线
|
|
@@ -296,7 +305,7 @@ public:
|
|
|
int init_section(int section_id = 0); //初始化路段
|
|
|
int init_light_group(int group_id = 0); //初始化红绿灯组
|
|
|
int init_light_state(CONNID dwConnID,std::string strIp);
|
|
|
-
|
|
|
+ int init_rules(int rule_id = 0); // 初始化规则表 2017/08/01
|
|
|
//int init_patrol_info(int task_id = 0); // 加载巡检任务及巡检路线
|
|
|
int init_patrol_info(std::string card_id);
|
|
|
int delete_patrol_info(std::string card_id);
|
|
@@ -391,37 +400,38 @@ public:
|
|
|
// 获取json串
|
|
|
string get_json_login();
|
|
|
string get_json_logout();
|
|
|
- string get_json_down_and_up(std::shared_ptr<Card> card);
|
|
|
- string get_json_special_area_process(std::shared_ptr<Card> card);
|
|
|
- string get_json_all_special_area_data();
|
|
|
- string get_json_counting();
|
|
|
- string get_json_position();
|
|
|
- string get_json_card_position(std::shared_ptr<Card> card);
|
|
|
- string get_json_drivingface_card_position(std::shared_ptr<Card> card);
|
|
|
- string get_json_position_all();
|
|
|
- int insert_data(int index, int key, StatisticDataStr** header);
|
|
|
+ bool need_display_verification(std::shared_ptr<Card> card); //是否需要推送 false 不需要 true 继续执行
|
|
|
+ string get_json_down_and_up(std::shared_ptr<Card> card); // 升入井接口,当有升井、入井数据时发送
|
|
|
+ string get_json_special_area_process(std::shared_ptr<Card> card); // 进入特殊区域接口,当车辆标识卡信号丢失,根据特殊区域业务,判断车辆进入相应特殊区域时发送
|
|
|
+ string get_json_all_special_area_data(); // 所有在特殊区域的车辆,用于前端登录时,发送全部数据
|
|
|
+ string get_json_counting(); //
|
|
|
+ string get_json_position(); // 实时位置信息接口,一定间隔主动发送 === 这个函数没处理。。处理get_json_card_statistic
|
|
|
+ string get_json_card_position(std::shared_ptr<Card> card); // 发送单个卡的实时位置,主要用于掘进机上报位置信息 ===这个函数没用
|
|
|
+ string get_json_drivingface_card_position(std::shared_ptr<Card> card); // done
|
|
|
+ string get_json_position_all(); // 所有实时位置信息,用于前端有用户登录时,上报所有数据 ==== handle this function : get_json_card_statistic
|
|
|
+ int insert_data(int index, int key, StatisticDataStr** header); // 用户
|
|
|
void delete_memory(StatisticDataStr *header);
|
|
|
Json::Value get_json_statistic_vehicle_data(Json::Value& vehicle_data);
|
|
|
Json::Value get_json_statistic_staff_data(Json::Value& staff_data);
|
|
|
- Json::Value get_json_statistic_data(StatisticDataStr* header);
|
|
|
+ Json::Value get_json_statistic_data(StatisticDataStr* header); // 每秒发送统计数据,里面包含了所有卡的位置信息,包括人员、车辆 == 处理链表中的数据成json
|
|
|
int get_json_node_position(std::shared_ptr<Card> card,Json::Value& detailNode);
|
|
|
void ReportCardStatistic();
|
|
|
- string get_json_card_statistic();
|
|
|
- string get_json_all_data();
|
|
|
- string get_json_device_state();
|
|
|
- string get_json_alarm();
|
|
|
- string get_json_call_test();
|
|
|
+ string get_json_card_statistic();//handle get_json_statistic_vehicle_data get_json_statistic_staff_data
|
|
|
+ string get_json_all_data(); // 前端有用户登录时,发送
|
|
|
+ string get_json_device_state(); // 分站状态信息
|
|
|
+ //string get_json_alarm(); // 所有告警,包括分站、卡、区域等 没有实现??
|
|
|
+ string get_json_call_test();
|
|
|
string get_json_help(); //求救json
|
|
|
string get_json_event(bool bAll = false);
|
|
|
- string get_json_call_list();
|
|
|
- string get_json_new_device_state();
|
|
|
- string get_json_count_area(); //统计区域人数
|
|
|
+ string get_json_call_list(); // 呼叫列表 not handle
|
|
|
+ string get_json_new_device_state(); // 分站状态信息
|
|
|
+ string get_json_count_area(); //统计区域人数 not handle
|
|
|
|
|
|
- Json::Value get_section_json_alarm();
|
|
|
- Json::Value get_light_json_alarm();
|
|
|
- Json::Value get_red_light_json_alarm();
|
|
|
- Json::Value get_json_count_list(int req_type,int area_id);
|
|
|
- Json::Value get_card_info(std::shared_ptr<Card> pCard);
|
|
|
+ Json::Value get_section_json_alarm(); // 路段告警
|
|
|
+ Json::Value get_light_json_alarm(); // 红绿灯告警
|
|
|
+ Json::Value get_red_light_json_alarm(); // 闯红灯告警
|
|
|
+ Json::Value get_json_count_list(int req_type,int area_id); //
|
|
|
+ Json::Value get_card_info(std::shared_ptr<Card> pCard); //
|
|
|
|
|
|
void send_json_data(string cmd, string data, bool is_login = false);
|
|
|
// 业务处理
|
|
@@ -440,8 +450,10 @@ public:
|
|
|
void card_enter_special_area(std::shared_ptr<Card> card, int area_id);
|
|
|
void card_leave_area(std::shared_ptr<Card> card, std::shared_ptr<Area> area);
|
|
|
void deal_card_state(std::shared_ptr<Card> card);
|
|
|
+ void deal_card_drivingface_permission(std::shared_ptr<Card> card);
|
|
|
void deal_alarm_card(std::shared_ptr<Card> card, std::shared_ptr<CardMap> dest_card_list, bool is_alarm, ALARM_FLAG tag);
|
|
|
void deal_drivingface_alarm(std::shared_ptr<Card> card, bool is_alarm, ALARM_FLAG tag);
|
|
|
+ void deal_drivingface_alarm_all();
|
|
|
void deal_alarm_area(std::shared_ptr<Area> area, std::shared_ptr<AreaMap> dest_area_list, bool is_alarm, ALARM_FLAG tag);
|
|
|
void deal_card_lost_state();
|
|
|
int get_special_area_id(shared_ptr<Card> card);
|
|
@@ -463,8 +475,8 @@ public:
|
|
|
void driving_face_shift_start();
|
|
|
void driving_face_shift_end();
|
|
|
void process_driving_face_end_service(std::shared_ptr<Card> card);
|
|
|
- void store_driving_face_data();
|
|
|
- void update_driving_face_data();
|
|
|
+ void store_driving_face_data(std::shared_ptr<Card> card);
|
|
|
+ void update_driving_face_data(std::shared_ptr<Card> card);//lemon changed..2017/07/29
|
|
|
void write_his_drivingface_real(std::shared_ptr<Card> card);
|
|
|
void save_card_postion(std::shared_ptr<Card> card); // 保存卡位置
|
|
|
void save_raw_data_card_tof(std::shared_ptr<Card> card);
|
|
@@ -514,6 +526,7 @@ public:
|
|
|
int deal_call_edit_section(int id,EDIT_TYPE_ID edit_type_id); //web端编辑路段信息
|
|
|
int deal_call_edit_light(int id,EDIT_TYPE_ID edit_type_id); //web端编辑灯信息
|
|
|
int deal_call_edit_chamber(int id,EDIT_TYPE_ID edit_type_id); //web端编辑硐室信息
|
|
|
+ void deal_call_edit_rules(int id,EDIT_TYPE_ID edit_type_id);//lemon 2017/08/01
|
|
|
|
|
|
void deal_call_edit_patrol_task(string id, EDIT_TYPE_ID edit_type_id);
|
|
|
void remove_card(string card_id);
|