| 136 | |
| 137 | template<typename T> |
| 138 | T GetValueOrDefault(PCWSTR name, const T& def = T()) const { |
| 139 | auto it = _settings.find(name); |
| 140 | if (it == _settings.end()) |
| 141 | return def; |
| 142 | ATLASSERT(it->second.Size == sizeof(T)); |
| 143 | return *(T*)it->second.Buffer.get(); |
| 144 | } |
| 145 | |
| 146 | int GetInt32(PCWSTR name) const; |
| 147 |