LEGOIslandRebuilder/lib/config.h
2021-10-18 10:15:56 -07:00

28 lines
445 B
C++

#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);
float GetFloat(LPCTSTR name, float defaultValue = 0.0f);
std::string GetString(LPCTSTR name, const std::string &defaultValue = std::string());
private:
std::basic_string<TCHAR> m_configFile;
};
extern Config config;
#endif // CONFIG_H