area_business_post_area.h 784 B

1234567891011121314151617181920212223
  1. #ifndef _area_business_post_area_hpp_
  2. #define _area_business_post_area_hpp_
  3. #include"area_business.h"
  4. /*
  5. 确定推送人员信息时的区域,每一个明确需要推送的区域,都要推送
  6. */
  7. struct area_business_post_area:area_business
  8. {
  9. int area_business_type()
  10. {
  11. return 1;
  12. }
  13. //将推送区域信息加入人员数据
  14. void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr);
  15. void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  16. //从人员数据中清除区域信息
  17. void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  18. };
  19. #endif