|
OpenMS
2.5.0
|
Go to the documentation of this file.
37 #include <OpenMS/config.h>
47 #include <unordered_map>
110 void parseFooter_(
String filename);
112 std::string getChromatogramById_helper_(
int id);
114 std::string getSpectrumById_helper_(
int id);
141 void openFile(
String filename);
152 bool getParsingSuccess()
const;
155 size_t getNrSpectra()
const;
158 size_t getNrChromatograms()
const;
247 skip_xml_checks_ = skip;
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:236
A more convenient string class.
Definition: String.h:58
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:156
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::unordered_map< std::string, Size > chromatograms_native_ids_
Mapping of chromatogram native ids to offsets.
Definition: IndexedMzMLHandler.h:90
std::ifstream filestream_
The current filestream (opened by openFile)
Definition: IndexedMzMLHandler.h:96
std::streampos index_offset_
offset to the <indexList> element
Definition: IndexedMzMLHandler.h:92
bool skip_xml_checks_
Whether to skip XML checks.
Definition: IndexedMzMLHandler.h:100
bool parsing_success_
Whether parsing the indexedmzML file was successful.
Definition: IndexedMzMLHandler.h:98
The representation of a chromatogram.
Definition: MSChromatogram.h:54
std::unordered_map< std::string, Size > spectra_native_ids_
Mapping of spectra native ids to offsets.
Definition: IndexedMzMLHandler.h:86
bool spectra_before_chroms_
Whether spectra are written before chromatograms in this file.
Definition: IndexedMzMLHandler.h:94
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
std::vector< std::streampos > chromatograms_offsets_
Binary offsets to all chromatograms.
Definition: IndexedMzMLHandler.h:88
String filename_
Name of the file.
Definition: IndexedMzMLHandler.h:82
A low-level class to read an indexedmzML file.
Definition: IndexedMzMLHandler.h:79
std::vector< std::streampos > spectra_offsets_
Binary offsets to all spectra.
Definition: IndexedMzMLHandler.h:84
void setSkipXMLChecks(bool skip)
Whether to skip some XML checks (removing whitespace from base64 arrays) and be fast instead.
Definition: IndexedMzMLHandler.h:245