60 throw SDKException{
"Invalid range: minimum value is greater than maximum value."};
76 return lhs.min == rhs.min && lhs.max == rhs.max;
90 return lhs.min != rhs.min || lhs.max != rhs.max;
104 return value >= range.min && value <= range.max;
118 return (out <<
"[" << range.min <<
", " << range.max <<
"]");
Contains the exceptions raised by the SDK.
Exception raised by the SDK.
Definition Exceptions.h:23
Main SDK namespace.
Definition AlarmChannel.h:21
OTC_SDK_API std::ostream & operator<<(std::ostream &out, const AlarmChannelConfig &config) noexcept
Output stream operator for alarm channel configurations.
Range< int > RangeI
Alias for a range with integer components.
Definition Range.h:51
bool isIn(const T &value, const Range< T > &range) noexcept
Checks if a value is within a given range.
Definition Range.h:102
bool operator!=(const RadiationParameters &lhs, const RadiationParameters &rhs) noexcept
Checks if two radiation parameter sets are unequal.
bool operator==(const RadiationParameters &lhs, const RadiationParameters &rhs) noexcept
Checks if two radiation parameter sets are equal.
Range< float > RangeF
Alias for a range with float components.
Definition Range.h:49
Generic range structure.
Definition Range.h:28
static void validate(const Range< T > &range)
Validates the range.
Definition Range.h:56
float max
Definition Range.h:35
T ComponentType
Type of the range components.
Definition Range.h:30
float min
Definition Range.h:33