GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 20.0% 1 / 0 / 5
Functions: 20.0% 1 / 0 / 5
Branches: -% 0 / 0 / 0

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