www.pudn.com > cfgcrypt.rar > cfgcrypt.h


#ifndef __CFG_CRYPT_H__ 
#define __CFG_CRYPT_H__ 
 
#include  
#include  
 
#include "TCrypt.h" 
 
 
using std::map; 
using std::string; 
 
 
class CCfgCrypt 
{ 
public: 
	CCfgCrypt(); 
	~CCfgCrypt(); 
 
private: 
	CCfgCrypt(const CCfgCrypt&); 
	CCfgCrypt operator=(const CCfgCrypt&); 
 
public: 
	bool getValue(const char* pszItem, string& strValue); 
 
private: 
	void scanCfgFile(); 
 
private: 
	enum ESCANRET 
	{ 
		E_SCAN_NO = 0,		//尚未扫描配置文件 
		E_SCAN_YES = 1,		//已经扫描配置文件 
		E_SCAN_ERR = 2		//配置文件扫描错误 
	}; 
 
private: 
	ESCANRET m_eScanRet; 
	string m_strScanErr; 
	map m_CfgDict; 
 
}; 
 
#endif