GCC Code Coverage Report


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

src/model/LifeCycleCostUsePriceEscalation_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_LIFECYCLECOSTUSEPRICEESCALATION_IMPL_HPP
7 #define MODEL_LIFECYCLECOSTUSEPRICEESCALATION_IMPL_HPP
8
9 #include "ParentObject_Impl.hpp"
10 #include "LifeCycleCostUsePriceEscalation.hpp"
11 #include "../utilities/core/Optional.hpp"
12
13 namespace openstudio {
14 namespace model {
15 namespace detail {
16
17 class MODEL_API LifeCycleCostUsePriceEscalation_Impl : public ParentObject_Impl
18 {
19 public:
20 // constructor
21 LifeCycleCostUsePriceEscalation_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
22
23 // construct from workspace
24 LifeCycleCostUsePriceEscalation_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
25
26 // clone copy constructor
27 LifeCycleCostUsePriceEscalation_Impl(const LifeCycleCostUsePriceEscalation_Impl& other, Model_Impl* model, bool keepHandle);
28
29 // virtual destructor
30 1 virtual ~LifeCycleCostUsePriceEscalation_Impl() override = default;
31
32 OptionalString resource() const;
33 bool setResource(const std::string& str);
34
35 OptionalString escalationStartMonth() const;
36 bool setEscalationStartMonth(const std::string& str);
37
38 OptionalInt escalationStartYear() const;
39 bool setEscalationStartYear(int num);
40
41 boost::optional<double> yearEscalation(unsigned index) const;
42 bool setYearEscalation(unsigned index, double num);
43
44 unsigned numYears() const;
45
46 // return the parent object in the hierarchy
47 virtual boost::optional<ParentObject> parent() const override;
48
49 // set the parent, child may have to call methods on the parent
50 virtual bool setParent(ParentObject& newParent) override;
51
52 // return any children objects in the hierarchy
53 virtual std::vector<ModelObject> children() const override;
54
55 /// get a vector of allowable children types
56 virtual std::vector<IddObjectType> allowableChildTypes() const override;
57
58 // Get all output variable names that could be associated with this object.
59 virtual const std::vector<std::string>& outputVariableNames() const override;
60
61 ✗ virtual IddObjectType iddObjectType() const override {
62 ✗ return LifeCycleCostUsePriceEscalation::iddObjectType();
63 }
64
65 private:
66 REGISTER_LOGGER("openstudio.model.LifeCycleCostUsePriceEscalation");
67 };
68
69 } // namespace detail
70 } // namespace model
71 } // namespace openstudio
72
73 #endif // MODEL_LIFECYCLECOSTUSEPRICEESCALATION_IMPL_HPP
74