GCC Code Coverage Report


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

src/model/Thermostat.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_THERMOSTAT_HPP
7 #define MODEL_THERMOSTAT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class ThermalZone;
17
18 namespace detail {
19 class Thermostat_Impl;
20 };
21
22 /** Thermostat is the base class for all types of thermostats.
23 */
24 class MODEL_API Thermostat : public ModelObject
25 {
26 public:
27 2087 virtual ~Thermostat() override = default;
28 // Default the copy and move operators because the virtual dtor is explicit
29 10 Thermostat(const Thermostat& other) = default;
30 1120 Thermostat(Thermostat&& other) = default;
31 ✗ Thermostat& operator=(const Thermostat&) = default;
32 1 Thermostat& operator=(Thermostat&&) = default;
33
34 boost::optional<ThermalZone> thermalZone() const;
35
36 protected:
37 Thermostat(IddObjectType type, const Model& model);
38
39 using ImplType = detail::Thermostat_Impl;
40
41 friend class Model;
42 friend class openstudio::IdfObject;
43 friend class openstudio::detail::IdfObject_Impl;
44 explicit Thermostat(std::shared_ptr<ImplType> impl);
45
46 private:
47 REGISTER_LOGGER("openstudio.model.Thermostat");
48 };
49
50 using OptionalThermostat = boost::optional<Thermostat>;
51
52 } // namespace model
53 } // namespace openstudio
54
55 #endif // MODEL_THERMOSTAT_HPP
56