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