1 #pragma once 2 3 #include <atlstr.h> 4 5 class CConfigParser 6 { 7 const CStringW szConfigPath; 8 CSimpleMap<CStringW, CStringW> m_Keys; 9 10 void 11 CacheINI(); 12 void 13 ReadSection(CStringW &Buffer, const CStringW &Section, BOOL isArch); 14 15 public: 16 CConfigParser(const CStringW &FilePath); 17 18 BOOL 19 GetString(const CStringW &KeyName, CStringW &ResultString); 20 BOOL 21 GetInt(const CStringW &KeyName, INT &iResult); 22 }; 23