| 658 | } |
| 659 | |
| 660 | boost::optional<openstudio::path> WorkflowJSON_Impl::weatherFile() const { |
| 661 | Json::Value defaultValue(""); |
| 662 | Json::Value weather = m_value.get("weather_file", defaultValue); |
| 663 | std::string result = weather.asString(); |
| 664 | if (result.empty()) { |
| 665 | return boost::none; |
| 666 | } |
| 667 | return toPath(result); |
| 668 | } |
| 669 | |
| 670 | bool WorkflowJSON_Impl::setWeatherFile(const openstudio::path& weatherFile) { |
| 671 | m_value["weather_file"] = toString(weatherFile); |