| 57 | } |
| 58 | |
| 59 | void MzXMLFile::transform(const String& filename_in, Interfaces::IMSDataConsumer * consumer, bool skip_full_count) |
| 60 | { |
| 61 | // First pass through the file -> get the meta-data and hand it to the consumer |
| 62 | transformFirstPass_(filename_in, consumer, skip_full_count); |
| 63 | |
| 64 | // Second pass through the data, now read the spectra! |
| 65 | { |
| 66 | MapType dummy; |
| 67 | Internal::MzXMLHandler handler(dummy, filename_in, getVersion(), *this); |
| 68 | handler.setOptions(options_); |
| 69 | handler.setMSDataConsumer(consumer); |
| 70 | parse_(filename_in, &handler); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | void MzXMLFile::transform(const String& filename_in, Interfaces::IMSDataConsumer * consumer, MapType& map, bool skip_full_count) |
| 75 | { |