1234567891011121314151617181920212223242526272829303132 |
- #include "area.h"
- #include "card_base.h"
- #include "area_business_count_checker.h"
- /*
- 判断当前区域a中的人数是否超过设定人数,超过后告警
- 区域内实时人数存储在area对象中,在当前类on_enter/on_leave中进行更新
- 整个井下的超员和某个区域的超员都使用这个代码
- */
- //增加计数,并进行判断
- void area_business_count_checker::on_enter(const std::shared_ptr<area_hover>&a,
- const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr)
- {
- }
- void area_business_count_checker::on_hover(const std::shared_ptr<area_hover>&a,
- const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
- {
- }
- //减少计数
- void area_business_count_checker::on_leave(const std::shared_ptr<area_hover>&a,
- const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr)
- {
- }
|