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

Method weatherFile

src/utilities/filetypes/WorkflowJSON.cpp:660–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

TESTFunction · 0.45

Calls 3

toPathFunction · 0.50
getMethod · 0.45
emptyMethod · 0.45

Tested by 1

TESTFunction · 0.36