src/model/AirflowNetworkReferenceCrackConditions.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_AIRFLOWNETWORKREFERENCECRACKCONDITIONS_HPP | ||
| 7 | #define MODEL_AIRFLOWNETWORKREFERENCECRACKCONDITIONS_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | namespace detail { | ||
| 17 | |||
| 18 | class AirflowNetworkReferenceCrackConditions_Impl; | ||
| 19 | |||
| 20 | } // namespace detail | ||
| 21 | |||
| 22 | /** AirflowNetworkReferenceCrackConditions is a ModelObject that wraps the OpenStudio IDD object 'OS:AirflowNetworkReferenceCrackConditions'. */ | ||
| 23 | class MODEL_API AirflowNetworkReferenceCrackConditions : public ModelObject | ||
| 24 | { | ||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | /** Construct a reference crack conditions object with default values. */ | ||
| 29 | explicit AirflowNetworkReferenceCrackConditions(const Model& model); | ||
| 30 | /** Construct a reference crack conditions object with specified temperature, pressure, and barometric pressure. */ | ||
| 31 | AirflowNetworkReferenceCrackConditions(const Model& model, double temperature, double barometricPressure, double humidityRatio); | ||
| 32 | |||
| 33 | 11 | virtual ~AirflowNetworkReferenceCrackConditions() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | ✗ | AirflowNetworkReferenceCrackConditions(const AirflowNetworkReferenceCrackConditions& other) = default; | |
| 36 | 7 | AirflowNetworkReferenceCrackConditions(AirflowNetworkReferenceCrackConditions&& other) = default; | |
| 37 | ✗ | AirflowNetworkReferenceCrackConditions& operator=(const AirflowNetworkReferenceCrackConditions&) = default; | |
| 38 | ✗ | AirflowNetworkReferenceCrackConditions& operator=(AirflowNetworkReferenceCrackConditions&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | /** Returns the reference temperature in degrees C. */ | ||
| 47 | double temperature() const; | ||
| 48 | /** Returns true if the reference temperature is defaulted. */ | ||
| 49 | bool isTemperatureDefaulted() const; | ||
| 50 | /** Returns the reference barometric pressure in Pa. */ | ||
| 51 | double barometricPressure() const; | ||
| 52 | /** Returns true if the reference barometric pressure is defaulted. */ | ||
| 53 | bool isBarometricPressureDefaulted() const; | ||
| 54 | /** Returns the reference humidity ratio in kgWater/kgDryAir. */ | ||
| 55 | double humidityRatio() const; | ||
| 56 | /** Returns true if the reference humidity ratio is defaulted. */ | ||
| 57 | bool isHumidityRatioDefaulted() const; | ||
| 58 | |||
| 59 | //@} | ||
| 60 | /** @name Setters */ | ||
| 61 | //@{ | ||
| 62 | /** Sets the reference temperature in degrees C. */ | ||
| 63 | void setTemperature(double referenceTemperature); | ||
| 64 | /** Resets the reference temperature to the default. */ | ||
| 65 | void resetTemperature(); | ||
| 66 | /** Sets the the reference barometric pressure in Pa. */ | ||
| 67 | bool setBarometricPressure(double referenceBarometricPressure); | ||
| 68 | /** Resets the reference barometric pressure to the default. */ | ||
| 69 | void resetBarometricPressure(); | ||
| 70 | /** Sets the reference humidity ratio in kgWater/kgDryAir. */ | ||
| 71 | void setHumidityRatio(double referenceHumidityRatio); | ||
| 72 | /** Resets the reference humidity ratio to the default. */ | ||
| 73 | void resetHumidityRatio(); | ||
| 74 | |||
| 75 | //@} | ||
| 76 | /** @name Other */ | ||
| 77 | //@{ | ||
| 78 | |||
| 79 | //@} | ||
| 80 | protected: | ||
| 81 | /// @cond | ||
| 82 | using ImplType = detail::AirflowNetworkReferenceCrackConditions_Impl; | ||
| 83 | |||
| 84 | explicit AirflowNetworkReferenceCrackConditions(std::shared_ptr<detail::AirflowNetworkReferenceCrackConditions_Impl> impl); | ||
| 85 | |||
| 86 | friend class detail::AirflowNetworkReferenceCrackConditions_Impl; | ||
| 87 | friend class Model; | ||
| 88 | friend class IdfObject; | ||
| 89 | friend class openstudio::detail::IdfObject_Impl; | ||
| 90 | /// @endcond | ||
| 91 | private: | ||
| 92 | REGISTER_LOGGER("openstudio.model.AirflowNetworkReferenceCrackConditions"); | ||
| 93 | }; | ||
| 94 | |||
| 95 | /** \relates AirflowNetworkReferenceCrackConditions*/ | ||
| 96 | using OptionalAirflowNetworkReferenceCrackConditions = boost::optional<AirflowNetworkReferenceCrackConditions>; | ||
| 97 | |||
| 98 | /** \relates AirflowNetworkReferenceCrackConditions*/ | ||
| 99 | using AirflowNetworkReferenceCrackConditionsVector = std::vector<AirflowNetworkReferenceCrackConditions>; | ||
| 100 | |||
| 101 | } // namespace model | ||
| 102 | } // namespace openstudio | ||
| 103 | |||
| 104 | #endif // MODEL_AIRFLOWNETWORKREFERENCECRACKCONDITIONS_HPP | ||
| 105 |