#pragma once #include #include struct M_SplashScreenCFGData { //闪屏ID int mSplashScreenId; //文化部备案 std::string mText1; //审批文号 std::string mText2; //出版物号 std::string mText3; //著作权人 std::string mText4; //出版单位 std::string mText5; //备注 std::string mRemark; }; class M_SplashScreenCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_SplashScreenCFGData* GetData(int SplashScreenId); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_SplashScreenCFG* GetSingleton(); private: boost::unordered_map mMapData; };