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/DefaultSubSurfaceConstructions.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_DEFAULTSUBSURFACECONSTRUCTIONS_HPP
7 #define MODEL_DEFAULTSUBSURFACECONSTRUCTIONS_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ConstructionBase;
16
17 namespace detail {
18
19 class DefaultSubSurfaceConstructions_Impl;
20
21 } // namespace detail
22
23 /** DefaultSubSurfaceConstructions is a ResourceObject that wraps the OpenStudio IDD object 'OS_DefaultSubSurfaceConstructions'. */
24 class MODEL_API DefaultSubSurfaceConstructions : public ResourceObject
25 {
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 explicit DefaultSubSurfaceConstructions(const Model& model);
31
32 6317 virtual ~DefaultSubSurfaceConstructions() override = default;
33 // Default the copy and move operators because the virtual dtor is explicit
34 ✗ DefaultSubSurfaceConstructions(const DefaultSubSurfaceConstructions& other) = default;
35 4477 DefaultSubSurfaceConstructions(DefaultSubSurfaceConstructions&& other) = default;
36 ✗ DefaultSubSurfaceConstructions& operator=(const DefaultSubSurfaceConstructions&) = default;
37 ✗ DefaultSubSurfaceConstructions& operator=(DefaultSubSurfaceConstructions&&) = default;
38
39 //@}
40 /** @name Static Methods */
41 //@{
42
43 static IddObjectType iddObjectType();
44
45 //@}
46 /** @name Getters */
47 //@{
48
49 boost::optional<ConstructionBase> fixedWindowConstruction() const;
50
51 boost::optional<ConstructionBase> operableWindowConstruction() const;
52
53 boost::optional<ConstructionBase> doorConstruction() const;
54
55 boost::optional<ConstructionBase> glassDoorConstruction() const;
56
57 boost::optional<ConstructionBase> overheadDoorConstruction() const;
58
59 boost::optional<ConstructionBase> skylightConstruction() const;
60
61 boost::optional<ConstructionBase> tubularDaylightDomeConstruction() const;
62
63 boost::optional<ConstructionBase> tubularDaylightDiffuserConstruction() const;
64
65 //@}
66 /** @name Setters */
67 //@{
68
69 bool setFixedWindowConstruction(const ConstructionBase& construction);
70
71 void resetFixedWindowConstruction();
72
73 bool setOperableWindowConstruction(const ConstructionBase& construction);
74
75 void resetOperableWindowConstruction();
76
77 bool setDoorConstruction(const ConstructionBase& construction);
78
79 void resetDoorConstruction();
80
81 bool setGlassDoorConstruction(const ConstructionBase& construction);
82
83 void resetGlassDoorConstruction();
84
85 bool setOverheadDoorConstruction(const ConstructionBase& construction);
86
87 void resetOverheadDoorConstruction();
88
89 bool setSkylightConstruction(const ConstructionBase& construction);
90
91 void resetSkylightConstruction();
92
93 bool setTubularDaylightDomeConstruction(const ConstructionBase& construction);
94
95 void resetTubularDaylightDomeConstruction();
96
97 bool setTubularDaylightDiffuserConstruction(const ConstructionBase& construction);
98
99 void resetTubularDaylightDiffuserConstruction();
100
101 //@}
102
103 /// Merge this object with other one, keep fields from this object if set otherwise set to value from other.
104 void merge(const DefaultSubSurfaceConstructions& other);
105
106 protected:
107 /// @cond
108 using ImplType = detail::DefaultSubSurfaceConstructions_Impl;
109
110 friend class Model;
111 friend class openstudio::IdfObject;
112
113 explicit DefaultSubSurfaceConstructions(std::shared_ptr<detail::DefaultSubSurfaceConstructions_Impl> impl);
114
115 /// @endcond
116 private:
117 REGISTER_LOGGER("openstudio.model.DefaultSubSurfaceConstructions");
118 };
119
120 /** \relates DefaultSubSurfaceConstructions*/
121 using OptionalDefaultSubSurfaceConstructions = boost::optional<DefaultSubSurfaceConstructions>;
122
123 /** \relates DefaultSubSurfaceConstructions*/
124 using DefaultSubSurfaceConstructionsVector = std::vector<DefaultSubSurfaceConstructions>;
125
126 } // namespace model
127 } // namespace openstudio
128
129 #endif // MODEL_DEFAULTSUBSURFACECONSTRUCTIONS_HPP
130