GCC Code Coverage Report


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

src/energyplus/ReverseTranslator/ReverseTranslateOutputControlFiles.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 "../ReverseTranslator.hpp"
7
8 #include "../../model/OutputControlFiles.hpp"
9 #include "../../model/OutputControlFiles_Impl.hpp"
10
11 #include <utilities/idd/OutputControl_Files_FieldEnums.hxx>
12 #include <utilities/idd/IddEnums.hxx>
13
14 using namespace openstudio::model;
15
16 namespace openstudio {
17
18 namespace energyplus {
19
20 33 boost::optional<ModelObject> ReverseTranslator::translateOutputControlFiles(const WorkspaceObject& workspaceObject) {
21 33 boost::optional<ModelObject> result;
22
23 // This is a Unique ModelObject
24
1/1
✓ Branch 1 taken 33 times.
33 openstudio::model::OutputControlFiles modelObject = m_model.getUniqueModelObject<OutputControlFiles>();
25
26
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputCSV = workspaceObject.getString(OutputControl_FilesFields::OutputCSV, true)) {
27
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputCSV.get())) {
28
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputCSV(true);
29 } else {
30
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputCSV(false);
31 }
32 33 }
33
34
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputMTR = workspaceObject.getString(OutputControl_FilesFields::OutputMTR, true)) {
35
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputMTR.get())) {
36
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputMTR(true);
37 } else {
38
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputMTR(false);
39 }
40 33 }
41
42
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputESO = workspaceObject.getString(OutputControl_FilesFields::OutputESO, true)) {
43
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputESO.get())) {
44
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputESO(true);
45 } else {
46
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputESO(false);
47 }
48 33 }
49
50
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputEIO = workspaceObject.getString(OutputControl_FilesFields::OutputEIO, true)) {
51
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputEIO.get())) {
52
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputEIO(true);
53 } else {
54
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputEIO(false);
55 }
56 33 }
57
58
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputTabular = workspaceObject.getString(OutputControl_FilesFields::OutputTabular, true)) {
59
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputTabular.get())) {
60
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputTabular(true);
61 } else {
62
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputTabular(false);
63 }
64 33 }
65
66
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputSQLite = workspaceObject.getString(OutputControl_FilesFields::OutputSQLite, true)) {
67
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputSQLite.get())) {
68
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputSQLite(true);
69 } else {
70
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputSQLite(false);
71 }
72 33 }
73
74
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputJSON = workspaceObject.getString(OutputControl_FilesFields::OutputJSON, true)) {
75
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputJSON.get())) {
76
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputJSON(true);
77 } else {
78
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputJSON(false);
79 }
80 33 }
81
82
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputAUDIT = workspaceObject.getString(OutputControl_FilesFields::OutputAUDIT, true)) {
83
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputAUDIT.get())) {
84
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputAUDIT(true);
85 } else {
86
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputAUDIT(false);
87 }
88 33 }
89
90
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputSpaceSizing = workspaceObject.getString(OutputControl_FilesFields::OutputSpaceSizing, true)) {
91
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputSpaceSizing.get())) {
92
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputSpaceSizing(true);
93 } else {
94
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputSpaceSizing(false);
95 }
96 33 }
97
98
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputZoneSizing = workspaceObject.getString(OutputControl_FilesFields::OutputZoneSizing, true)) {
99
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputZoneSizing.get())) {
100
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputZoneSizing(true);
101 } else {
102
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputZoneSizing(false);
103 }
104 33 }
105
106
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputSystemSizing = workspaceObject.getString(OutputControl_FilesFields::OutputSystemSizing, true)) {
107
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputSystemSizing.get())) {
108
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputSystemSizing(true);
109 } else {
110
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputSystemSizing(false);
111 }
112 33 }
113
114
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputDXF = workspaceObject.getString(OutputControl_FilesFields::OutputDXF, true)) {
115
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputDXF.get())) {
116
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputDXF(true);
117 } else {
118
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputDXF(false);
119 }
120 33 }
121
122
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputBND = workspaceObject.getString(OutputControl_FilesFields::OutputBND, true)) {
123
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputBND.get())) {
124
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputBND(true);
125 } else {
126
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputBND(false);
127 }
128 33 }
129
130
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputRDD = workspaceObject.getString(OutputControl_FilesFields::OutputRDD, true)) {
131
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputRDD.get())) {
132
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputRDD(true);
133 } else {
134
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputRDD(false);
135 }
136 33 }
137
138
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputMDD = workspaceObject.getString(OutputControl_FilesFields::OutputMDD, true)) {
139
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputMDD.get())) {
140
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputMDD(true);
141 } else {
142
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputMDD(false);
143 }
144 33 }
145
146
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputMTD = workspaceObject.getString(OutputControl_FilesFields::OutputMTD, true)) {
147
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputMTD.get())) {
148
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputMTD(true);
149 } else {
150
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputMTD(false);
151 }
152 33 }
153
154
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputSHD = workspaceObject.getString(OutputControl_FilesFields::OutputSHD, true)) {
155
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputSHD.get())) {
156
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputSHD(true);
157 } else {
158
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputSHD(false);
159 }
160 33 }
161
162
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputDFS = workspaceObject.getString(OutputControl_FilesFields::OutputDFS, true)) {
163
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputDFS.get())) {
164
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputDFS(true);
165 } else {
166
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputDFS(false);
167 }
168 33 }
169
170
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputGLHE = workspaceObject.getString(OutputControl_FilesFields::OutputGLHE, true)) {
171
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputGLHE.get())) {
172
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputGLHE(true);
173 } else {
174
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputGLHE(false);
175 }
176 33 }
177
178
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputDelightIn = workspaceObject.getString(OutputControl_FilesFields::OutputDelightIn, true)) {
179
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputDelightIn.get())) {
180
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputDelightIn(true);
181 } else {
182
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputDelightIn(false);
183 }
184 33 }
185
186
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputDelightELdmp = workspaceObject.getString(OutputControl_FilesFields::OutputDelightELdmp, true)) {
187
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputDelightELdmp.get())) {
188
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputDelightELdmp(true);
189 } else {
190
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputDelightELdmp(false);
191 }
192 33 }
193
194
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputDelightDFdmp = workspaceObject.getString(OutputControl_FilesFields::OutputDelightDFdmp, true)) {
195
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputDelightDFdmp.get())) {
196
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputDelightDFdmp(true);
197 } else {
198
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputDelightDFdmp(false);
199 }
200 33 }
201
202
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputEDD = workspaceObject.getString(OutputControl_FilesFields::OutputEDD, true)) {
203
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputEDD.get())) {
204
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputEDD(true);
205 } else {
206
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputEDD(false);
207 }
208 33 }
209
210
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputDBG = workspaceObject.getString(OutputControl_FilesFields::OutputDBG, true)) {
211
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputDBG.get())) {
212
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputDBG(true);
213 } else {
214
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputDBG(false);
215 }
216 33 }
217
218
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputPerfLog = workspaceObject.getString(OutputControl_FilesFields::OutputPerfLog, true)) {
219
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputPerfLog.get())) {
220
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputPerfLog(true);
221 } else {
222
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputPerfLog(false);
223 }
224 33 }
225
226
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputSLN = workspaceObject.getString(OutputControl_FilesFields::OutputSLN, true)) {
227
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputSLN.get())) {
228
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputSLN(true);
229 } else {
230
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputSLN(false);
231 }
232 33 }
233
234
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputSCI = workspaceObject.getString(OutputControl_FilesFields::OutputSCI, true)) {
235
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputSCI.get())) {
236
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputSCI(true);
237 } else {
238
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputSCI(false);
239 }
240 33 }
241
242
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputWRL = workspaceObject.getString(OutputControl_FilesFields::OutputWRL, true)) {
243
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputWRL.get())) {
244
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputWRL(true);
245 } else {
246
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputWRL(false);
247 }
248 33 }
249
250
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputScreen = workspaceObject.getString(OutputControl_FilesFields::OutputScreen, true)) {
251
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputScreen.get())) {
252
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputScreen(true);
253 } else {
254
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputScreen(false);
255 }
256 33 }
257
258
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputExtShd = workspaceObject.getString(OutputControl_FilesFields::OutputExtShd, true)) {
259
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputExtShd.get())) {
260
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputExtShd(true);
261 } else {
262
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputExtShd(false);
263 }
264 33 }
265
266
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<std::string> _outputTarcog = workspaceObject.getString(OutputControl_FilesFields::OutputTarcog, true)) {
267
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputTarcog.get())) {
268
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputTarcog(true);
269 } else {
270
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputTarcog(false);
271 }
272 33 }
273
274 33 if (boost::optional<std::string> _outputPlantComponentSizing =
275
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 workspaceObject.getString(OutputControl_FilesFields::OutputPlantComponentSizing, true)) {
276
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 32 times.
99 if (istringEqual("Yes", _outputPlantComponentSizing.get())) {
277
1/1
✓ Branch 1 taken 1 time.
1 modelObject.setOutputPlantComponentSizing(true);
278 } else {
279
1/1
✓ Branch 1 taken 32 times.
32 modelObject.setOutputPlantComponentSizing(false);
280 }
281 33 }
282
283
1/1
✓ Branch 1 taken 33 times.
33 result = modelObject;
284 66 return result;
285
286 33 } // End of translate function
287
288 } // end namespace energyplus
289 } // end namespace openstudio
290