| 102 | |
| 103 | template<typename T> |
| 104 | void Set(const std::wstring& name, const T& value, SettingType type = SettingType::Binary) { |
| 105 | auto it = _settings.find(name); |
| 106 | if (it != _settings.end()) { |
| 107 | it->second.Set(value); |
| 108 | } |
| 109 | else { |
| 110 | Setting s(name, value, type); |
| 111 | _settings.insert({ name,std::move(s) }); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | void Set(PCWSTR name, int value); |
| 116 | void Set(PCWSTR name, std::vector<std::wstring> const& values); |