| 247 | } |
| 248 | |
| 249 | void ScriptParams::ASAddString(const std::string &key, const std::string &default_val) { |
| 250 | if (parameter_map_.find(key) != parameter_map_.end()) { |
| 251 | return; |
| 252 | } |
| 253 | ScriptParam sp; |
| 254 | sp.SetString(default_val); |
| 255 | parameter_map_.insert(std::pair<std::string, ScriptParam>(key, sp)); |
| 256 | } |
| 257 | |
| 258 | void ScriptParams::InsertScriptParam(const std::string &key, ScriptParam sp) { |
| 259 | if (parameter_map_.find(key) != parameter_map_.end()) { |
no test coverage detected