diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-08-19 01:07:55 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-08-19 01:07:55 -0400 |
commit | 3c3fe3b9f727c1e398760b139a2ef2da41d3cbda (patch) | |
tree | cc25fe85a659c043440f5ec98f8b97a17ef10e52 /settings.hpp | |
parent | 18af78e6af49821f8c7adb5b4325d75c8bf4fd03 (diff) | |
download | abaddon-portaudio-3c3fe3b9f727c1e398760b139a2ef2da41d3cbda.tar.gz abaddon-portaudio-3c3fe3b9f727c1e398760b139a2ef2da41d3cbda.zip |
settings, token entry, receive READY
Diffstat (limited to 'settings.hpp')
-rw-r--r-- | settings.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/settings.hpp b/settings.hpp new file mode 100644 index 0000000..e6a5b99 --- /dev/null +++ b/settings.hpp @@ -0,0 +1,18 @@ +#pragma once +#include <string> +#include <SimpleIni.h> + +class SettingsManager { +public: + SettingsManager(std::string filename); + + void Close(); + std::string GetSetting(std::string section, std::string key, std::string fallback = ""); + void SetSetting(std::string section, std::string key, std::string value); + bool IsValid() const; + +private: + bool m_ok; + std::string m_filename; + CSimpleIniA m_ini; +}; |