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/DaylightRedirectionDevice.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_DAYLIGHTREDIRECTIONDEVICE_HPP
7 #define MODEL_DAYLIGHTREDIRECTIONDEVICE_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ShadingMaterial.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 namespace detail {
17
18 class DaylightRedirectionDevice_Impl;
19
20 } // namespace detail
21
22 /** DaylightRedirectionDevice is a ShadingMaterial that wraps the OpenStudio IDD object 'OS:WindowMaterial:DaylightRedirectionDevice'.
23 ** This object is not in EnergyPlus, this represents a film or louver which redirects daylighting.
24 **/
25 class MODEL_API DaylightRedirectionDevice : public ShadingMaterial
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit DaylightRedirectionDevice(const Model& model);
32
33 10 virtual ~DaylightRedirectionDevice() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ DaylightRedirectionDevice(const DaylightRedirectionDevice& other) = default;
36 4 DaylightRedirectionDevice(DaylightRedirectionDevice&& other) = default;
37 ✗ DaylightRedirectionDevice& operator=(const DaylightRedirectionDevice&) = default;
38 ✗ DaylightRedirectionDevice& operator=(DaylightRedirectionDevice&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 static std::vector<std::string> daylightRedirectionDeviceTypeValues();
45
46 /** @name Getters */
47 //@{
48
49 std::string daylightRedirectionDeviceType() const;
50
51 bool isDaylightRedirectionDeviceTypeDefaulted() const;
52
53 //@}
54 /** @name Setters */
55 //@{
56
57 bool setDaylightRedirectionDeviceType(const std::string& daylightRedirectionDeviceType);
58
59 void resetDaylightRedirectionDeviceType();
60
61 //@}
62 /** @name Other */
63 //@{
64
65 //@}
66
67 protected:
68 /// @cond
69 using ImplType = detail::DaylightRedirectionDevice_Impl;
70
71 explicit DaylightRedirectionDevice(std::shared_ptr<detail::DaylightRedirectionDevice_Impl> impl);
72
73 friend class detail::DaylightRedirectionDevice_Impl;
74 friend class Model;
75 friend class IdfObject;
76 friend class openstudio::detail::IdfObject_Impl;
77 /// @endcond
78 private:
79 REGISTER_LOGGER("openstudio.model.DaylightRedirectionDevice");
80 };
81
82 /** \relates DaylightRedirectionDevice*/
83 using OptionalDaylightRedirectionDevice = boost::optional<DaylightRedirectionDevice>;
84
85 /** \relates DaylightRedirectionDevice*/
86 using DaylightRedirectionDeviceVector = std::vector<DaylightRedirectionDevice>;
87
88 } // namespace model
89 } // namespace openstudio
90
91 #endif // MODEL_DAYLIGHTREDIRECTIONDEVICE_HPP
92