GCC Code Coverage Report


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

src/model/ScheduleInterval_Impl.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_SCHEDULEINTERVAL_IMPL_HPP
7 #define MODEL_SCHEDULEINTERVAL_IMPL_HPP
8
9 #include "Schedule_Impl.hpp"
10
11 namespace openstudio {
12
13 class TimeSeries;
14
15 namespace model {
16
17 namespace detail {
18
19 class MODEL_API ScheduleInterval_Impl : public Schedule_Impl
20 {
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 // constructor
26 ScheduleInterval_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 // construct from workspace
29 ScheduleInterval_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 ScheduleInterval_Impl(const ScheduleInterval_Impl& other, Model_Impl* model, bool keepHandle);
32
33 // virtual destructor
34 48 virtual ~ScheduleInterval_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 // return the parent object in the hierarchy
41 virtual boost::optional<ParentObject> parent() const override;
42
43 // return any children objects in the hierarchy
44 virtual std::vector<ModelObject> children() const override;
45
46 // Get all output variable names that could be associated with this object.
47 virtual const std::vector<std::string>& outputVariableNames() const override;
48
49 virtual std::vector<double> values() const override;
50
51 //@}
52 /** @name Getters */
53 //@{
54
55 virtual openstudio::TimeSeries timeSeries() const = 0;
56
57 //@}
58 /** @name Setters */
59 //@{
60
61 virtual bool setTimeSeries(const openstudio::TimeSeries& timeSeries) = 0;
62
63 //@}
64 private:
65 REGISTER_LOGGER("openstudio.model.ScheduleInterval");
66 };
67
68 } // namespace detail
69
70 } // namespace model
71 } // namespace openstudio
72
73 #endif // MODEL_SCHEDULEINTERVAL_IMPL_HPP
74