Source:TyranoMapHack123/IniReader.h

From Codemotion
Jump to: navigation, search

Source:TyranoMapHack123/IniReader.h

Description

Ini Reading class headers by Xiangxiong Jian: http://www.codeproject.com/KB/cpp/IniReader.aspx.

Code

Parent Directory: Source:TyranoMapHack123
Plain Code: edit

  1. #ifndef INIREADER_H
  2. #define INIREADER_H
  3. class CIniReader
  4. {
  5. public:
  6.  CIniReader(char* szFileName); 
  7.  int ReadInteger(char* szSection, char* szKey, int iDefaultValue);
  8.  float ReadFloat(char* szSection, char* szKey, float fltDefaultValue);
  9.  bool ReadBoolean(char* szSection, char* szKey, bool bolDefaultValue);
  10.  char* ReadString(char* szSection, char* szKey, const char* szDefaultValue);
  11. private:
  12.   char m_szFileName[255];
  13. };
  14. #endif//INIREADER_H
Personal tools