src/model/AirflowNetworkZoneExhaustFan.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_AIRFLOWNETWORKZONEEXHAUSTFAN_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKZONEEXHAUSTFAN_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class FanZoneExhaust; | ||
| 16 | class AirflowNetworkCrack; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class FanZoneExhaust_Impl; | ||
| 21 | class AirflowNetworkZoneExhaustFan_Impl; | ||
| 22 | |||
| 23 | } // namespace detail | ||
| 24 | |||
| 25 | /** AirflowNetworkZoneExhaustFan is a ModelObject that wraps the OpenStudio IDD object 'OS:AirflowNetworkZoneExhaustFan'. */ | ||
| 26 | class MODEL_API AirflowNetworkZoneExhaustFan : public ModelObject | ||
| 27 | { | ||
| 28 | public: | ||
| 29 | /** @name Constructors and Destructors */ | ||
| 30 | //@{ | ||
| 31 | |||
| 32 | 1 | virtual ~AirflowNetworkZoneExhaustFan() override = default; | |
| 33 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 34 | ✗ | AirflowNetworkZoneExhaustFan(const AirflowNetworkZoneExhaustFan& other) = default; | |
| 35 | ✗ | AirflowNetworkZoneExhaustFan(AirflowNetworkZoneExhaustFan&& other) = default; | |
| 36 | ✗ | AirflowNetworkZoneExhaustFan& operator=(const AirflowNetworkZoneExhaustFan&) = default; | |
| 37 | ✗ | AirflowNetworkZoneExhaustFan& operator=(AirflowNetworkZoneExhaustFan&&) = default; | |
| 38 | |||
| 39 | //@} | ||
| 40 | |||
| 41 | static IddObjectType iddObjectType(); | ||
| 42 | |||
| 43 | /** @name Getters */ | ||
| 44 | //@{ | ||
| 45 | |||
| 46 | /** Returns the FanZoneExhaust object associated with this object, if any */ | ||
| 47 | boost::optional<FanZoneExhaust> fanZoneExhaust() const; | ||
| 48 | /** Returns the AirflowNetworkCrack object associated with this object, if any */ | ||
| 49 | boost::optional<AirflowNetworkCrack> crack() const; | ||
| 50 | |||
| 51 | //@} | ||
| 52 | /** @name Setters */ | ||
| 53 | //@{ | ||
| 54 | |||
| 55 | /** Sets the AirflowNetworkCrack object associated with this object. */ | ||
| 56 | bool setCrack(const AirflowNetworkCrack& crack); | ||
| 57 | /** Resets the AirflowNetworkCrack object for this object. */ | ||
| 58 | void resetCrack(); | ||
| 59 | |||
| 60 | //@} | ||
| 61 | /** @name Other */ | ||
| 62 | //@{ | ||
| 63 | |||
| 64 | //@} | ||
| 65 | protected: | ||
| 66 | /// @cond | ||
| 67 | using ImplType = detail::AirflowNetworkZoneExhaustFan_Impl; | ||
| 68 | |||
| 69 | AirflowNetworkZoneExhaustFan(const Model& model, const AirflowNetworkCrack& crack, const Handle& handle); | ||
| 70 | |||
| 71 | explicit AirflowNetworkZoneExhaustFan(std::shared_ptr<detail::AirflowNetworkZoneExhaustFan_Impl> impl); | ||
| 72 | |||
| 73 | void resetFanZoneExhaust(); | ||
| 74 | |||
| 75 | friend class detail::FanZoneExhaust_Impl; | ||
| 76 | friend class detail::AirflowNetworkZoneExhaustFan_Impl; | ||
| 77 | friend class Model; | ||
| 78 | friend class IdfObject; | ||
| 79 | friend class openstudio::detail::IdfObject_Impl; | ||
| 80 | /// @endcond | ||
| 81 | private: | ||
| 82 | REGISTER_LOGGER("openstudio.model.AirflowNetworkZoneExhaustFan"); | ||
| 83 | }; | ||
| 84 | |||
| 85 | /** \relates AirflowNetworkZoneExhaustFan*/ | ||
| 86 | using OptionalAirflowNetworkZoneExhaustFan = boost::optional<AirflowNetworkZoneExhaustFan>; | ||
| 87 | |||
| 88 | /** \relates AirflowNetworkZoneExhaustFan*/ | ||
| 89 | using AirflowNetworkZoneExhaustFanVector = std::vector<AirflowNetworkZoneExhaustFan>; | ||
| 90 | |||
| 91 | } // namespace model | ||
| 92 | } // namespace openstudio | ||
| 93 | |||
| 94 | #endif // MODEL_AIRFLOWNETWORKZONEEXHAUSTFAN_HPP | ||
| 95 |