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/StandardsInformationConstruction_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_STANDARDSINFORMATIONCONSTRUCTION_IMPL_HPP
7 #define MODEL_STANDARDSINFORMATIONCONSTRUCTION_IMPL_HPP
8
9 #include "ModelObject_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 class StandardsInformationConstruction;
15 class ConstructionBase;
16 class Material;
17
18 namespace detail {
19
20 class MODEL_API StandardsInformationConstruction_Impl : public ModelObject_Impl
21 {
22 public:
23 /** Constructors and Destructors */
24 //@{
25
26 // constructor
27 StandardsInformationConstruction_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 // construct from workspace
30 StandardsInformationConstruction_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 StandardsInformationConstruction_Impl(const StandardsInformationConstruction_Impl& other, Model_Impl* model, bool keepHandle);
33
34 // virtual destructor
35 1730 virtual ~StandardsInformationConstruction_Impl() override = default;
36
37 //@}
38 /** @name Getters */
39 //@{
40
41 ConstructionBase construction() const;
42
43 boost::optional<std::string> intendedSurfaceType() const;
44
45 boost::optional<std::string> standardsConstructionType() const;
46
47 std::vector<std::string> suggestedStandardsConstructionTypes() const;
48
49 boost::optional<Material> perturbableLayer() const;
50
51 std::string perturbableLayerType() const;
52
53 bool isPerturbableLayerTypeDefaulted() const;
54
55 boost::optional<std::string> otherPerturbableLayerType() const;
56
57 std::vector<std::string> suggestedConstructionStandards() const;
58
59 boost::optional<std::string> constructionStandard() const;
60
61 std::vector<std::string> suggestedConstructionStandardSources() const;
62
63 boost::optional<std::string> constructionStandardSource() const;
64
65 boost::optional<std::string> fenestrationType() const;
66
67 boost::optional<std::string> fenestrationAssemblyContext() const;
68
69 boost::optional<std::string> fenestrationNumberOfPanes() const;
70
71 boost::optional<std::string> fenestrationFrameType() const;
72
73 boost::optional<std::string> fenestrationDividerType() const;
74
75 boost::optional<std::string> fenestrationTint() const;
76
77 boost::optional<std::string> fenestrationGasFill() const;
78
79 bool fenestrationLowEmissivityCoating() const;
80
81 // return the parent object in the hierarchy
82 virtual boost::optional<ParentObject> parent() const override;
83
84 /// set the parent, child may have to call non-const methods on the parent
85 virtual bool setParent(ParentObject& newParent) override;
86
87 /** Get all output variables names that could be associated with this object. These variables
88 * may or may not be available for each simulation, need to check report variable dictionary
89 * to see if the variable is available. Each concrete class should override this method.*/
90 virtual const std::vector<std::string>& outputVariableNames() const override;
91
92 virtual IddObjectType iddObjectType() const override;
93
94 //@}
95 /** @name Setters */
96 //@{
97
98 bool setIntendedSurfaceType(const std::string& type);
99 void resetIntendedSurfaceType();
100
101 bool setStandardsConstructionType(const std::string& type);
102 void resetStandardsConstructionType();
103
104 bool setPerturbableLayer(unsigned layerIndex);
105
106 bool setPerturbableLayer(const Material& material);
107
108 /** Clears all PerturbableLayer information, including type. */
109 void resetPerturbableLayer();
110
111 bool setPerturbableLayerType(const std::string& type);
112
113 void resetPerturbableLayerType();
114
115 bool setOtherPerturbableLayerType(const std::string& otherPerturbableLayerType);
116
117 void resetOtherPerturbableLayerType();
118
119 bool setConstructionStandard(const std::string& constructionStandard);
120
121 void resetConstructionStandard();
122
123 bool setConstructionStandardSource(const std::string& constructionStandardSource);
124
125 void resetConstructionStandardSource();
126
127 bool setFenestrationType(const std::string& fenestrationType);
128
129 void resetFenestrationType();
130
131 bool setFenestrationAssemblyContext(const std::string& fenestrationAssemblyContext);
132
133 void resetFenestrationAssemblyContext();
134
135 bool setFenestrationNumberOfPanes(const std::string& fenestrationNumberOfPanes);
136
137 void resetFenestrationNumberOfPanes();
138
139 bool setFenestrationFrameType(const std::string& fenestrationFrameType);
140
141 void resetFenestrationFrameType();
142
143 bool setFenestrationDividerType(const std::string& fenestrationDividerType);
144
145 void resetFenestrationDividerType();
146
147 bool setFenestrationTint(const std::string& fenestrationTint);
148
149 void resetFenestrationTint();
150
151 bool setFenestrationGasFill(const std::string& fenestrationGasFill);
152
153 void resetFenestrationGasFill();
154
155 bool setFenestrationLowEmissivityCoating(bool fenestrationLowEmissivityCoating);
156
157 void resetFenestrationLowEmissivityCoating();
158
159 //@}
160 protected:
161 private:
162 REGISTER_LOGGER("openstudio.model.StandardsInformationConstruction");
163 };
164
165 } // namespace detail
166
167 } // namespace model
168 } // namespace openstudio
169
170 #endif // MODEL_STANDARDSINFORMATIONCONSTRUCTION_IMPL_HPP
171