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