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";
#define LSST_EXCEPT(type,...)
table::Key< double > airPressure
table::Key< double > airTemperature
table::Key< double > humidity
Basic weather information sufficient for a simple model for air mass or refraction.
bool operator==(Weather const &other) const noexcept
double getHumidity() const noexcept
get outside relative humidity (%)
double getAirPressure() const noexcept
get outside air pressure (Pascal)
double getAirTemperature() const noexcept
get outside air temperature (C)
Weather(double airTemperature, double airPressure, double humidity)
Construct a Weather.
std::size_t hash_value() const noexcept
Return a hash of this object.
std::ostream & operator<<(std::ostream &os, Observatory const &obs)
Print an Observatory to the stream.
std::size_t hashCombine(std::size_t seed) noexcept
A base class for image defects.