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