2021-09-21 17:00:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <atlstr.h>
|
|
|
|
|
|
|
|
class CConfigParser
|
|
|
|
{
|
2023-02-20 18:30:02 +00:00
|
|
|
const CStringW szConfigPath;
|
2021-09-30 18:19:21 +00:00
|
|
|
CSimpleMap<CStringW, CStringW> m_Keys;
|
2021-09-21 17:00:21 +00:00
|
|
|
|
2023-02-20 18:30:02 +00:00
|
|
|
void
|
|
|
|
CacheINI();
|
|
|
|
void
|
|
|
|
ReadSection(CStringW &Buffer, const CStringW &Section, BOOL isArch);
|
2021-09-21 17:00:21 +00:00
|
|
|
|
2023-02-20 18:30:02 +00:00
|
|
|
public:
|
2021-12-29 00:05:00 +00:00
|
|
|
CConfigParser(const CStringW &FilePath);
|
2021-09-21 17:00:21 +00:00
|
|
|
|
2023-02-20 18:30:02 +00:00
|
|
|
BOOL
|
|
|
|
GetString(const CStringW &KeyName, CStringW &ResultString);
|
|
|
|
BOOL
|
|
|
|
GetInt(const CStringW &KeyName, INT &iResult);
|
2021-09-21 17:00:21 +00:00
|
|
|
};
|