GCC Code Coverage Report


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

src/model/SurfaceControlMovableInsulation.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_SURFACECONTROLMOVABLEINSULATION_HPP
7 #define MODEL_SURFACECONTROLMOVABLEINSULATION_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Surface;
17 class Material;
18 class Schedule;
19
20 namespace detail {
21
22 class SurfaceControlMovableInsulation_Impl;
23
24 } // namespace detail
25
26 /** SurfaceControlMovableInsulation is a ModelObject that wraps the OpenStudio IDD object 'OS:SurfaceControl:MovableInsulation'. */
27 class MODEL_API SurfaceControlMovableInsulation : public ModelObject
28 {
29 public:
30 /** @name Constructors and Destructors */
31 //@{
32
33 // Constructor takes required-field arguments Surface and Material. The Schedule is defaulted to alwaysOnContinuousSchedule
34 explicit SurfaceControlMovableInsulation(const Surface& surface, const Material& material);
35
36 31 virtual ~SurfaceControlMovableInsulation() override = default;
37 // Default the copy and move operators because the virtual dtor is explicit
38 7 SurfaceControlMovableInsulation(const SurfaceControlMovableInsulation& other) = default;
39 7 SurfaceControlMovableInsulation(SurfaceControlMovableInsulation&& other) = default;
40 ✗ SurfaceControlMovableInsulation& operator=(const SurfaceControlMovableInsulation&) = default;
41 ✗ SurfaceControlMovableInsulation& operator=(SurfaceControlMovableInsulation&&) = default;
42
43 //@}
44
45 static IddObjectType iddObjectType();
46
47 static std::vector<std::string> insulationTypeValues();
48
49 static std::vector<std::string> validInsulationTypeValues();
50
51 /** @name Getters */
52 //@{
53
54 std::string insulationType() const;
55
56 Surface surface() const;
57
58 Material material() const;
59
60 Schedule schedule() const;
61
62 //@}
63 /** @name Setters */
64 //@{
65
66 bool setInsulationType(const std::string& insulationType);
67
68 /** Note that if the target surface already has a SurfaceControlMovableInsulation attached to it, it will be removed as there can be only one
69 * SurfaceControlMovableInsulation per Surface. */
70 bool setSurface(const Surface& surface);
71
72 bool setMaterial(const Material& material);
73
74 bool setSchedule(Schedule& schedule);
75
76 //@}
77 /** @name Other */
78 //@{
79
80 //@}
81 protected:
82 /// @cond
83 using ImplType = detail::SurfaceControlMovableInsulation_Impl;
84
85 explicit SurfaceControlMovableInsulation(std::shared_ptr<detail::SurfaceControlMovableInsulation_Impl> impl);
86
87 friend class detail::SurfaceControlMovableInsulation_Impl;
88 friend class Model;
89 friend class IdfObject;
90 friend class openstudio::detail::IdfObject_Impl;
91 /// @endcond
92 private:
93 REGISTER_LOGGER("openstudio.model.SurfaceControlMovableInsulation");
94 };
95
96 /** \relates SurfaceControlMovableInsulation*/
97 using OptionalSurfaceControlMovableInsulation = boost::optional<SurfaceControlMovableInsulation>;
98
99 /** \relates SurfaceControlMovableInsulation*/
100 using SurfaceControlMovableInsulationVector = std::vector<SurfaceControlMovableInsulation>;
101
102 } // namespace model
103 } // namespace openstudio
104
105 #endif // MODEL_SURFACECONTROLMOVABLEINSULATION_HPP
106