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/ThermochromicGlazing_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_THERMOCHROMICGLAZING_IMPL_HPP
7 #define MODEL_THERMOCHROMICGLAZING_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Glazing.hpp"
11 #include "Glazing_Impl.hpp"
12
13 namespace openstudio {
14 namespace model {
15
16 class StandardGlazing;
17 class ThermochromicGroup;
18
19 namespace detail {
20
21 /** ThermochromicGlazing_Impl is a Glazing_Impl that is the implementation class for ThermochromicGlazing.*/
22 class MODEL_API ThermochromicGlazing_Impl : public Glazing_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 ThermochromicGlazing_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 ThermochromicGlazing_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 ThermochromicGlazing_Impl(const ThermochromicGlazing_Impl& other, Model_Impl* model, bool keepHandle);
33
34 10 virtual ~ThermochromicGlazing_Impl() override = default;
35
36 //@}
37
38 /** @name Virtual Methods */
39 //@{
40
41 virtual const std::vector<std::string>& outputVariableNames() const override;
42
43 virtual IddObjectType iddObjectType() const override;
44
45 // Will warn if all the referenced StandardGlazings don't have the same thickness
46 virtual double thickness() const override;
47
48 // Will set the thickness of all referenced StandardGlazings
49 virtual bool setThickness(double value) override;
50
51 virtual boost::optional<double> getVisibleTransmittance() const override;
52
53 virtual boost::optional<double> interiorVisibleAbsorptance() const override;
54
55 virtual boost::optional<double> exteriorVisibleAbsorptance() const override;
56
57 //@}
58 /** @name Getters */
59 //@{
60
61 //@}
62 /** @name Setters */
63 //@{
64
65 //@}
66 /** @name Other */
67 //@{
68
69 std::vector<ThermochromicGroup> thermochromicGroups() const;
70
71 unsigned int numberofThermochromicGroups() const;
72
73 boost::optional<unsigned> thermochromicGroupIndex(const ThermochromicGroup& thermochromicGroup) const;
74 boost::optional<ThermochromicGroup> getThermochromicGroup(unsigned groupIndex) const;
75
76 bool addThermochromicGroup(const ThermochromicGroup& thermochromicGroup);
77
78 // Convenience fucntion that will create a ThermochromicGroup
79 bool addThermochromicGroup(const StandardGlazing& standardGlazing, double opticalDataTemperature);
80
81 bool addThermochromicGroups(const std::vector<ThermochromicGroup>& thermochromicGroups);
82 bool removeThermochromicGroup(unsigned groupIndex);
83 void removeAllThermochromicGroups();
84
85 //@}
86 protected:
87 private:
88 − REGISTER_LOGGER("openstudio.model.ThermochromicGlazing");
89 };
90
91 } // namespace detail
92
93 } // namespace model
94 } // namespace openstudio
95
96 #endif // MODEL_THERMOCHROMICGLAZING_IMPL_HPP
97