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/SizingPeriod_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_SIZINGPERIOD_IMPL_HPP
7 #define MODEL_SIZINGPERIOD_IMPL_HPP
8
9 #include "ParentObject_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 class MODEL_API SizingPeriod_Impl : public ParentObject_Impl
17 {
18 public:
19 // constructor
20 SizingPeriod_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
21
22 // construct from workspace
23 SizingPeriod_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
24
25 // clone copy constructor
26 SizingPeriod_Impl(const SizingPeriod_Impl& other, Model_Impl* model, bool keepHandle);
27
28 // virtual destructor
29 1177 virtual ~SizingPeriod_Impl() override = default;
30
31 // ensure that this object does not contain the date 2/29
32 virtual void ensureNoLeapDays() = 0;
33
34 // return the parent object in the hierarchy
35 virtual boost::optional<ParentObject> parent() const override;
36
37 // set the parent, child may have to call methods on the parent
38 virtual bool setParent(ParentObject& newParent) override;
39
40 // return any children objects in the hierarchy
41 virtual std::vector<ModelObject> children() const override;
42
43 /// get a vector of allowable children types
44 virtual std::vector<IddObjectType> allowableChildTypes() const override;
45
46 private:
47 REGISTER_LOGGER("openstudio.model.SizingPeriod");
48 };
49
50 } // namespace detail
51
52 } // namespace model
53 } // namespace openstudio
54
55 #endif // MODEL_SIZINGPERIOD_IMPL_HPP
56