GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 5 / 0 / 5
Functions: 100.0% 1 / 0 / 1
Branches: 100.0% 5 / 0 / 5

src/energyplus/ForwardTranslator/ForwardTranslateSurfacePropertyOtherSideConditionsModel.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
8 #include "../../model/Model.hpp"
9 #include "../../model/SurfacePropertyOtherSideConditionsModel.hpp"
10 #include "../../model/SurfacePropertyOtherSideConditionsModel_Impl.hpp"
11
12 #include "../../utilities/idf/IdfExtensibleGroup.hpp"
13
14 #include <utilities/idd/SurfaceProperty_OtherSideConditionsModel_FieldEnums.hxx>
15
16 #include "../../utilities/idd/IddEnums.hpp"
17 #include <utilities/idd/IddEnums.hxx>
18 #include <utilities/idd/IddFactory.hxx>
19
20 #include "../../utilities/core/Assert.hpp"
21
22 using namespace openstudio::model;
23
24 using namespace std;
25
26 namespace openstudio {
27
28 namespace energyplus {
29
30 boost::optional<IdfObject>
31 2 ForwardTranslator::translateSurfacePropertyOtherSideConditionsModel(model::SurfacePropertyOtherSideConditionsModel& modelObject) {
32
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 IdfObject idfObject = createRegisterAndNameIdfObject(openstudio::IddObjectType::SurfaceProperty_OtherSideConditionsModel, modelObject);
33
34
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 idfObject.setString(SurfaceProperty_OtherSideConditionsModelFields::TypeofModeling, modelObject.typeOfModeling());
35
36
1/1
✓ Branch 1 taken 2 times.
4 return idfObject;
37 2 }
38
39 } // namespace energyplus
40
41 } // namespace openstudio
42