LEGOIslandRebuilder/lib/config.h

29 lines
445 B
C
Raw Normal View History

2021-09-22 15:16:20 -04:00
#ifndef CONFIG_H
#define CONFIG_H
#include <STRING>
#include <TCHAR.H>
#include <WINDOWS.H>
class Config
{
public:
Config();
BOOL Load();
UINT GetInt(LPCTSTR name, UINT defaultValue = 0);
2021-10-18 13:15:56 -04:00
float GetFloat(LPCTSTR name, float defaultValue = 0.0f);
std::string GetString(LPCTSTR name, const std::string &defaultValue = std::string());
2021-09-22 15:16:20 -04:00
private:
std::basic_string<TCHAR> m_configFile;
};
extern Config config;
#endif // CONFIG_H