| 162 | } |
| 163 | |
| 164 | Json::Value translateIdfToEPJSONWithOS(const openstudio::path& location) { |
| 165 | auto idf = openstudio::IdfFile::load(location); |
| 166 | |
| 167 | if (!idf) { |
| 168 | return Json::Value{}; |
| 169 | } |
| 170 | |
| 171 | auto result = openstudio::epJSON::toJSON(*idf); |
| 172 | |
| 173 | const auto outputLocation = location.parent_path() / openstudio::toPath("os.epJSON"); |
| 174 | std::ofstream ofs(openstudio::toString(outputLocation), std::ofstream::trunc); |
| 175 | ofs << result.toStyledString() << '\n'; |
| 176 | return result; |
| 177 | } |
| 178 | |
| 179 | std::pair<Json::Value, Json::Value> epJSONFixture::doEPJSONTranslations(const std::string& idfname) { |
| 180 |
no test coverage detected