src/model/PipeAdiabatic.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_PIPEADIABATIC_HPP | ||
| 7 | #define MODEL_PIPEADIABATIC_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | #include "StraightComponent.hpp" | ||
| 12 | #include "Connection.hpp" | ||
| 13 | |||
| 14 | namespace openstudio { | ||
| 15 | namespace model { | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | class PipeAdiabatic_Impl; | ||
| 19 | } // namespace detail | ||
| 20 | |||
| 21 | /** PipeAdiabatic is an interface to the IDD object named "OS:Pipe:Adiabatic" | ||
| 22 | * | ||
| 23 | * The purpose of this class is to simplify the construction and manipulation | ||
| 24 | * Pipe:Adiabatic objects in energyplus. | ||
| 25 | */ | ||
| 26 | class MODEL_API PipeAdiabatic : public StraightComponent | ||
| 27 | { | ||
| 28 | |||
| 29 | public: | ||
| 30 | /** Constructs a new PipeAdiabatic object and places it inside the | ||
| 31 | * model. The object is fully initialized with all companion objects. | ||
| 32 | */ | ||
| 33 | explicit PipeAdiabatic(const Model& model); | ||
| 34 | |||
| 35 | 48 | virtual ~PipeAdiabatic() override = default; | |
| 36 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 37 | ✗ | PipeAdiabatic(const PipeAdiabatic& other) = default; | |
| 38 | ✗ | PipeAdiabatic(PipeAdiabatic&& other) = default; | |
| 39 | ✗ | PipeAdiabatic& operator=(const PipeAdiabatic&) = default; | |
| 40 | ✗ | PipeAdiabatic& operator=(PipeAdiabatic&&) = default; | |
| 41 | |||
| 42 | unsigned inletPort() const; | ||
| 43 | |||
| 44 | unsigned outletPort() const; | ||
| 45 | |||
| 46 | static IddObjectType iddObjectType(); | ||
| 47 | |||
| 48 | protected: | ||
| 49 | friend class Model; | ||
| 50 | |||
| 51 | friend class openstudio::IdfObject; | ||
| 52 | |||
| 53 | /// @cond | ||
| 54 | |||
| 55 | using ImplType = detail::PipeAdiabatic_Impl; | ||
| 56 | |||
| 57 | explicit PipeAdiabatic(std::shared_ptr<detail::PipeAdiabatic_Impl> impl); | ||
| 58 | |||
| 59 | private: | ||
| 60 | REGISTER_LOGGER("openstudio.model.PipeAdiabatic"); | ||
| 61 | |||
| 62 | /// @endcond | ||
| 63 | }; | ||
| 64 | |||
| 65 | /** \relates PipeAdiabatic */ | ||
| 66 | using OptionalPipeAdiabatic = boost::optional<PipeAdiabatic>; | ||
| 67 | |||
| 68 | /** \relates PipeAdiabatic */ | ||
| 69 | using PipeAdiabaticVector = std::vector<PipeAdiabatic>; | ||
| 70 | |||
| 71 | } // namespace model | ||
| 72 | } // namespace openstudio | ||
| 73 | |||
| 74 | #endif // MODEL_PIPEADIABATIC_HPP | ||
| 75 |