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

Method absoluteFilePaths

src/utilities/filetypes/WorkflowJSON.cpp:432–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430 }
431
432 std::vector<openstudio::path> WorkflowJSON_Impl::absoluteFilePaths() const {
433 std::vector<openstudio::path> result;
434 for (const auto& path : filePaths()) {
435 if (path.is_absolute()) {
436 result.push_back(path);
437 } else {
438 result.push_back(canonicalOrAbsolute(path, absoluteRootDir()));
439 }
440 }
441 return result;
442 }
443
444 bool WorkflowJSON_Impl::addFilePath(const openstudio::path& path) {
445 if (!m_value.isMember("file_paths") || !m_value["file_paths"].isArray()) {

Callers 6

filePathMethod · 0.80
ExternalFileMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

canonicalOrAbsoluteFunction · 0.85
push_backMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64