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/OutputConstructions.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_OUTPUTCONSTRUCTIONS_HPP
7 #define MODEL_OUTPUTCONSTRUCTIONS_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "ModelObject.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 class OutputConstructions_Impl;
18
19 } // namespace detail
20
21 /** OutputConstructions is a ModelObject that wraps the OpenStudio IDD object 'OS:Output:Constructions'. */
22 class MODEL_API OutputConstructions : public ModelObject
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 34 virtual ~OutputConstructions() override = default;
29 // Default the copy and move operators because the virtual dtor is explicit
30 6 OutputConstructions(const OutputConstructions& other) = default;
31 6 OutputConstructions(OutputConstructions&& other) = default;
32 ✗ OutputConstructions& operator=(const OutputConstructions&) = default;
33 ✗ OutputConstructions& operator=(OutputConstructions&&) = default;
34
35 //@}
36
37 static IddObjectType iddObjectType();
38
39 /** @name Getters */
40 //@{
41
42 bool reportConstructions() const;
43
44 bool reportMaterials() const;
45
46 //@}
47 /** @name Setters */
48 //@{
49
50 bool setReportConstructions(bool reportConstructions);
51
52 bool setReportMaterials(bool reportMaterials);
53
54 //@}
55 /** @name Other */
56 //@{
57
58 //@}
59 protected:
60 /// @cond
61 using ImplType = detail::OutputConstructions_Impl;
62
63 explicit OutputConstructions(std::shared_ptr<detail::OutputConstructions_Impl> impl);
64
65 friend class detail::OutputConstructions_Impl;
66 friend class Model;
67 friend class IdfObject;
68 friend class openstudio::detail::IdfObject_Impl;
69 explicit OutputConstructions(Model& model);
70
71 /// @endcond
72 private:
73 REGISTER_LOGGER("openstudio.model.OutputConstructions");
74 };
75
76 /** \relates OutputConstructions*/
77 using OptionalOutputConstructions = boost::optional<OutputConstructions>;
78
79 /** \relates OutputConstructions*/
80 using OutputConstructionsVector = std::vector<OutputConstructions>;
81
82 } // namespace model
83 } // namespace openstudio
84
85 #endif // MODEL_OUTPUTCONSTRUCTIONS_HPP
86