M_ThirdPluginOnlyCFG.h 651 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <map>
  3. struct M_ThirdPluginOnlyCFGData
  4. {
  5. //°üÃû
  6. std::string mPackageName;
  7. //ÇþµÀºÅ
  8. std::string mChannelID;
  9. //ƽ̨
  10. std::string mPlatform;
  11. //±¸×¢
  12. std::string mRemark;
  13. };
  14. class M_ThirdPluginOnlyCFG
  15. {
  16. public:
  17. private:
  18. static std::auto_ptr<M_ThirdPluginOnlyCFG> msSingleton;
  19. public:
  20. int GetCount();
  21. const M_ThirdPluginOnlyCFGData* GetData(std::string PackageName);
  22. const std::map<std::string, M_ThirdPluginOnlyCFGData>& GetMapData();
  23. void Load();
  24. void LoadLua();
  25. void Reload();
  26. static M_ThirdPluginOnlyCFG* GetSingleton();
  27. static void Release();
  28. private:
  29. std::map<std::string, M_ThirdPluginOnlyCFGData> mMapData;
  30. };