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/Timestep_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_TIMESTEP_IMPL_HPP
7 #define MODEL_TIMESTEP_IMPL_HPP
8
9 #include "ModelObject_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 class MODEL_API Timestep_Impl : public ModelObject_Impl
17 {
18
19 public:
20 // constructor
21 Timestep_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
22
23 // construct from workspace
24 Timestep_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
25
26 // clone copy constructor
27 Timestep_Impl(const Timestep_Impl& other, Model_Impl* model, bool keepHandle);
28
29 // virtual destructor
30 1384 virtual ~Timestep_Impl() override = default;
31
32 // return the parent object in the hierarchy
33 virtual boost::optional<ParentObject> parent() const override;
34
35 // set the parent, child may have to call methods on the parent
36 virtual bool setParent(ParentObject& newParent) override;
37
38 // Get all output variable names that could be associated with this object.
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 /** @name Getters */
44 //@{
45
46 int numberOfTimestepsPerHour() const;
47
48 bool isNumberOfTimestepsPerHourDefaulted() const;
49
50 //@}
51 /** @name Setters */
52 //@{
53
54 bool setNumberOfTimestepsPerHour(int numberOfTimestepsPerHour);
55
56 void resetNumberOfTimestepsPerHour();
57
58 //@}
59
60 private:
61 REGISTER_LOGGER("openstudio.model.Timestep");
62 };
63
64 } // namespace detail
65
66 } // namespace model
67 } // namespace openstudio
68
69 #endif // MODEL_TIMESTEP_IMPL_HPP
70