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