| 196 | |
| 197 | template <class T> |
| 198 | void ConfigFile::Add(const std::string& in_key, const T& value) { |
| 199 | // Add a key with given value |
| 200 | std::string v = T_as_string(value); |
| 201 | std::string key = in_key; |
| 202 | Trim(key); |
| 203 | Trim(v); |
| 204 | m_Contents[key] = v; |
| 205 | return; |
| 206 | } |
| 207 | std::vector<int> stringToDims(const std::string& str, const std::string& pattern) { |
| 208 | std::vector<int> res; |
| 209 | if (str == "") { |