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/SimpleGlazing.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_SIMPLEGLAZING_HPP
7 #define MODEL_SIMPLEGLAZING_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Glazing.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 namespace detail {
17
18 class SimpleGlazing_Impl;
19
20 } // namespace detail
21
22 /** SimpleGlazing is a Glazing that wraps the OpenStudio IDD object 'OS:WindowMaterial:SimpleGlazingSystem'. */
23 class MODEL_API SimpleGlazing : public Glazing
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 explicit SimpleGlazing(const Model& model, double uFactor = 0.1, double solarHeatGainCoefficient = 0.1);
30
31 356 virtual ~SimpleGlazing() override = default;
32 // Default the copy and move operators because the virtual dtor is explicit
33 ✗ SimpleGlazing(const SimpleGlazing& other) = default;
34 35 SimpleGlazing(SimpleGlazing&& other) = default;
35 1 SimpleGlazing& operator=(const SimpleGlazing&) = default;
36 ✗ SimpleGlazing& operator=(SimpleGlazing&&) = default;
37
38 //@}
39
40 static IddObjectType iddObjectType();
41
42 /** @name Getters */
43 //@{
44
45 double uFactor() const;
46
47 double solarHeatGainCoefficient() const;
48
49 boost::optional<double> visibleTransmittance() const;
50
51 //@}
52 /** @name Setters */
53 //@{
54
55 bool setUFactor(double uFactor);
56
57 bool setSolarHeatGainCoefficient(double solarHeatGainCoefficient);
58
59 bool setVisibleTransmittance(double visibleTransmittance);
60
61 void resetVisibleTransmittance();
62
63 //@}
64 /** @name Other */
65 //@{
66
67 //@}
68 protected:
69 /// @cond
70 using ImplType = detail::SimpleGlazing_Impl;
71
72 explicit SimpleGlazing(std::shared_ptr<detail::SimpleGlazing_Impl> impl);
73
74 friend class detail::SimpleGlazing_Impl;
75 friend class Model;
76 friend class IdfObject;
77 friend class openstudio::detail::IdfObject_Impl;
78 /// @endcond
79 private:
80 REGISTER_LOGGER("openstudio.model.SimpleGlazing");
81 };
82
83 /** \relates SimpleGlazing*/
84 using OptionalSimpleGlazing = boost::optional<SimpleGlazing>;
85
86 /** \relates SimpleGlazing*/
87 using SimpleGlazingVector = std::vector<SimpleGlazing>;
88
89 } // namespace model
90 } // namespace openstudio
91
92 #endif // MODEL_SIMPLEGLAZING_HPP
93