| 271 | } |
| 272 | |
| 273 | void ScriptParams::ASAddJSONFromString(const std::string &key, const std::string &default_val) { |
| 274 | if (parameter_map_.find(key) != parameter_map_.end()) { |
| 275 | return; |
| 276 | } |
| 277 | ScriptParam sp; |
| 278 | sp.SetJSONFromString(default_val); |
| 279 | parameter_map_.insert(std::pair<std::string, ScriptParam>(key, sp)); |
| 280 | } |
| 281 | |
| 282 | void ScriptParams::ASAddJSON(const std::string &key, SimpleJSONWrapper &details) { |
| 283 | if (parameter_map_.find(key) != parameter_map_.end()) { |
nothing calls this directly
no test coverage detected