123456789101112131415161718192021222324252627282930 |
- #ifndef _CARD_HPP_
- #define _CARD_HPP_
- #include <thread>
- #include <ev++.h>
- #include "card_base.h"
- #include "write-copy.h"
- extern int three_rates_flag;
- struct card_list_visit:visitor<std::shared_ptr<card_location_base>>
- {
- bool visit(std::shared_ptr<card_location_base> c);
- bool _flag{false};
- };
- struct card_list:single_base<card_list,uint64_t,std::shared_ptr<card_location_base>>
- {
-
- void init_staffer(const std::string & lszId64);
- void init_vehicle(const std::string & lszId64);
- void on_message(zloop<task*> *loop,const message_locinfo&loc,bool is_history);
- void init_card_from_db();
- void load_his_card_postion_vehicle();
- void load_his_card_postion_staff();
- void load_his_card_postion_from_db();
-
- std::shared_ptr<card_location_base> get_card_by_cid(int cid);
- ~card_list(){}
- };
- #endif
|