MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / fileName

Method fileName

src/utilities/bcl/BCLFileReference.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67std::string BCLFileReference::fileName() const {
68
69 std::string usageType = this->usageType();
70 openstudio::path baseDir = m_measureRootDir;
71 if (usageType == "doc") {
72 baseDir /= "docs";
73 } else if (usageType == "resource") {
74 baseDir /= "resources";
75 } else if (usageType == "test") {
76 baseDir /= "tests";
77 }
78
79 return toString(openstudio::filesystem::relative(m_path, baseDir));
80}
81
82std::string BCLFileReference::fileType() const {
83 return openstudio::replace(openstudio::toString(m_path.extension()), ".", "");

Callers 4

onDownloadCompleteMethod · 0.45
addMeasureMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

usageTypeMethod · 0.95
toStringFunction · 0.50

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36