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/DaylightingDeviceShelf_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_DAYLIGHTINGDEVICESHELF_IMPL_HPP
7 #define MODEL_DAYLIGHTINGDEVICESHELF_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class SubSurface;
16 class InteriorPartitionSurface;
17 class ShadingSurface;
18 class DaylightingDeviceShelf;
19
20 namespace detail {
21
22 /** DaylightingDeviceShelf_Impl is a ModelObject_Impl that is the implementation class for DaylightingDeviceShelf.*/
23 class MODEL_API DaylightingDeviceShelf_Impl : public ModelObject_Impl
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 DaylightingDeviceShelf_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
30
31 DaylightingDeviceShelf_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
32
33 DaylightingDeviceShelf_Impl(const DaylightingDeviceShelf_Impl& other, Model_Impl* model, bool keepHandle);
34
35 8 virtual ~DaylightingDeviceShelf_Impl() override = default;
36
37 //@}
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 /** @name Getters */
44 //@{
45
46 boost::optional<InteriorPartitionSurface> insideShelf() const;
47
48 boost::optional<ShadingSurface> outsideShelf() const;
49
50 boost::optional<double> viewFactortoOutsideShelf() const;
51
52 //@}
53 /** @name Setters */
54 //@{
55
56 bool setInsideShelf(const InteriorPartitionSurface& insideShelf);
57
58 bool setOutsideShelf(const ShadingSurface& outsideShelf);
59
60 bool setViewFactortoOutsideShelf(double viewFactortoOutsideShelf);
61
62 void resetViewFactortoOutsideShelf();
63
64 //@}
65
66 /// Get the related sub surface.
67 SubSurface subSurface() const;
68
69 protected:
70 private:
71 REGISTER_LOGGER("openstudio.model.DaylightingDeviceShelf");
72 };
73
74 } // namespace detail
75
76 } // namespace model
77 } // namespace openstudio
78
79 #endif // MODEL_DAYLIGHTINGDEVICESHELF_IMPL_HPP
80