| 262 | |
| 263 | template <typename CONT, typename FUNC> |
| 264 | void InfoWriter::SetArrayArray(std::string const& key, CONT const& container, |
| 265 | FUNC func) |
| 266 | { |
| 267 | Json::Value& jval = this->Value_[key]; |
| 268 | if (MakeArray(jval, container)) { |
| 269 | Json::ArrayIndex ii = 0; |
| 270 | for (auto const& citem : container) { |
| 271 | Json::Value& aval = jval[ii++]; |
| 272 | aval = Json::arrayValue; |
| 273 | func(aval, citem); |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | template <typename CONT> |
| 279 | void InfoWriter::SetConfigArray( |
no test coverage detected