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

Method loadFromString

src/utilities/filetypes/EpwFile.cpp:2655–2664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2653}
2654
2655boost::optional<EpwFile> EpwFile::loadFromString(const std::string& str, bool storeData) {
2656 EpwFile result;
2657 std::stringstream ss(str);
2658 if (result.parse(ss, storeData)) {
2659 result.m_checksum = openstudio::checksum(str);
2660 } else {
2661 return boost::none;
2662 }
2663 return result;
2664}
2665
2666openstudio::path EpwFile::path() const {
2667 return m_path;

Callers

nothing calls this directly

Calls 2

checksumFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected