GCC Code Coverage Report


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

src/model/Inverter.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_INVERTER_HPP
7 #define MODEL_INVERTER_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject.hpp"
11 #include "ThermalZone.hpp"
12
13 namespace openstudio {
14 namespace model {
15
16 class ElectricLoadCenterDistribution;
17
18 namespace detail {
19 class Inverter_Impl;
20 }
21
22 /** Inverter is the base class for inverters.
23 */
24 class MODEL_API Inverter : public ParentObject
25 {
26
27 public:
28 Inverter(IddObjectType type, const Model& model);
29
30 89 virtual ~Inverter() override = default;
31 // Default the copy and move operators because the virtual dtor is explicit
32 2 Inverter(const Inverter& other) = default;
33 44 Inverter(Inverter&& other) = default;
34 ✗ Inverter& operator=(const Inverter&) = default;
35 ✗ Inverter& operator=(Inverter&&) = default;
36
37 boost::optional<ElectricLoadCenterDistribution> electricLoadCenterDistribution() const;
38
39 virtual boost::optional<ThermalZone> thermalZone() const;
40
41 virtual bool setThermalZone(const ThermalZone& thermalZone);
42
43 virtual void resetThermalZone();
44
45 protected:
46 friend class Model;
47
48 friend class openstudio::IdfObject;
49
50 /// @cond
51
52 using ImplType = detail::Inverter_Impl;
53
54 explicit Inverter(std::shared_ptr<detail::Inverter_Impl> impl);
55
56 private:
57 REGISTER_LOGGER("openstudio.model.Inverter");
58
59 /// @endcond
60 };
61
62 using OptionalInverter = boost::optional<Inverter>;
63
64 using InverterVector = std::vector<Inverter>;
65
66 } // namespace model
67 } // namespace openstudio
68
69 #endif // MODEL_INVERTER_HPP
70