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

Method translatedFilePath

src/model/ScheduleFile.cpp:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 openstudio::path ScheduleFile_Impl::translatedFilePath() const {
406 if (translateFileWithRelativePath()) {
407 return toPath(externalFile().fileName());
408 }
409 openstudio::path filePath = externalFile().filePath();
410 if (!exists(filePath)) {
411 LOG(Warn, "Cannot find file \"" << filePath << "\"");
412 } else {
413 // make the path correct for this system
414 filePath = system_complete(filePath);
415 }
416 return filePath;
417 }
418
419 } // namespace detail
420

Callers 2

TEST_FFunction · 0.80
translateScheduleFileMethod · 0.80

Calls 3

filePathMethod · 0.80
toPathFunction · 0.50
fileNameMethod · 0.45

Tested by 1

TEST_FFunction · 0.64