src/model/AirToAirComponent_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_AIRTOAIRCOMPONENT_IMPL_HPP | ||
| 7 | #define MODEL_AIRTOAIRCOMPONENT_IMPL_HPP | ||
| 8 | |||
| 9 | #include "HVACComponent_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | class AirLoopHVAC; | ||
| 15 | |||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class MODEL_API AirToAirComponent_Impl : public HVACComponent_Impl | ||
| 19 | { | ||
| 20 | public: | ||
| 21 | AirToAirComponent_Impl(IddObjectType type, Model_Impl* model); | ||
| 22 | |||
| 23 | AirToAirComponent_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 24 | |||
| 25 | AirToAirComponent_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 26 | |||
| 27 | AirToAirComponent_Impl(const AirToAirComponent_Impl& other, Model_Impl* model, bool keepHandles); | ||
| 28 | |||
| 29 | 125 | virtual ~AirToAirComponent_Impl() override = default; | |
| 30 | |||
| 31 | virtual unsigned primaryAirInletPort() const = 0; | ||
| 32 | |||
| 33 | virtual unsigned primaryAirOutletPort() const = 0; | ||
| 34 | |||
| 35 | virtual unsigned secondaryAirInletPort() const = 0; | ||
| 36 | |||
| 37 | virtual unsigned secondaryAirOutletPort() const = 0; | ||
| 38 | |||
| 39 | boost::optional<ModelObject> primaryAirInletModelObject() const; | ||
| 40 | |||
| 41 | boost::optional<ModelObject> primaryAirOutletModelObject() const; | ||
| 42 | |||
| 43 | boost::optional<ModelObject> secondaryAirInletModelObject() const; | ||
| 44 | |||
| 45 | boost::optional<ModelObject> secondaryAirOutletModelObject() const; | ||
| 46 | |||
| 47 | bool addToNode(Node& node) override; | ||
| 48 | |||
| 49 | std::vector<openstudio::IdfObject> remove() override; | ||
| 50 | |||
| 51 | ModelObject clone(Model model) const override; | ||
| 52 | |||
| 53 | private: | ||
| 54 | REGISTER_LOGGER("openstudio.model.AirToAirComponent"); | ||
| 55 | }; | ||
| 56 | |||
| 57 | } // namespace detail | ||
| 58 | |||
| 59 | } // namespace model | ||
| 60 | } // namespace openstudio | ||
| 61 | |||
| 62 | #endif // MODEL_AIRTOAIRCOMPONENT_IMPL_HPP | ||
| 63 |