| 112 | } |
| 113 | |
| 114 | boost::optional<openstudio::EpwFile> OSRunner::lastEpwFile() const { |
| 115 | if (m_lastEpwFile) { |
| 116 | return m_lastEpwFile; |
| 117 | } |
| 118 | |
| 119 | if (m_lastEpwFilePath) { |
| 120 | try { |
| 121 | m_lastEpwFile = EpwFile(*m_lastEpwFilePath); |
| 122 | } catch (const std::exception&) { |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | return m_lastEpwFile; |
| 127 | } |
| 128 | |
| 129 | boost::optional<openstudio::path> OSRunner::lastEpwFilePath() const { |
| 130 | return m_lastEpwFilePath; |