GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 14.3% 2 / 0 / 14
Functions: 14.3% 2 / 0 / 14
Branches: 31.8% 14 / 0 / 44

src/airflow/contam/ContamEnums.hpp
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 #ifndef AIRFLOW_CONTAM_CONTAMENUMS_HPP
7 #define AIRFLOW_CONTAM_CONTAMENUMS_HPP
8
9 #include "../../utilities/core/Enum.hpp"
10
11 namespace openstudio {
12 namespace contam {
13
14 // clang-format off
15
16 /** \class AirflowElementType
17 * \brief Enumeration is used to identify the various airflow element types.
18 * \details See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp. The actual macro call is:
19 * \code
20 OPENSTUDIO_ENUM( MeasureType,
21 ((ModelMeasure)(Model Measure))
22 ((EnergyPlusMeasure)(EnergyPlus Measure))
23 ((UtilityMeasure)(Utility Measure))
24 ((ReportingMeasure)(Reporting Measure))
25 );
26 * \endcode */
27
14/22
openstudio::contam::AirflowElementType::buildStringVec[abi:cxx11](bool):
✓ Branch 0 taken 116 times.
✓ Branch 1 taken 116 times.
✓ Branch 3 taken 116 times.
✓ Branch 6 taken 112 times.
✓ Branch 7 taken 4 times.
✓ Branch 9 taken 112 times.
✓ Branch 12 taken 112 times.
✓ Branch 17 taken 116 times.
✓ Branch 20 taken 116 times.
✓ Branch 23 taken 224 times.
✓ Branch 24 taken 16 times.
✓ Branch 25 taken 8 times.
✓ Branch 26 taken 8 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 8 times.
openstudio::contam::AirflowElementType::enumName[abi:cxx11]():
✗ Branch 1 not taken.
openstudio::contam::operator<<(std::ostream&, openstudio::contam::AirflowElementType const&):
✗ Branch 1 not taken.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
606 OPENSTUDIO_ENUM(AirflowElementType,
28 ((PL_ORFC)(plr_orfc))
29 ((PL_LEAK1)(plr_leak1))
30 ((PL_LEAK2)(plr_leak2))
31 ((PL_LEAK3)(plr_leak3))
32 ((PL_CONN)(plr_conn))
33 ((PL_QCN)(plr_qcn))
34 ((PL_FCN)(plr_fcn))
35 ((PL_TEST1)(plr_test1))
36 ((PL_TEST2)(plr_test2))
37 ((PL_CRACK)(plr_crack))
38 ((PL_STAIR)(plr_stair))
39 ((PL_SHAFT)(plr_shaft))
40 ((PL_BDQ)(plr_bdq))
41 ((PL_BDF)(plr_bdf))
42 ((QFR_QAB)(qfr_qab))
43 ((QFR_QAF)(qfr_fab))
44 ((QFR_CRACK)(qfr_crack))
45 ((QFR_TEST2)(qfr_test2))
46 ((DR_DOOR)(dor_door))
47 ((DR_PL2)(dor_pl2))
48 ((FN_CMF)(fan_cmf))
49 ((FN_CVF)(fan_cvf))
50 ((FN_FAN)(fan_fan))
51 ((CS_FSP)(csf_fsp))
52 ((CS_QSP)(csf_qsp))
53 ((CS_PSF)(csf_psf))
54 ((CS_PSQ)(csf_psq))
55 ((AF_SUP)(sup_afe))
56 ((UNKNOWN))
57 );
58
59 /** \relates ControlNodeType */
60 using OptionalAirflowElementType = boost::optional<AirflowElementType>;
61
62 /** \relates ControlNodeType */
63 using AirflowElementTypeVector = std::vector<AirflowElementType>;
64
65
66
67 /** \class ControlNodeType
68 * \brief Enumeration is used to identify the various control node types.
69 * \details See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp. The actual macro call is:
70 * \code
71 OPENSTUDIO_ENUM(ControlNodeType,
72 ((CT_SNS)(sns))
73 ((CT_SCH)(sch))
74 ((CT_SET)(set))
75 ((CT_CVF)(cvf))
76 ((CT_DVF)(dvf))
77 ((CT_LOG)(log))
78 ((CT_PAS)(pas))
79 ((CT_MOD)(mod))
80 ((CT_HYS)(hys))
81 ((CT_ABS)(abs))
82 ((CT_BIN)(bin))
83 ((CT_DLS)(dls))
84 ((CT_DLX)(dlx))
85 ((CT_INT)(int))
86 ((CT_RAV)(rav))
87 ((CT_INV)(inv))
88 ((CT_AND)(and))
89 ((CT_OR)(od))
90 ((CT_XOR)(xor))
91 ((CT_ADD)(add))
92 ((CT_SUB)(sub))
93 ((CT_MUL)(mul))
94 ((CT_DIV)(div))
95 ((CT_SUM)(sum))
96 ((CT_AVG)(avg))
97 ((CT_MAX)(max))
98 ((CT_MIN)(min))
99 ((CT_LLS)(lls))
100 ((CT_ULS)(uls))
101 ((CT_LBS)(lbs))
102 ((CT_UBS)(ubs))
103 ((CT_LLC)(llc))
104 ((CT_ULC)(ulc))
105 ((CT_PC1)(pc1))
106 ((CT_PI1)(pi1))
107 ((CT_SUP)(sup))
108 ((CT_SPH)(sph))
109 );
110 * \endcode */
111 ✗ OPENSTUDIO_ENUM(ControlNodeType,
112 ((CT_SNS)(sns))
113 ((CT_SCH)(sch))
114 ((CT_SET)(set))
115 ((CT_CVF)(cvf))
116 ((CT_DVF)(dvf))
117 ((CT_LOG)(log))
118 ((CT_PAS)(pas))
119 ((CT_MOD)(mod))
120 ((CT_HYS)(hys))
121 ((CT_ABS)(abs))
122 ((CT_BIN)(bin))
123 ((CT_DLS)(dls))
124 ((CT_DLX)(dlx))
125 ((CT_INT)(int))
126 ((CT_RAV)(rav))
127 ((CT_INV)(inv))
128 ((CT_AND)(and))
129 ((CT_OR)(od))
130 ((CT_XOR)(xor))
131 ((CT_ADD)(add))
132 ((CT_SUB)(sub))
133 ((CT_MUL)(mul))
134 ((CT_DIV)(div))
135 ((CT_SUM)(sum))
136 ((CT_AVG)(avg))
137 ((CT_MAX)(max))
138 ((CT_MIN)(min))
139 ((CT_LLS)(lls))
140 ((CT_ULS)(uls))
141 ((CT_LBS)(lbs))
142 ((CT_UBS)(ubs))
143 ((CT_LLC)(llc))
144 ((CT_ULC)(ulc))
145 ((CT_PC1)(pc1))
146 ((CT_PI1)(pi1))
147 ((CT_SUP)(sup))
148 ((CT_SPH)(sph))
149 ((UNKNOWN))
150 );
151
152
153 /** \relates ControlNodeType */
154 using OptionalControlNodeType = boost::optional<ControlNodeType>;
155
156 /** \relates ControlNodeType */
157 using ControlNodeTypeVector = std::vector<ControlNodeType>;
158
159 // clang-format on
160
161 } // namespace contam
162 } // namespace openstudio
163
164 #endif // AIRFLOW_CONTAM_CONTAMENUMS_HPP
165