area_business_forbid.h 769 B

12345678910111213141516171819202122
  1. #ifndef AREA_BUSINESS_FORBID_H
  2. #define AREA_BUSINESS_FORBID_H
  3. #include"area_business.h"
  4. class area_business_forbid : public area_business
  5. {
  6. public:
  7. area_business_forbid();
  8. virtual int area_business_type()
  9. {
  10. return 7;
  11. }
  12. //记录进入时间等信息,生成告警
  13. void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr);
  14. void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  15. //记录退出时间等信息
  16. void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  17. };
  18. #endif // AREA_BUSINESS_FORBID_H