src/energyplus/ForwardTranslator/ForwardTranslateOutputControlResilienceSummaries.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "../ForwardTranslator.hpp" | ||
| 7 | #include "../../model/Model.hpp" | ||
| 8 | |||
| 9 | #include "../../model/OutputControlResilienceSummaries.hpp" | ||
| 10 | |||
| 11 | #include <utilities/idd/OutputControl_ResilienceSummaries_FieldEnums.hxx> | ||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | |||
| 14 | using namespace openstudio::model; | ||
| 15 | |||
| 16 | namespace openstudio { | ||
| 17 | |||
| 18 | namespace energyplus { | ||
| 19 | |||
| 20 | 2 | boost::optional<IdfObject> ForwardTranslator::translateOutputControlResilienceSummaries(model::OutputControlResilienceSummaries& modelObject) { | |
| 21 | |||
| 22 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | IdfObject idfObject = createAndRegisterIdfObject(openstudio::IddObjectType::OutputControl_ResilienceSummaries, modelObject); |
| 23 | |||
| 24 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | idfObject.setString(OutputControl_ResilienceSummariesFields::HeatIndexAlgorithm, modelObject.heatIndexAlgorithm()); |
| 25 | |||
| 26 |
1/1✓ Branch 1 taken 2 times.
|
4 | return idfObject; |
| 27 | 2 | } | |
| 28 | |||
| 29 | } // end namespace energyplus | ||
| 30 | } // end namespace openstudio | ||
| 31 |