| 166 | } |
| 167 | |
| 168 | void MzMLFile::transform(const String& filename_in, Interfaces::IMSDataConsumer* consumer, bool skip_full_count, bool skip_first_pass) |
| 169 | { |
| 170 | // First pass through the file -> get the meta-data and hand it to the consumer |
| 171 | if (!skip_first_pass) transformFirstPass_(filename_in, consumer, skip_full_count); |
| 172 | |
| 173 | // Second pass through the data, now read the spectra! |
| 174 | { |
| 175 | PeakMap dummy; |
| 176 | Internal::MzMLHandler handler(dummy, filename_in, getVersion(), *this); |
| 177 | handler.setOptions(options_); |
| 178 | handler.setMSDataConsumer(consumer); |
| 179 | safeParse_(filename_in, &handler); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | void MzMLFile::transform(const String& filename_in, Interfaces::IMSDataConsumer* consumer, PeakMap& map, bool skip_full_count, bool skip_first_pass) |
| 184 | { |