GCC Code Coverage Report


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

src/model/AvailabilityManagerScheduledOn.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_AVAILABILITYMANAGERSCHEDULEDON_HPP
7 #define MODEL_AVAILABILITYMANAGERSCHEDULEDON_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AvailabilityManager.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 class AvailabilityManagerScheduledOn_Impl;
20
21 } // namespace detail
22
23 /** AvailabilityManagerScheduledOn is a AvailabilityManager that wraps the OpenStudio IDD object 'OS:AvailabilityManager:ScheduledOn'. */
24 class MODEL_API AvailabilityManagerScheduledOn : public AvailabilityManager
25 {
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 explicit AvailabilityManagerScheduledOn(const Model& model);
31
32 11 virtual ~AvailabilityManagerScheduledOn() override = default;
33 // Default the copy and move operators because the virtual dtor is explicit
34 ✗ AvailabilityManagerScheduledOn(const AvailabilityManagerScheduledOn& other) = default;
35 ✗ AvailabilityManagerScheduledOn(AvailabilityManagerScheduledOn&& other) = default;
36 ✗ AvailabilityManagerScheduledOn& operator=(const AvailabilityManagerScheduledOn&) = default;
37 ✗ AvailabilityManagerScheduledOn& operator=(AvailabilityManagerScheduledOn&&) = default;
38
39 //@}
40
41 static IddObjectType iddObjectType();
42
43 /** @name Getters */
44 //@{
45
46 Schedule schedule() const;
47
48 //@}
49 /** @name Setters */
50 //@{
51
52 /*
53 * Get the Schedule, if not set, defaults to alwaysOnDiscreteSchedule
54 */
55 bool setSchedule(Schedule& schedule);
56
57 //@}
58 /** @name Other */
59 //@{
60
61 //@}
62 protected:
63 /// @cond
64 using ImplType = detail::AvailabilityManagerScheduledOn_Impl;
65
66 explicit AvailabilityManagerScheduledOn(std::shared_ptr<detail::AvailabilityManagerScheduledOn_Impl> impl);
67
68 friend class detail::AvailabilityManagerScheduledOn_Impl;
69 friend class Model;
70 friend class IdfObject;
71 friend class openstudio::detail::IdfObject_Impl;
72 /// @endcond
73 private:
74 REGISTER_LOGGER("openstudio.model.AvailabilityManagerScheduledOn");
75 };
76
77 /** \relates AvailabilityManagerScheduledOn*/
78 using OptionalAvailabilityManagerScheduledOn = boost::optional<AvailabilityManagerScheduledOn>;
79
80 /** \relates AvailabilityManagerScheduledOn*/
81 using AvailabilityManagerScheduledOnVector = std::vector<AvailabilityManagerScheduledOn>;
82
83 } // namespace model
84 } // namespace openstudio
85
86 #endif // MODEL_AVAILABILITYMANAGERSCHEDULEDON_HPP
87