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

Method setLoadedFilePath

src/openms/source/METADATA/DocumentIdentifier.cpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void DocumentIdentifier::setLoadedFilePath(const String & file_name)
39 {
40 // only change the path if we need to, otherwise low and upper case might be altered by Qt, making comparison in tests more tricky
41 // i.e., a call to this will report unmatched strings
42 // FeatureXMLFile().load(OPENMS_GET_TEST_DATA_PATH("FeatureXMLFile_1.featureXML"), e);
43 // TEST_STRING_EQUAL(e.getLoadedFilePath(), OPENMS_GET_TEST_DATA_PATH("FeatureXMLFile_1.featureXML"));
44 if (QDir::isRelativePath(file_name.toQString()))
45 {
46 file_path_ = File::absolutePath(file_name);
47 }
48 else
49 {
50 file_path_ = file_name;
51 }
52 }
53
54 const String & DocumentIdentifier::getLoadedFilePath() const
55 {

Callers 13

loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
startElementMethod · 0.80
~MSDataSqlConsumerMethod · 0.80
loadFunction · 0.80
loadFunction · 0.80

Calls 1

toQStringMethod · 0.45

Tested by 1

testMSExperimentFunction · 0.64