#ifndef CONFIG_H #define CONFIG_H #include #include #include 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 m_configFile; }; extern Config config; #endif // CONFIG_H