src/model/WaterUseEquipment.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_WATERUSEEQUIPMENT_HPP | ||
| 7 | #define MODEL_WATERUSEEQUIPMENT_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "SpaceLoadInstance.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Schedule; | ||
| 17 | class ThermalZone; | ||
| 18 | class WaterUseConnections; | ||
| 19 | class WaterUseEquipmentDefinition; | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | class WaterUseEquipment_Impl; | ||
| 24 | |||
| 25 | } // namespace detail | ||
| 26 | |||
| 27 | /** WaterUseEquipment is a ModelObject that wraps the OpenStudio IDD object 'OS:WaterUse:Equipment'. */ | ||
| 28 | class MODEL_API WaterUseEquipment : public SpaceLoadInstance | ||
| 29 | { | ||
| 30 | public: | ||
| 31 | explicit WaterUseEquipment(const WaterUseEquipmentDefinition& waterUseEquipmentDefinition); | ||
| 32 | |||
| 33 | 229 | virtual ~WaterUseEquipment() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | 33 | WaterUseEquipment(const WaterUseEquipment& other) = default; | |
| 36 | 66 | WaterUseEquipment(WaterUseEquipment&& other) = default; | |
| 37 | ✗ | WaterUseEquipment& operator=(const WaterUseEquipment&) = default; | |
| 38 | ✗ | WaterUseEquipment& operator=(WaterUseEquipment&&) = default; | |
| 39 | |||
| 40 | static IddObjectType iddObjectType(); | ||
| 41 | |||
| 42 | boost::optional<Schedule> flowRateFractionSchedule() const; | ||
| 43 | bool setFlowRateFractionSchedule(Schedule& flowRateFractionSchedule); | ||
| 44 | void resetFlowRateFractionSchedule(); | ||
| 45 | |||
| 46 | WaterUseEquipmentDefinition waterUseEquipmentDefinition() const; | ||
| 47 | bool setWaterUseEquipmentDefinition(const WaterUseEquipmentDefinition& definition); | ||
| 48 | |||
| 49 | boost::optional<WaterUseConnections> waterUseConnections() const; | ||
| 50 | |||
| 51 | protected: | ||
| 52 | /// @cond | ||
| 53 | |||
| 54 | using ImplType = detail::WaterUseEquipment_Impl; | ||
| 55 | |||
| 56 | explicit WaterUseEquipment(std::shared_ptr<detail::WaterUseEquipment_Impl> impl); | ||
| 57 | |||
| 58 | friend class detail::WaterUseEquipment_Impl; | ||
| 59 | friend class Model; | ||
| 60 | friend class IdfObject; | ||
| 61 | friend class openstudio::detail::IdfObject_Impl; | ||
| 62 | |||
| 63 | /// @endcond | ||
| 64 | |||
| 65 | private: | ||
| 66 | REGISTER_LOGGER("openstudio.model.WaterUseEquipment"); | ||
| 67 | }; | ||
| 68 | |||
| 69 | /** \relates WaterUseEquipment*/ | ||
| 70 | using OptionalWaterUseEquipment = boost::optional<WaterUseEquipment>; | ||
| 71 | |||
| 72 | /** \relates WaterUseEquipment*/ | ||
| 73 | using WaterUseEquipmentVector = std::vector<WaterUseEquipment>; | ||
| 74 | |||
| 75 | } // namespace model | ||
| 76 | } // namespace openstudio | ||
| 77 | |||
| 78 | #endif // MODEL_WATERUSEEQUIPMENT_HPP | ||
| 79 |