#pragma once
#include <boost/unordered_map.hpp>
#include <vector>
struct M_AccCheckCFGData
{
	//ID
	std::string mID;
	//ÕËºÅ±í
	std::string mAccTableName;
	//ÕËºÅkey
	std::string mAccKey;
	//³äÖµ±í
	std::string mPayTableName;
};

class M_AccCheckCFG
{
public:
private:
	static std::auto_ptr<M_AccCheckCFG> msSingleton;
public:
	int GetCount();
	const M_AccCheckCFGData* GetData(std::string ID);
	boost::unordered_map<std::string, M_AccCheckCFGData>& GetMapData();
	void Reload();
	void Load(const std::string& path);
	void Load();
	static M_AccCheckCFG* GetSingleton();
private:
	boost::unordered_map<std::string, M_AccCheckCFGData> mMapData;
};
