123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef _YASL_SETTINS_H
- #define _YASL_SETTINS_H
- #include <time.h>
- #include <map>
- #include "common_tool.h"
- struct SSys_setting // system_limit_setting
- {
- unsigned int over_count_person;
- unsigned int over_count_vehicle;
- unsigned int over_time_person;
- unsigned int over_time_vehicle;
- double over_speed;
-
- int att_starttime_offset_staff;
- int att_endtime_offset_staff;
- int att_starttime_offset_vehicle;
- int att_endtime_offset_vehicle;
- uint64_t att_person_thre_hour;
-
- double rear_end_d;
- time_t rear_end_t;
- double geofault_warn_dis;
- std::string rav_disable;
- SSys_setting()
- {
- init();
- }
- bool test_rav(uint8_t type,uint32_t id)
- {
- bool f = false;
- std::string cardid=tool_other::type_id_to_str(type,id);
- if(rav_disable.find(cardid) != std::string::npos)
- f=true;
- return f;
- }
- void init()
- {
- over_count_person = 1000;
- over_count_vehicle = 100;
- over_speed = 30;
- over_time_person = 36000;
- over_time_vehicle = 18000;
- att_endtime_offset_staff = 600;
- att_endtime_offset_vehicle = 600;
- att_starttime_offset_staff = 900;
- att_starttime_offset_vehicle = 600;
- att_person_thre_hour = 0;
- rear_end_d = 0;
- rear_end_t = 0;
- geofault_warn_dis=50;
- }
- };
- class CYaSetting
- {
- public:
-
- static SSys_setting m_sys_setting;
- static bool Init_sys_setting();
- };
- #endif
|