| 439 | |
| 440 | |
| 441 | void IdentificationData::registerParentGroupSet(const ParentGroupSet& groups) |
| 442 | { |
| 443 | if (!no_checks_) |
| 444 | { |
| 445 | checkAppliedProcessingSteps_(groups.steps_and_scores); |
| 446 | |
| 447 | for (const auto& group : groups.groups) |
| 448 | { |
| 449 | checkScoreTypes_(group.scores); // are the score types registered? |
| 450 | |
| 451 | for (const auto& ref : group.parent_refs) |
| 452 | { |
| 453 | if (!isValidHashedReference_(ref, parent_lookup_)) |
| 454 | { |
| 455 | String msg = "invalid reference to a parent sequence - register that first"; |
| 456 | throw Exception::IllegalArgument(__FILE__, __LINE__, |
| 457 | OPENMS_PRETTY_FUNCTION, msg); |
| 458 | } |
| 459 | } |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | parent_groups_.push_back(groups); |
| 464 | |
| 465 | // add the current processing step? |
| 466 | if ((current_step_ref_ != processing_steps_.end()) && |
| 467 | (groups.steps_and_scores.get<1>().find(current_step_ref_) == |
| 468 | groups.steps_and_scores.get<1>().end())) |
| 469 | { |
| 470 | parent_groups_.back().steps_and_scores.push_back( |
| 471 | IdentificationDataInternal::AppliedProcessingStep(current_step_ref_)); |
| 472 | } |
| 473 | } |
| 474 | |
| 475 | |
| 476 | IdentificationData::AdductRef |
no test coverage detected