GCC Code Coverage Report


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

src/model/AirflowNetworkCrack_Impl.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 MODEL_AIRFLOWNETWORKCRACK_IMPL_HPP
7 #define MODEL_AIRFLOWNETWORKCRACK_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 #include "AirflowNetworkComponent_Impl.hpp"
13
14 namespace openstudio {
15 namespace model {
16
17 namespace detail {
18
19 /** AirflowNetworkCrack_Impl is a ModelObject_Impl that is the implementation class for AirflowNetworkCrack.*/
20 class MODEL_API AirflowNetworkCrack_Impl : public AirflowNetworkComponent_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 AirflowNetworkCrack_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 AirflowNetworkCrack_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 AirflowNetworkCrack_Impl(const AirflowNetworkCrack_Impl& other, Model_Impl* model, bool keepHandle);
31
32 9 virtual ~AirflowNetworkCrack_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 //@}
43 /** @name Getters */
44 //@{
45
46 double airMassFlowCoefficient() const;
47
48 double airMassFlowExponent() const;
49
50 bool isAirMassFlowExponentDefaulted() const;
51
52 boost::optional<AirflowNetworkReferenceCrackConditions> referenceCrackConditions() const;
53
54 //@}
55 /** @name Setters */
56 //@{
57
58 bool setAirMassFlowCoefficient(double airMassFlowCoefficientatReferenceConditions);
59
60 bool setAirMassFlowExponent(double airMassFlowExponent);
61
62 void resetAirMassFlowExponent();
63
64 bool setReferenceCrackConditions(const AirflowNetworkReferenceCrackConditions& referenceCrackConditions);
65
66 void resetReferenceCrackConditions();
67
68 //@}
69 protected:
70 private:
71 REGISTER_LOGGER("openstudio.model.AirflowNetworkCrack");
72 };
73
74 } // namespace detail
75
76 } // namespace model
77 } // namespace openstudio
78
79 #endif // MODEL_AIRFLOWNETWORKCRACK_IMPL_HPP
80