GCC Code Coverage Report


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

src/model/SizingPeriod.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_SIZINGPERIOD_HPP
7 #define MODEL_SIZINGPERIOD_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16 class SizingPeriod_Impl;
17 } // namespace detail
18
19 class MODEL_API SizingPeriod : public ParentObject
20 {
21 public:
22 2235 virtual ~SizingPeriod() override = default;
23 // Default the copy and move operators because the virtual dtor is explicit
24 5 SizingPeriod(const SizingPeriod& other) = default;
25 844 SizingPeriod(SizingPeriod&& other) = default;
26 2 SizingPeriod& operator=(const SizingPeriod&) = default;
27 1 SizingPeriod& operator=(SizingPeriod&&) = default;
28
29 // ensure that this object does not contain the date 2/29
30 void ensureNoLeapDays();
31
32 protected:
33 using ImplType = detail::SizingPeriod_Impl;
34
35 friend class Model;
36 friend class openstudio::IdfObject;
37
38 SizingPeriod(IddObjectType type, const Model& model);
39
40 // constructor
41 explicit SizingPeriod(std::shared_ptr<detail::SizingPeriod_Impl> impl);
42
43 private:
44 REGISTER_LOGGER("openstudio.model.SizingPeriod");
45 };
46
47 /** \relates SizingPeriod */
48 using OptionalSizingPeriod = boost::optional<SizingPeriod>;
49
50 /** \relates SizingPeriod */
51 using SizingPeriodVector = std::vector<SizingPeriod>;
52
53 } // namespace model
54 } // namespace openstudio
55
56 #endif // MODEL_SIZINGPERIOD_HPP
57