| 92 | |
| 93 | |
| 94 | Size SpectrumLookup::findByScanNumber(Size scan_number) const |
| 95 | { |
| 96 | map<Size, Size>::const_iterator pos = scans_.find(scan_number); |
| 97 | if (pos == scans_.end()) |
| 98 | { |
| 99 | String element = "spectrum with scan number " + String(scan_number); |
| 100 | throw Exception::ElementNotFound(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, |
| 101 | element); |
| 102 | } |
| 103 | return pos->second; |
| 104 | } |
| 105 | |
| 106 | |
| 107 | void SpectrumLookup::addReferenceFormat(const String& regexp) |
no test coverage detected