card.h 432 B

12345678910111213141516171819202122
  1. #ifndef _CARD_HPP_
  2. #define _CARD_HPP_
  3. #include <message.h>
  4. //#include <ev++.h>
  5. #include "write-copy.h"
  6. struct card_location_base;
  7. struct task;
  8. template<typename T> struct zloop;
  9. struct card_list:single_base<card_list,int64_t,std::shared_ptr<card_location_base>>
  10. {
  11. virtual void on_message(zloop<task*> *loop,const message_locinfo&loc,bool is_history)=0;
  12. virtual void init_card_from_db()=0;
  13. virtual ~card_list(){}
  14. };
  15. #endif