| 280 | } |
| 281 | |
| 282 | void ScriptParams::ASAddJSON(const std::string &key, SimpleJSONWrapper &details) { |
| 283 | if (parameter_map_.find(key) != parameter_map_.end()) { |
| 284 | return; |
| 285 | } |
| 286 | ScriptParam sp; |
| 287 | sp.SetJSON(details); |
| 288 | parameter_map_.insert(std::pair<std::string, ScriptParam>(key, sp)); |
| 289 | } |
| 290 | |
| 291 | SimpleJSONWrapper ScriptParams::ASGetJSON(const std::string &key) { |
| 292 | ScriptParamMap::iterator iter = parameter_map_.find(key); |