src/model/ComponentCostAdjustments_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_COMPONENTCOSTADJUSTMENTS_IMPL_HPP | ||
| 7 | #define MODEL_COMPONENTCOSTADJUSTMENTS_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ParentObject_Impl.hpp" | ||
| 10 | #include "ComponentCostAdjustments.hpp" | ||
| 11 | |||
| 12 | #include "../utilities/core/Optional.hpp" | ||
| 13 | |||
| 14 | namespace openstudio { | ||
| 15 | namespace model { | ||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class MODEL_API ComponentCostAdjustments_Impl : public ParentObject_Impl | ||
| 19 | { | ||
| 20 | public: | ||
| 21 | // constructor | ||
| 22 | ComponentCostAdjustments_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 23 | |||
| 24 | // construct from workspace | ||
| 25 | ComponentCostAdjustments_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 26 | |||
| 27 | // clone copy constructor | ||
| 28 | ComponentCostAdjustments_Impl(const ComponentCostAdjustments_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | // virtual destructor | ||
| 31 | ✗ | virtual ~ComponentCostAdjustments_Impl() override = default; | |
| 32 | |||
| 33 | boost::optional<double> miscellaneousCostPerConditionedArea() const; | ||
| 34 | bool setMiscellaneousCostPerConditionedArea(double num); | ||
| 35 | |||
| 36 | boost::optional<double> designAndEngineeringFees() const; | ||
| 37 | bool setDesignAndEngineeringFees(double num); | ||
| 38 | |||
| 39 | boost::optional<double> contractorFee() const; | ||
| 40 | bool setContractorFee(double num); | ||
| 41 | |||
| 42 | boost::optional<double> contingency() const; | ||
| 43 | bool setContingency(double num); | ||
| 44 | |||
| 45 | boost::optional<double> permitsBondingAndInsurance() const; | ||
| 46 | bool setPermitsBondingAndInsurance(double num); | ||
| 47 | |||
| 48 | boost::optional<double> commissioningFee() const; | ||
| 49 | bool setCommissioningFee(double num); | ||
| 50 | |||
| 51 | boost::optional<double> regionalAdjustmentFactor() const; | ||
| 52 | bool setRegionalAdjustmentFactor(double num); | ||
| 53 | |||
| 54 | // return the parent object in the hierarchy | ||
| 55 | virtual boost::optional<ParentObject> parent() const override; | ||
| 56 | |||
| 57 | // set the parent, child may have to call methods on the parent | ||
| 58 | virtual bool setParent(ParentObject& newParent) override; | ||
| 59 | |||
| 60 | // return any children objects in the hierarchy | ||
| 61 | virtual std::vector<ModelObject> children() const override; | ||
| 62 | |||
| 63 | /// get a vector of allowable children types | ||
| 64 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 65 | |||
| 66 | // Get all output variable names that could be associated with this object. | ||
| 67 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 68 | |||
| 69 | ✗ | virtual IddObjectType iddObjectType() const override { | |
| 70 | ✗ | return ComponentCostAdjustments::iddObjectType(); | |
| 71 | } | ||
| 72 | |||
| 73 | private: | ||
| 74 | REGISTER_LOGGER("openstudio.model.ComponentCostAdjustments"); | ||
| 75 | }; | ||
| 76 | |||
| 77 | } // namespace detail | ||
| 78 | } // namespace model | ||
| 79 | } // namespace openstudio | ||
| 80 | |||
| 81 | #endif // MODEL_COMPONENTCOSTADJUSTMENTS_IMPL_HPP | ||
| 82 |