1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_ActivityChipBoxCFGData
- {
- //Key
- std::string mKey;
- //ÊýÖµ
- int mValue;
- //×Ö·û´®
- std::string mStringValue;
- };
- class M_ActivityChipBoxCFG
- {
- public:
- private:
- static std::auto_ptr<M_ActivityChipBoxCFG> msSingleton;
- public:
- int GetCount();
- const M_ActivityChipBoxCFGData* GetData(std::string Key);
- boost::unordered_map<std::string, M_ActivityChipBoxCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_ActivityChipBoxCFG* GetSingleton();
- private:
- boost::unordered_map<std::string, M_ActivityChipBoxCFGData> mMapData;
- };
|