최종완료보고 버전
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#ifndef CONFIG__H_
|
||||
#define CONFIG__H_
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
|
||||
class HIniFile;
|
||||
|
||||
|
||||
class HConfig : public HObject
|
||||
{
|
||||
public:
|
||||
HConfig();
|
||||
~HConfig();
|
||||
|
||||
virtual bool OpenConfig(const char * pszPathName);
|
||||
virtual void CloseConfig();
|
||||
virtual inline const char * GetConfigPathName() { return m_strConfigFile; }
|
||||
|
||||
virtual HString ReadString(const char * pszSetionName, const char * pszKeyName, const char * pszDefault);
|
||||
virtual bool WriteString(const char * pszSetionName, const char * pszKeyName, const char * pszString);
|
||||
|
||||
virtual int ReadNumber(const char * pszSetionName, const char * pszKeyName, int nDefault);
|
||||
virtual bool WriteNumber(const char * pszSetionName, const char * pszKeyName, int nNumber);
|
||||
|
||||
virtual bool ReadBoolean(const char * pszSetionName, const char * pszKeyName, bool bDefault);
|
||||
virtual bool WriteBoolean(const char * pszSetionName, const char * pszKeyName, bool bValue);
|
||||
|
||||
private:
|
||||
HString m_strConfigFile;
|
||||
HIniFile * m_pIniFile;
|
||||
};
|
||||
|
||||
#endif // CONFIG__H_
|
||||
Reference in New Issue
Block a user