123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct Fish_GetTelephoneBillData
- {
- //key
- int mID;
- //Ãû×Ö
- std::string mName;
- //ÃèÊö
- std::string mDesc;
- //ͼ¼øÍ¼±ê
- std::string mBookIcon;
- //ǰÍù
- int mGoTo;
- };
- class Fish_GetTelephoneBill
- {
- public:
- private:
- static std::auto_ptr<Fish_GetTelephoneBill> msSingleton;
- public:
- int GetCount();
- const Fish_GetTelephoneBillData* GetData(int ID);
- boost::unordered_map<int, Fish_GetTelephoneBillData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static Fish_GetTelephoneBill* GetSingleton();
- private:
- boost::unordered_map<int, Fish_GetTelephoneBillData> mMapData;
- };
|