| 1597 | } |
| 1598 | |
| 1599 | bool PipelineParser::parse_next( |
| 1600 | const json::value& input, |
| 1601 | const std::string& key, |
| 1602 | std::vector<NodeAttr>& output, |
| 1603 | const std::vector<NodeAttr>& default_next) |
| 1604 | { |
| 1605 | auto next_opt = input.find(key); |
| 1606 | if (!next_opt) { |
| 1607 | output = default_next; |
| 1608 | return true; |
| 1609 | } |
| 1610 | |
| 1611 | return parse_next(*next_opt, output); |
| 1612 | } |
| 1613 | |
| 1614 | bool PipelineParser::parse_next(const json::value& input, std::vector<NodeAttr>& output) |
| 1615 | { |