| 85 | } |
| 86 | |
| 87 | void MzMLFile::loadSize(const String& filename, Size& scount, Size& ccount) |
| 88 | { |
| 89 | PeakMap dummy; |
| 90 | Internal::MzMLHandler handler(dummy, filename, getVersion(), *this); |
| 91 | handler.setOptions(options_); |
| 92 | if (options_.hasFilters()) |
| 93 | { |
| 94 | handler.setLoadDetail(Internal::XMLHandler::LD_COUNTS_WITHOPTIONS); |
| 95 | } |
| 96 | else |
| 97 | { // no filters where specified. Just take the 'counts' attributes from the mzML file and end parsing |
| 98 | handler.setLoadDetail(Internal::XMLHandler::LD_RAWCOUNTS); |
| 99 | } |
| 100 | |
| 101 | safeParse_(filename, &handler); |
| 102 | handler.getCounts(scount, ccount); |
| 103 | } |
| 104 | |
| 105 | void MzMLFile::safeParse_(const String& filename, Internal::XMLHandler* handler) |
| 106 | { |
no test coverage detected