1
0

area_business_car_attendance.h 880 B

123456789101112131415161718192021222324
  1. #ifndef AREA_BUSINESS_CAR_ATTENDANCE_H
  2. #define AREA_BUSINESS_CAR_ATTENDANCE_H
  3. #include"area_business.h"
  4. struct area_business_car_attendance:area_business
  5. {
  6. area_business_car_attendance();
  7. int area_business_type()
  8. {
  9. return 6;
  10. }
  11. //记录进入时间等信息,结束考勤,根据离开的时间和距离,判断是否记录一条新的考勤记录
  12. void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr);
  13. void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  14. //记录离开考勤区域信息,开始考勤
  15. void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  16. };
  17. #endif // AREA_BUSINESS_CAR_ATTENDANCE_H