GCC Code Coverage Report


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

src/model/DefaultSubSurfaceConstructions_Impl.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_IMPL_HPP
7 #define MODEL_DEFAULTSUBSURFACECONSTRUCTIONS_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ResourceObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ConstructionBase;
16 class DefaultSubSurfaceConstructions;
17
18 namespace detail {
19
20 /** DefaultSubSurfaceConstructions_Impl is a ResourceObject_Impl that is the implementation class for DefaultSubSurfaceConstructions.*/
21 class MODEL_API DefaultSubSurfaceConstructions_Impl : public ResourceObject_Impl
22 {
23
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 DefaultSubSurfaceConstructions_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 DefaultSubSurfaceConstructions_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 DefaultSubSurfaceConstructions_Impl(const DefaultSubSurfaceConstructions_Impl& other, Model_Impl* model, bool keepHandle);
33
34 901 virtual ~DefaultSubSurfaceConstructions_Impl() override = default;
35
36 //@}
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 /** @name Getters */
43 //@{
44
45 boost::optional<ConstructionBase> fixedWindowConstruction() const;
46
47 boost::optional<ConstructionBase> operableWindowConstruction() const;
48
49 boost::optional<ConstructionBase> doorConstruction() const;
50
51 boost::optional<ConstructionBase> glassDoorConstruction() const;
52
53 boost::optional<ConstructionBase> overheadDoorConstruction() const;
54
55 boost::optional<ConstructionBase> skylightConstruction() const;
56
57 boost::optional<ConstructionBase> tubularDaylightDomeConstruction() const;
58
59 boost::optional<ConstructionBase> tubularDaylightDiffuserConstruction() const;
60
61 //@}
62 /** @name Setters */
63 //@{
64
65 bool setFixedWindowConstruction(const ConstructionBase& construction);
66
67 void resetFixedWindowConstruction();
68
69 bool setOperableWindowConstruction(const ConstructionBase& construction);
70
71 void resetOperableWindowConstruction();
72
73 bool setDoorConstruction(const ConstructionBase& construction);
74
75 void resetDoorConstruction();
76
77 bool setGlassDoorConstruction(const ConstructionBase& construction);
78
79 void resetGlassDoorConstruction();
80
81 bool setOverheadDoorConstruction(const ConstructionBase& construction);
82
83 void resetOverheadDoorConstruction();
84
85 bool setSkylightConstruction(const ConstructionBase& construction);
86
87 void resetSkylightConstruction();
88
89 bool setTubularDaylightDomeConstruction(const ConstructionBase& construction);
90
91 void resetTubularDaylightDomeConstruction();
92
93 bool setTubularDaylightDiffuserConstruction(const ConstructionBase& construction);
94
95 void resetTubularDaylightDiffuserConstruction();
96
97 //@}
98
99 /// Merge this object with other one, keep fields from this object if set otherwise set to value from other.
100 void merge(const DefaultSubSurfaceConstructions& other);
101
102 protected:
103 private:
104 REGISTER_LOGGER("openstudio.model.DefaultSubSurfaceConstructions");
105
106 boost::optional<ModelObject> fixedWindowConstructionAsModelObject() const;
107 boost::optional<ModelObject> operableWindowConstructionAsModelObject() const;
108 boost::optional<ModelObject> doorConstructionAsModelObject() const;
109 boost::optional<ModelObject> glassDoorConstructionAsModelObject() const;
110 boost::optional<ModelObject> overheadDoorConstructionAsModelObject() const;
111 boost::optional<ModelObject> skylightConstructionAsModelObject() const;
112 boost::optional<ModelObject> tubularDaylightDomeConstructionAsModelObject() const;
113 boost::optional<ModelObject> tubularDaylightDiffuserConstructionAsModelObject() const;
114
115 bool setFixedWindowConstructionAsModelObject(boost::optional<ModelObject> modelObject);
116 bool setOperableWindowConstructionAsModelObject(boost::optional<ModelObject> modelObject);
117 bool setDoorConstructionAsModelObject(boost::optional<ModelObject> modelObject);
118 bool setGlassDoorConstructionAsModelObject(boost::optional<ModelObject> modelObject);
119 bool setOverheadDoorConstructionAsModelObject(boost::optional<ModelObject> modelObject);
120 bool setSkylightConstructionAsModelObject(boost::optional<ModelObject> modelObject);
121 bool setTubularDaylightDomeConstructionAsModelObject(boost::optional<ModelObject> modelObject);
122 bool setTubularDaylightDiffuserConstructionAsModelObject(boost::optional<ModelObject> modelObject);
123 };
124
125 } // namespace detail
126
127 } // namespace model
128 } // namespace openstudio
129
130 #endif // MODEL_DEFAULTSUBSURFACECONSTRUCTIONS_IMPL_HPP
131