|
@@ -20,8 +20,6 @@ struct area_business_factory
|
|
|
{
|
|
|
void regist(int type,area_business* ab)
|
|
|
{
|
|
|
- type-=1;
|
|
|
-
|
|
|
ab->m_business_type=type;
|
|
|
|
|
|
if(type>=(int)m_check_list.size())
|
|
@@ -70,19 +68,17 @@ struct area_business_factory
|
|
|
std::vector<std::unique_ptr<area_business>> m_check_list;
|
|
|
area_business_factory()
|
|
|
{
|
|
|
- regist(1,new area_business_post_area);
|
|
|
- regist(2,new area_business_person_dwell_checker);
|
|
|
- regist(3,new area_business_count_checker);
|
|
|
- regist(4,new area_business_speed_checker);
|
|
|
- regist(5,new area_business_person_attendance);
|
|
|
- regist(6,new area_business_car_attendance);
|
|
|
- regist(7,new area_business_forbid);
|
|
|
- //regist(8,new area_business_monkey_area);
|
|
|
- regist(8,new area_business_card_enter_or_leave);
|
|
|
-
|
|
|
- regist(9, new area_business_motionless_persion);
|
|
|
- regist(10, new area_business_geofault);
|
|
|
- regist(11, new area_business_work_rate);
|
|
|
+ regist(0, new area_business_post_area);
|
|
|
+ regist(1, new area_business_person_dwell_checker);
|
|
|
+ regist(2, new area_business_count_checker);
|
|
|
+ regist(3, new area_business_speed_checker);
|
|
|
+ regist(4, new area_business_person_attendance);
|
|
|
+ regist(5, new area_business_car_attendance);
|
|
|
+ regist(6, new area_business_forbid);
|
|
|
+ regist(7, new area_business_card_enter_or_leave);
|
|
|
+ regist(8, new area_business_motionless_persion);
|
|
|
+ regist(9,new area_business_geofault);
|
|
|
+ regist(10,new area_business_work_rate);
|
|
|
}
|
|
|
|
|
|
};
|