| 289 | } |
| 290 | |
| 291 | bool Options::isSection(const std::string& name) const { |
| 292 | if (name.empty()) { |
| 293 | // Test this object |
| 294 | return is_section; |
| 295 | } |
| 296 | |
| 297 | // Is there a child section? |
| 298 | const auto child = children.find(name); |
| 299 | if (child == children.end()) { |
| 300 | return false; |
| 301 | } |
| 302 | return child->second.isSection(); |
| 303 | } |
| 304 | |
| 305 | template <> |
| 306 | Options& Options::assign<>(Field2D val, std::string source) { |
no outgoing calls