#pragma once #include #include struct M_ServerURLData { //ID std::string mID; //URL std::string mURL; }; class M_ServerURL { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_ServerURLData* GetData(std::string ID); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_ServerURL* GetSingleton(); private: boost::unordered_map mMapData; };