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

Method existsSet

src/openms/source/FORMAT/QcMLFile.cpp:338–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 bool QcMLFile::existsSet(const String& filename, bool checkname) const
339 {
340 std::map<String, std::vector<QcMLFile::QualityParameter> >::const_iterator qpsit = setQualityQPs_.find(filename); //if 'filename is a ID:'
341 if (qpsit != setQualityQPs_.end()) //NO, do not!: permit AT without a QP
342 {
343 return true;
344 }
345 else if (checkname)
346 {
347 std::map<String, String>::const_iterator qpsit = set_Name_ID_map_.find(filename); //if 'filename' is a name
348 if (qpsit != set_Name_ID_map_.end()) //NO, do not!: permit AT without a QP
349 {
350 return true;
351 }
352 }
353 return false;
354 }
355
356 void QcMLFile::existsRunQualityParameter(const String& filename, const String& qpname, std::vector<String>& ids) const
357 {

Callers 3

main_Method · 0.80
main_Method · 0.80
QcMLFile_test.cppFile · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected