GCC Code Coverage Report


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

src/model/ShadingMaterial.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_SHADINGMATERIAL_HPP
7 #define MODEL_SHADINGMATERIAL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "FenestrationMaterial.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16 class ShadingMaterial_Impl;
17 }
18
19 /** ShadingMaterial is a FenestrationMaterial that serves as a base class for objects like Blind,
20 * Screen, and Shade. */
21 class MODEL_API ShadingMaterial : public FenestrationMaterial
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 126 virtual ~ShadingMaterial() override = default;
28 // Default the copy and move operators because the virtual dtor is explicit
29 ✗ ShadingMaterial(const ShadingMaterial& other) = default;
30 60 ShadingMaterial(ShadingMaterial&& other) = default;
31 3 ShadingMaterial& operator=(const ShadingMaterial&) = default;
32 ✗ ShadingMaterial& operator=(ShadingMaterial&&) = default;
33
34 //@}
35 protected:
36 /// @cond
37 using ImplType = detail::ShadingMaterial_Impl;
38
39 friend class Model;
40 friend class openstudio::IdfObject;
41 friend class detail::ShadingMaterial_Impl;
42
43 ShadingMaterial(IddObjectType type, const Model& model);
44
45 explicit ShadingMaterial(std::shared_ptr<detail::ShadingMaterial_Impl> impl);
46
47 /// @endcond
48 private:
49 REGISTER_LOGGER("openstudio.model.ShadingMaterial");
50 };
51
52 /** \relates ShadingMaterial */
53 using OptionalShadingMaterial = boost::optional<ShadingMaterial>;
54
55 /** \relates ShadingMaterial */
56 using ShadingMaterialVector = std::vector<ShadingMaterial>;
57
58 } // namespace model
59 } // namespace openstudio
60
61 #endif // MODEL_SHADINGMATERIAL_HPP
62