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.
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.
Generic range structure.
Definition Range.h:28
static void validate(const Range< T > &range)
Validates the range.
Definition Range.h:56
T max
Maximum value of the range.
Definition Range.h:35
T ComponentType
Type of the range components.
Definition Range.h:30
T min
Minimum value of the range.
Definition Range.h:33