1
0

area_business_count_checker.cpp 889 B

1234567891011121314151617181920212223242526272829303132
  1. #include "area.h"
  2. #include "card_base.h"
  3. #include "area_business_count_checker.h"
  4. /*
  5. 判断当前区域a中的人数是否超过设定人数,超过后告警
  6. 区域内实时人数存储在area对象中,在当前类on_enter/on_leave中进行更新
  7. 整个井下的超员和某个区域的超员都使用这个代码
  8. */
  9. //增加计数,并进行判断
  10. void area_business_count_checker::on_enter(const std::shared_ptr<area_hover>&a,
  11. const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr)
  12. {
  13. }
  14. void area_business_count_checker::on_hover(const std::shared_ptr<area_hover>&a,
  15. const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
  16. {
  17. }
  18. //减少计数
  19. void area_business_count_checker::on_leave(const std::shared_ptr<area_hover>&a,
  20. const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
  21. {
  22. }