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

Method existsRun

src/openms/source/FORMAT/QcMLFile.cpp:319–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 }
318
319 bool QcMLFile::existsRun(const String& filename, bool checkname) const
320 {
321 std::map<String, std::vector<QcMLFile::QualityParameter> >::const_iterator qpsit = runQualityQPs_.find(filename); //if 'filename is a ID:'
322 if (qpsit != runQualityQPs_.end()) //NO, do not!: permit AT without a QP
323 {
324 return true;
325 }
326 else if (checkname)
327 {
328 std::map<String, String>::const_iterator qpsit = run_Name_ID_map_.find(filename); //if 'filename' is a name
329 if (qpsit != run_Name_ID_map_.end()) //NO, do not!: permit AT without a QP
330 {
331 return true;
332 }
333
334 }
335 return false;
336 }
337
338 bool QcMLFile::existsSet(const String& filename, bool checkname) const
339 {

Callers 2

main_Method · 0.80
QcMLFile_test.cppFile · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected