M_SplashScreenCFG.h 758 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_SplashScreenCFGData
  5. {
  6. //闪屏ID
  7. int mSplashScreenId;
  8. //文化部备案
  9. std::string mText1;
  10. //审批文号
  11. std::string mText2;
  12. //出版物号
  13. std::string mText3;
  14. //著作权人
  15. std::string mText4;
  16. //出版单位
  17. std::string mText5;
  18. //备注
  19. std::string mRemark;
  20. };
  21. class M_SplashScreenCFG
  22. {
  23. public:
  24. private:
  25. static std::auto_ptr<M_SplashScreenCFG> msSingleton;
  26. public:
  27. int GetCount();
  28. const M_SplashScreenCFGData* GetData(int SplashScreenId);
  29. boost::unordered_map<int, M_SplashScreenCFGData>& GetMapData();
  30. void Reload();
  31. void Load(const std::string& path);
  32. void Load();
  33. static M_SplashScreenCFG* GetSingleton();
  34. private:
  35. boost::unordered_map<int, M_SplashScreenCFGData> mMapData;
  36. };