36 : _airTemperature(airTemperature), _airPressure(airPressure), _humidity(humidity) {
41 return (_airTemperature ==
other.getAirTemperature() && _airPressure ==
other.getAirPressure() &&
42 _humidity ==
other.getHumidity());
50 void Weather::validate()
const {
51 if (_humidity < 0.0) {
53 os <<
"Relative humidity = " << _humidity <<
" must not be negative";
table::Key< double > airTemperature
double getHumidity() const noexcept
get outside relative humidity (%)
std::ostream & operator<<(std::ostream &os, Observatory const &obs)
Print an Observatory to the stream.
double getAirPressure() const noexcept
get outside air pressure (Pascal)
A base class for image defects.
table::Key< double > humidity
double getAirTemperature() const noexcept
get outside air temperature (C)
bool operator==(Weather const &other) const noexcept
Weather(double airTemperature, double airPressure, double humidity)
Construct a Weather.
std::size_t hash_value() const noexcept
Return a hash of this object.
Basic weather information sufficient for a simple model for air mass or refraction.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
table::Key< double > airPressure
Reports invalid arguments.
ItemVariant const * other
std::size_t hashCombine(std::size_t seed) noexcept
Combine hashes.