12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_ThirdPluginOnlyCFGData
- {
- //°üÃû
- std::string mPackageName;
- //ÇþµÀºÅ
- std::string mChannelID;
- //ƽ̨
- std::string mPlatform;
- //±¸×¢
- std::string mRemark;
- };
- class M_ThirdPluginOnlyCFG
- {
- public:
- private:
- static std::auto_ptr<M_ThirdPluginOnlyCFG> msSingleton;
- public:
- int GetCount();
- const M_ThirdPluginOnlyCFGData* GetData(std::string PackageName);
- boost::unordered_map<std::string, M_ThirdPluginOnlyCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_ThirdPluginOnlyCFG* GetSingleton();
- private:
- boost::unordered_map<std::string, M_ThirdPluginOnlyCFGData> mMapData;
- };
|