Get the spectra and chromatogram counts of a file
| 90 | |
| 91 | /// Get the spectra and chromatogram counts of a file |
| 92 | void MzMLHandler::getCounts(Size& spectra_counts, Size& chromatogram_counts) |
| 93 | { |
| 94 | if (load_detail_ == XMLHandler::LD_RAWCOUNTS) |
| 95 | { |
| 96 | spectra_counts = std::max(scan_count_total_, 0); // default is -1; if no specs were found, report 0 |
| 97 | chromatogram_counts = std::max(chrom_count_total_, 0); |
| 98 | } |
| 99 | else |
| 100 | { |
| 101 | spectra_counts = scan_count_; |
| 102 | chromatogram_counts = chromatogram_count_; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /// Set the IMSDataConsumer consumer which will consume the read data |
| 107 | void MzMLHandler::setMSDataConsumer(Interfaces::IMSDataConsumer* consumer) |
no outgoing calls
no test coverage detected