25 std::istringstream iss(line);
26 std::istream_iterator<std::string> it(iss);
28 if (*it != std::string(
"MODEL_LAYER"))
30 ERR(
"Expected MODEL_LAYER keyword but '{:s}' found.\n", it->c_str());
31 throw std::runtime_error(
32 "In parseRegion() expected MODEL_LAYER keyword not found.\n");
37 while (it != std::istream_iterator<std::string>() && *it !=
"END")
39 auto const& region_it =
40 std::find_if(regions.begin(), regions.end(),
41 [&](
Region const& r) { return r.name == *it; });
42 if (region_it != regions.end())
44 l.
regions.push_back(*region_it);