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

Method seedFile

src/utilities/filetypes/WorkflowJSON.cpp:563–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561 }
562
563 boost::optional<openstudio::path> WorkflowJSON_Impl::seedFile() const {
564 Json::Value defaultValue("");
565 Json::Value seed = m_value.get("seed_file", defaultValue);
566 std::string result = seed.asString();
567 if (result.empty()) {
568 return boost::none;
569 }
570 return toPath(result);
571 }
572
573 bool WorkflowJSON_Impl::setSeedFile(const openstudio::path& seedFile) {
574 m_value["seed_file"] = toString(seedFile);

Callers 4

saveModelFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
runInitializationMethod · 0.80

Calls 3

toPathFunction · 0.50
getMethod · 0.45
emptyMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TESTFunction · 0.64