GCC Code Coverage Report


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

src/model/LightingDesignDay_Impl.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_LIGHTINGDESIGNDAY_IMPL_HPP
7 #define MODEL_LIGHTINGDESIGNDAY_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13
14 class DateTime;
15 class Date;
16 class Time;
17
18 namespace model {
19
20 namespace detail {
21
22 /** LightingDesignDay_Impl is a ModelObject_Impl that is the implementation class for LightingDesignDay.*/
23 class MODEL_API LightingDesignDay_Impl : public ModelObject_Impl
24 {
25
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 LightingDesignDay_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
31
32 LightingDesignDay_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
33
34 LightingDesignDay_Impl(const LightingDesignDay_Impl& other, Model_Impl* model, bool keepHandle);
35
36 1 virtual ~LightingDesignDay_Impl() override = default;
37
38 //@}
39 /** @name Virtual Methods */
40 //@{
41
42 virtual boost::optional<ParentObject> parent() const override;
43
44 virtual const std::vector<std::string>& outputVariableNames() const override;
45
46 virtual IddObjectType iddObjectType() const override;
47
48 //}
49 /** @name Getters */
50 //@{
51
52 std::string cieSkyModel() const;
53
54 int snowIndicator() const;
55
56 bool isSnowIndicatorDefaulted() const;
57
58 //@}
59 /** @name Setters */
60 //@{
61
62 bool setCIESkyModel(const std::string& cIESkyModel);
63
64 bool setSnowIndicator(int snowIndicator);
65
66 void resetSnowIndicator();
67
68 //@}
69
70 openstudio::Date date() const;
71
72 bool setDate(const openstudio::Date& date);
73
74 std::vector<openstudio::Time> simulationTimes() const;
75
76 std::vector<openstudio::DateTime> simulationDateTimes() const;
77
78 bool addSimulationTime(const openstudio::Time& time);
79
80 void clearSimulationTimes();
81
82 // ensure that this object does not contain the date 2/29
83 void ensureNoLeapDays();
84
85 protected:
86 private:
87 REGISTER_LOGGER("openstudio.model.LightingDesignDay");
88 };
89
90 } // namespace detail
91
92 } // namespace model
93 } // namespace openstudio
94
95 #endif // MODEL_LIGHTINGDESIGNDAY_IMPL_HPP
96