GCC Code Coverage Report


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

src/model/CurveFunctionalPressureDrop_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_CURVEFUNCTIONALPRESSUREDROP_IMPL_HPP
7 #define MODEL_CURVEFUNCTIONALPRESSUREDROP_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Curve_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** CurveFunctionalPressureDrop_Impl is a Curve_Impl that is the implementation class for CurveFunctionalPressureDrop.*/
18 class MODEL_API CurveFunctionalPressureDrop_Impl : public Curve_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 CurveFunctionalPressureDrop_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 CurveFunctionalPressureDrop_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 CurveFunctionalPressureDrop_Impl(const CurveFunctionalPressureDrop_Impl& other, Model_Impl* model, bool keepHandle);
30
31 1 virtual ~CurveFunctionalPressureDrop_Impl() override = default;
32
33 //@}
34 /** @name Virtual Methods */
35 //@{
36
37 virtual const std::vector<std::string>& outputVariableNames() const override;
38
39 virtual IddObjectType iddObjectType() const override;
40
41 virtual int numVariables() const override;
42
43 virtual double evaluate(const std::vector<double>& independentVariables) const override;
44
45 //@}
46 /** @name Getters */
47 //@{
48
49 double diameter() const;
50
51 boost::optional<double> minorLossCoefficient() const;
52
53 boost::optional<double> length() const;
54
55 boost::optional<double> roughness() const;
56
57 boost::optional<double> fixedFrictionFactor() const;
58
59 //@}
60 /** @name Setters */
61 //@{
62
63 bool setDiameter(double diameter);
64
65 bool setMinorLossCoefficient(boost::optional<double> minorLossCoefficient);
66
67 void resetMinorLossCoefficient();
68
69 bool setLength(boost::optional<double> length);
70
71 void resetLength();
72
73 bool setRoughness(boost::optional<double> roughness);
74
75 void resetRoughness();
76
77 bool setFixedFrictionFactor(boost::optional<double> fixedFrictionFactor);
78
79 void resetFixedFrictionFactor();
80
81 //@}
82 /** @name Other */
83 //@{
84
85 //@}
86 protected:
87 private:
88 − REGISTER_LOGGER("openstudio.model.CurveFunctionalPressureDrop");
89 };
90
91 } // namespace detail
92
93 } // namespace model
94 } // namespace openstudio
95
96 #endif // MODEL_CURVEFUNCTIONALPRESSUREDROP_IMPL_HPP
97