Fish_GetTelephoneBill.h 674 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_GetTelephoneBillData
  5. {
  6. //key
  7. int mID;
  8. //Ãû×Ö
  9. std::string mName;
  10. //ÃèÊö
  11. std::string mDesc;
  12. //ͼ¼øÍ¼±ê
  13. std::string mBookIcon;
  14. //ǰÍù
  15. int mGoTo;
  16. };
  17. class Fish_GetTelephoneBill
  18. {
  19. public:
  20. private:
  21. static std::auto_ptr<Fish_GetTelephoneBill> msSingleton;
  22. public:
  23. int GetCount();
  24. const Fish_GetTelephoneBillData* GetData(int ID);
  25. boost::unordered_map<int, Fish_GetTelephoneBillData>& GetMapData();
  26. void Reload();
  27. void Load(const std::string& path);
  28. void Load();
  29. static Fish_GetTelephoneBill* GetSingleton();
  30. private:
  31. boost::unordered_map<int, Fish_GetTelephoneBillData> mMapData;
  32. };