| 2653 | } |
| 2654 | |
| 2655 | boost::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 | |
| 2666 | openstudio::path EpwFile::path() const { |
| 2667 | return m_path; |