| 533 | } |
| 534 | |
| 535 | std::string MetalinkParserStateMachine::getErrorString() const |
| 536 | { |
| 537 | std::stringstream error; |
| 538 | error << "Specification violation: "; |
| 539 | std::copy(errors_.begin(), errors_.end(), |
| 540 | std::ostream_iterator<std::string>(error, ", ")); |
| 541 | return error.str(); |
| 542 | } |
| 543 | |
| 544 | std::unique_ptr<Metalinker> MetalinkParserStateMachine::getResult() |
| 545 | { |