| 289 | } |
| 290 | |
| 291 | SimpleJSONWrapper ScriptParams::ASGetJSON(const std::string &key) { |
| 292 | ScriptParamMap::iterator iter = parameter_map_.find(key); |
| 293 | SimpleJSONWrapper ret_val; |
| 294 | if (iter != parameter_map_.end()) { |
| 295 | ScriptParam &sp = iter->second; |
| 296 | ret_val = sp.GetJSON(); |
| 297 | } else { |
| 298 | DisplayError("Error", ("No parameter \"" + key + "\" of correct type.").c_str()); |
| 299 | } |
| 300 | return ret_val; |
| 301 | } |
| 302 | |
| 303 | const ScriptParamMap &ScriptParams::GetParameterMap() const { |
| 304 | return parameter_map_; |
nothing calls this directly
no test coverage detected