GCC Code Coverage Report


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

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