#pragma once #include #include struct M_PopupCFGData { //界面Key std::string mKey; //场景进入(登录,游戏) std::string mScene; //奖励开关 int mRewardCon; //额外描述 std::string mOtherDes; //排序 int mOder; //渠道 std::vector mChannel; }; class M_PopupCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_PopupCFGData* GetData(std::string Key); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_PopupCFG* GetSingleton(); private: boost::unordered_map mMapData; };