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

Method filePaths

src/utilities/filetypes/WorkflowJSON.cpp:412–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410 }
411
412 std::vector<openstudio::path> WorkflowJSON_Impl::filePaths() const {
413 std::vector<openstudio::path> result;
414
415 Json::Value defaultValue(Json::arrayValue);
416
417 Json::Value paths = m_value.get("file_paths", defaultValue);
418 paths.append("./files");
419 paths.append("./weather");
420 paths.append("../../files");
421 paths.append("../../weather");
422 paths.append("./");
423
424 Json::ArrayIndex n = paths.size();
425 for (Json::ArrayIndex i = 0; i < n; ++i) {
426 result.push_back(toPath(paths[i].asString()));
427 }
428
429 return result;
430 }
431
432 std::vector<openstudio::path> WorkflowJSON_Impl::absoluteFilePaths() const {
433 std::vector<openstudio::path> result;

Callers 1

runInitializationMethod · 0.80

Calls 4

toPathFunction · 0.50
getMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected