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/Schedule_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_SCHEDULE_IMPL_HPP
7 #define MODEL_SCHEDULE_IMPL_HPP
8
9 #include "ScheduleBase_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 class ScheduleTypeLimits;
15
16 namespace detail {
17
18 // derive Schedule_Impl from ResourceObject_Impl to override virtual methods
19 class MODEL_API Schedule_Impl : public ScheduleBase_Impl
20 {
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 // constructor
26 Schedule_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 // construct from workspace
29 Schedule_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 // clone copy constructor
32 Schedule_Impl(const Schedule_Impl& other, Model_Impl* model, bool keepHandles);
33
34 // virtual destructor
35 12609 virtual ~Schedule_Impl() override = default;
36
37 //@}
38 protected:
39 virtual bool candidateIsCompatibleWithCurrentUse(const ScheduleTypeLimits& candidate) const override;
40
41 virtual bool okToResetScheduleTypeLimits() const override;
42
43 private:
44 REGISTER_LOGGER("openstudio.model.Schedule");
45 };
46
47 } // namespace detail
48
49 } // namespace model
50 } // namespace openstudio
51
52 #endif // MODEL_SCHEDULE_IMPL_HPP
53