MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / loadSize

Method loadSize

src/openms/source/FORMAT/MzMLFile.cpp:87–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 5

alignFunction · 0.95
main_Method · 0.45
main_Method · 0.45
MzMLFile_test.cppFile · 0.45

Calls 4

hasFiltersMethod · 0.80
getCountsMethod · 0.80
setOptionsMethod · 0.45
setLoadDetailMethod · 0.45

Tested by

no test coverage detected