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/InteriorPartitionSurface.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_INTERIORPARTITIONSURFACE_HPP
7 #define MODEL_INTERIORPARTITIONSURFACE_HPP
8
9 #include "ModelAPI.hpp"
10 #include "PlanarSurface.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class InteriorPartitionSurfaceGroup;
16 class DaylightingDeviceShelf;
17
18 namespace detail {
19
20 class InteriorPartitionSurface_Impl;
21
22 } // namespace detail
23
24 /** InteriorPartitionSurface is a PlanarSurface that wraps the OpenStudio IDD object 'OS_InteriorPartitionSurface'. */
25 class MODEL_API InteriorPartitionSurface : public PlanarSurface
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit InteriorPartitionSurface(const std::vector<Point3d>& vertices, const Model& model);
32
33 2099 virtual ~InteriorPartitionSurface() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ InteriorPartitionSurface(const InteriorPartitionSurface& other) = default;
36 717 InteriorPartitionSurface(InteriorPartitionSurface&& other) = default;
37 ✗ InteriorPartitionSurface& operator=(const InteriorPartitionSurface&) = default;
38 34 InteriorPartitionSurface& operator=(InteriorPartitionSurface&&) = default;
39
40 //@}
41 /** @name Static Methods */
42 //@{
43
44 static IddObjectType iddObjectType();
45
46 //@}
47 /** @name Getters */
48 //@{
49
50 bool converttoInternalMass() const;
51
52 bool isConverttoInternalMassDefaulted() const;
53
54 boost::optional<double> surfaceArea() const;
55
56 boost::optional<double> numberofVertices() const;
57
58 bool isNumberofVerticesDefaulted() const;
59
60 bool isNumberofVerticesAutocalculated() const;
61
62 // TODO: Handle this object's extensible fields.
63
64 //@}
65 /** @name Setters */
66 //@{
67
68 bool setConverttoInternalMass(bool converttoInternalMass);
69
70 void resetConverttoInternalMass();
71
72 bool setSurfaceArea(boost::optional<double> surfaceArea);
73
74 bool setSurfaceArea(double surfaceArea);
75
76 void resetSurfaceArea();
77
78 bool setNumberofVertices(boost::optional<double> numberofVertices);
79
80 bool setNumberofVertices(double numberofVertices);
81
82 void resetNumberofVertices();
83
84 void autocalculateNumberofVertices();
85
86 // TODO: Handle this object's extensible fields.
87
88 //@}
89
90 /// get the interior partition surface group
91 boost::optional<InteriorPartitionSurfaceGroup> interiorPartitionSurfaceGroup() const;
92
93 /// set the interior partition surface group
94 bool setInteriorPartitionSurfaceGroup(const InteriorPartitionSurfaceGroup& interiorPartitionSurfaceGroup);
95
96 void resetInteriorPartitionSurfaceGroup();
97
98 boost::optional<DaylightingDeviceShelf> daylightingDeviceShelf() const;
99
100 protected:
101 /// @cond
102 using ImplType = detail::InteriorPartitionSurface_Impl;
103
104 friend class Model;
105 friend class openstudio::IdfObject;
106 friend class openstudio::detail::IdfObject_Impl;
107
108 explicit InteriorPartitionSurface(std::shared_ptr<detail::InteriorPartitionSurface_Impl> impl);
109
110 /// @endcond
111 private:
112 REGISTER_LOGGER("openstudio.model.InteriorPartitionSurface");
113 };
114
115 /** \relates InteriorPartitionSurface*/
116 using OptionalInteriorPartitionSurface = boost::optional<InteriorPartitionSurface>;
117
118 /** \relates InteriorPartitionSurface*/
119 using InteriorPartitionSurfaceVector = std::vector<InteriorPartitionSurface>;
120
121 } // namespace model
122 } // namespace openstudio
123
124 #endif // MODEL_INTERIORPARTITIONSURFACE_HPP
125