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

Function defaultSchemaPath

src/epjson/epJSONTranslator.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282openstudio::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
293Json::Value loadJSON(const openstudio::path& path) {
294 Json::Value root;

Callers 1

toJSONFunction · 0.85

Calls 1

toPathFunction · 0.50

Tested by

no test coverage detected