#pragma once #include #include struct M_ThirdPluginCFGData { //渠道号 std::string mChannelID; //平台 std::string mPlatform; //脚本路径 std::string mLuaFilePath; //备注 std::string mRemark; }; class M_ThirdPluginCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_ThirdPluginCFGData* GetData(std::string ChannelID); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_ThirdPluginCFG* GetSingleton(); private: boost::unordered_map mMapData; };