00001
00002 #ifndef __INICONFIGREADER_H_
00003 #define __INICONFIGREADER_H_
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "peonstdafx.h"
00028
00029
00030
00031 namespace peon
00032 {
00043 class PEONMAIN_API IniConfigReader
00044 {
00045
00046 protected:
00048 String m_strFileName;
00049
00050 public:
00051
00056 IniConfigReader(const String& strFile);
00057
00061 ~IniConfigReader();
00062
00072 DWORD getString(const String sSection, const String sKey, const String sDefault, String& sReturn);
00073
00082 UINT getInt(String sSection, String sKeyName, int);
00083
00092 bool getBool(const String sSection, const String sKeyName, const String sDefault);
00093
00102 float getFloat(String sSection, String sKeyName, String sDefault);
00103
00104 };
00105
00106 }
00107
00108 #endif