| 280 | } |
| 281 | |
| 282 | openstudio::path defaultSchemaPath(openstudio::IddFileType filetype) { |
| 283 | openstudio::path schemaPath; |
| 284 | if (filetype == openstudio::IddFileType::EnergyPlus) { |
| 285 | schemaPath = openstudio::getEnergyPlusDirectory() / openstudio::toPath("Energy+.schema.epJSON"); |
| 286 | } else { |
| 287 | LOG_FREE(LogLevel::Error, "epJSONTranslator", "At the moment, only IddFileType::EnergyPlus is supported"); |
| 288 | // Later: use OpenStudio.epJSON |
| 289 | } |
| 290 | return schemaPath; |
| 291 | } |
| 292 | |
| 293 | Json::Value loadJSON(const openstudio::path& path) { |
| 294 | Json::Value root; |