| 138 | } |
| 139 | |
| 140 | bool ScriptParams::IsParamJSON(const std::string &val) const { |
| 141 | ScriptParamMap::const_iterator iter = parameter_map_.find(val); |
| 142 | |
| 143 | if (iter == parameter_map_.end() || !(iter->second.IsJSON())) { |
| 144 | return false; |
| 145 | } else { |
| 146 | return true; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | float ScriptParams::ASGetFloat(const std::string &key) { |
| 151 | ScriptParamMap::iterator iter = parameter_map_.find(key); |