#pragma once #include #include struct M_BaseInfoCFGData { //Key std::string mKey; //ÊýÖµ int mValue; //×Ö·û´® std::string mStringValue; }; class M_BaseInfoCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_BaseInfoCFGData* GetData(std::string Key); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_BaseInfoCFG* GetSingleton(); private: boost::unordered_map mMapData; };