12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef __CONF_STRUCT__
- #define __CONF_STRUCT__
- #pragma pack(1)
- struct ConfStruct
- {
- ConfStruct()
- {
- TimeAlarm_Closer=0;
- TimeAlarm_Remote=0;
- TimeWin=0;
- MaxScope=0;
- closer_slot = 0;
- remote_slot =0;
- split_win_minsec = 0;
- limit_sec= 0;
- max_scope_bigCar = 0;
- mid_car_length_goroup = 0;
- check_count = 0;
- response_alarm_time = 0;
- }
- static ConfStruct& getCs()
- {
- static ConfStruct g_cs;
- return g_cs;
- }
- double TimeAlarm_Closer;
- double TimeAlarm_Remote;
- int TimeWin;
- int MaxScope;
- int closer_slot;
- int remote_slot;
- int split_win_minsec;
- int limit_sec;
- double max_scope_bigCar;
- double mid_car_length_goroup;
- int check_count;
- int response_alarm_time;
- std::string to_str()
- {
- std::stringstream ss;
- ss<<"timeAlarm_Clo:"<<TimeAlarm_Closer<<" TimeAlarm_remo:"<<TimeAlarm_Remote<<" TimeWin:"<<TimeWin<<" maxscope:"<<MaxScope<<" remoteSlote:"<<remote_slot<<" cl:"<<closer_slot<<" sec:"<<limit_sec
- <<"checkcount:"<<check_count<<"response:"<<response_alarm_time;
- return std::move(ss.str());
- }
- };
- #endif
|