area_business_car_attendance.h 936 B

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