| 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); |