| 21 | namespace OpenMS |
| 22 | { |
| 23 | MSPFile::MSPFile() : |
| 24 | DefaultParamHandler("MSPFile") |
| 25 | { |
| 26 | defaults_.setValue("parse_headers", "false", "Flag whether header information should be parsed an stored for each spectrum"); |
| 27 | vector<std::string> parse_strings{"true","false"}; |
| 28 | defaults_.setValidStrings("parse_headers", parse_strings); |
| 29 | defaults_.setValue("parse_peakinfo", "true", "Flag whether the peak annotation information should be parsed and stored for each peak"); |
| 30 | defaults_.setValidStrings("parse_peakinfo", parse_strings); |
| 31 | defaults_.setValue("parse_firstpeakinfo_only", "true", "Flag whether only the first (default for 1:1 correspondence in SpecLibSearcher) or all peak annotation information should be parsed and stored for each peak."); |
| 32 | defaults_.setValidStrings("parse_firstpeakinfo_only", parse_strings); |
| 33 | defaults_.setValue("instrument", "", "If instrument given, only spectra of these type of instrument (Inst= in header) are parsed"); |
| 34 | defaults_.setValidStrings("instrument", {"","it","qtof","toftof"}); |
| 35 | |
| 36 | defaultsToParam_(); |
| 37 | } |
| 38 | |
| 39 | MSPFile::MSPFile(const MSPFile & rhs) = default; |
| 40 | |