GCC Code Coverage Report


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

src/energyplus/ForwardTranslator/ForwardTranslateOutputControlTableStyle.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 #include "../../model/OutputControlTableStyle.hpp"
9 #include <utilities/idd/OutputControl_Table_Style_FieldEnums.hxx>
10 #include "../../utilities/idd/IddEnums.hpp"
11 #include <utilities/idd/IddEnums.hxx>
12 #include <utilities/idd/IddFactory.hxx>
13
14 using namespace openstudio::model;
15
16 using namespace std;
17
18 namespace openstudio {
19
20 namespace energyplus {
21
22 5 boost::optional<IdfObject> ForwardTranslator::translateOutputControlTableStyle(OutputControlTableStyle& modelObject) {
23
24
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 IdfObject idfObject = createAndRegisterIdfObject(openstudio::IddObjectType::OutputControl_Table_Style, modelObject);
25
26
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setString(OutputControl_Table_StyleFields::ColumnSeparator, modelObject.columnSeparator());
27
28
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setString(OutputControl_Table_StyleFields::UnitConversion, modelObject.unitConversion());
29
30
1/1
✓ Branch 1 taken 5 times.
10 return idfObject;
31 5 }
32
33 } // namespace energyplus
34
35 } // namespace openstudio
36