GCC Code Coverage Report


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

src/model/SolarCollectorIntegralCollectorStorage.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_SOLARCOLLECTORINTEGRALCOLLECTORSTORAGE_HPP
7 #define MODEL_SOLARCOLLECTORINTEGRALCOLLECTORSTORAGE_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class PlanarSurface;
17 class SolarCollectorPerformanceIntegralCollectorStorage;
18
19 namespace detail {
20
21 class SolarCollectorIntegralCollectorStorage_Impl;
22
23 } // namespace detail
24
25 /** SolarCollectorIntegralCollectorStorage is a StraightComponent that wraps the OpenStudio IDD object 'OS:SolarCollector:IntegralCollectorStorage'. */
26 class MODEL_API SolarCollectorIntegralCollectorStorage : public StraightComponent
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit SolarCollectorIntegralCollectorStorage(const Model& model);
33
34 14 virtual ~SolarCollectorIntegralCollectorStorage() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ SolarCollectorIntegralCollectorStorage(const SolarCollectorIntegralCollectorStorage& other) = default;
37 2 SolarCollectorIntegralCollectorStorage(SolarCollectorIntegralCollectorStorage&& other) = default;
38 ✗ SolarCollectorIntegralCollectorStorage& operator=(const SolarCollectorIntegralCollectorStorage&) = default;
39 ✗ SolarCollectorIntegralCollectorStorage& operator=(SolarCollectorIntegralCollectorStorage&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 static std::vector<std::string> bottomSurfaceBoundaryConditionsTypeValues();
46
47 /** @name Getters */
48 //@{
49
50 SolarCollectorPerformanceIntegralCollectorStorage solarCollectorPerformance() const;
51
52 boost::optional<PlanarSurface> surface() const;
53
54 std::string bottomSurfaceBoundaryConditionsType() const;
55
56 bool isBottomSurfaceBoundaryConditionsTypeDefaulted() const;
57
58 boost::optional<double> maximumFlowRate() const;
59
60 //@}
61 /** @name Setters */
62 //@{
63
64 /// Deletes the current parameters and clones the parameters passed in
65 bool setSolarCollectorPerformance(const SolarCollectorPerformanceIntegralCollectorStorage& solarCollectorPerformance);
66
67 /// Deletes the current parameters and constructs a new default set of parameters
68 void resetSolarCollectorPerformance();
69
70 bool setSurface(const PlanarSurface& surface);
71
72 void resetSurface();
73
74 bool setMaximumFlowRate(double maximumFlowRate);
75
76 void resetMaximumFlowRate();
77
78 //@}
79 /** @name Other */
80 //@{
81
82 //@}
83 protected:
84 /// @cond
85 using ImplType = detail::SolarCollectorIntegralCollectorStorage_Impl;
86
87 explicit SolarCollectorIntegralCollectorStorage(std::shared_ptr<detail::SolarCollectorIntegralCollectorStorage_Impl> impl);
88
89 friend class detail::SolarCollectorIntegralCollectorStorage_Impl;
90 friend class Model;
91 friend class IdfObject;
92 friend class openstudio::detail::IdfObject_Impl;
93 /// @endcond
94 private:
95 REGISTER_LOGGER("openstudio.model.SolarCollectorIntegralCollectorStorage");
96 };
97
98 /** \relates SolarCollectorIntegralCollectorStorage*/
99 using OptionalSolarCollectorIntegralCollectorStorage = boost::optional<SolarCollectorIntegralCollectorStorage>;
100
101 /** \relates SolarCollectorIntegralCollectorStorage*/
102 using SolarCollectorIntegralCollectorStorageVector = std::vector<SolarCollectorIntegralCollectorStorage>;
103
104 } // namespace model
105 } // namespace openstudio
106
107 #endif // MODEL_SOLARCOLLECTORINTEGRALCOLLECTORSTORAGE_HPP
108