GCC Code Coverage Report


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

src/model/Material_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_MATERIAL_IMPL_HPP
7 #define MODEL_MATERIAL_IMPL_HPP
8
9 #include "ResourceObject_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 // forward declaration
15 class Material;
16 class StandardsInformationMaterial;
17
18 namespace detail {
19
20 class MODEL_API Material_Impl : public ResourceObject_Impl
21 {
22
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 // Construct completely new object.
28 Material_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 // Construct from existing workspace object (typically when Model is being constructed
31 // from Workspace).
32 Material_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
33
34 // Clone copy constructor.
35 Material_Impl(const Material_Impl& other, Model_Impl* model, bool keepHandle);
36
37 7980 virtual ~Material_Impl() override = default;
38
39 //@}
40 /** @name Getters */
41 //@{
42
43 // return any children objects in the hierarchy
44 virtual std::vector<ModelObject> children() const override;
45
46 /** Get the thickness of the material. For some materials, 0.0 is always returned. */
47 virtual double thickness() const;
48
49 virtual boost::optional<double> getVisibleTransmittance() const = 0;
50
51 virtual boost::optional<double> interiorVisibleAbsorptance() const;
52
53 virtual boost::optional<double> exteriorVisibleAbsorptance() const;
54
55 StandardsInformationMaterial standardsInformation() const;
56
57 //@}
58 /** @name Setters */
59 //@{
60
61 /** Set thickness to value (m). For some materials, false is always returned. */
62 virtual bool setThickness(double value);
63
64 //@}
65
66 private:
67 − REGISTER_LOGGER("openstudio.model.Material");
68 };
69
70 } // namespace detail
71
72 } // namespace model
73 } // namespace openstudio
74
75 #endif // MODEL_MATERIAL_IMPL_HPP
76