| 574 | } |
| 575 | |
| 576 | void OSWorkflow::communicateMeasureAttributes() const { |
| 577 | |
| 578 | const Json::Value root = outputAttributesToJSON(output_attributes, false); |
| 579 | Json::StreamWriterBuilder wbuilder; |
| 580 | // mimic the old StyledWriter behavior: |
| 581 | wbuilder["indentation"] = " "; |
| 582 | |
| 583 | const std::string result = Json::writeString(wbuilder, root); |
| 584 | |
| 585 | auto jsonPath = workflowJSON.absoluteRunDir() / "measure_attributes.json"; |
| 586 | openstudio::filesystem::ofstream file(jsonPath); |
| 587 | OS_ASSERT(file.is_open()); |
| 588 | file << result; |
| 589 | file.close(); |
| 590 | } |
| 591 | |
| 592 | void OSWorkflow::runExtractInputsAndOutputs() const { |
| 593 | const Json::Value results = outputAttributesToJSON(output_attributes, true); |
nothing calls this directly
no test coverage detected