64 void reset() noexcept;
95 return !_activeChannels.empty();
100 return _activeChannels;
105 return static_cast<int>(_activeChannels.size());
110 _activeChannels.clear();
115 _activeChannels.push_back(channel);
Contains a class holding the status of an alarm channel.
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Encapsulates the status of an alarm channel.
Definition AlarmChannelStatus.h:26
Encapsulates the status of the composite alarm.
Definition CompositeAlarmStatus.h:25
const std::vector< AlarmChannelStatus > & getActiveChannelStatuses() const noexcept
Returns the statuses of the active alarm channels contributing to the composite alarm.
Definition CompositeAlarmStatus.h:98
CompositeAlarmStatus()=default
Constructor.
int getActiveChannelCount() const noexcept
Returns the count of active alarm channels contributing to the composite alarm.
Definition CompositeAlarmStatus.h:103
void addChannelStatus(const AlarmChannelStatus &channel) noexcept
Adds the status of an active alarm channel contributing to the composite alarm.
Definition CompositeAlarmStatus.h:113
void reset() noexcept
Resets the composite alarm status.
Definition CompositeAlarmStatus.h:108
bool isActive() const noexcept
Returns whether the composite alarm is active.
Definition CompositeAlarmStatus.h:93
Main SDK namespace.
Definition AlarmChannel.h:21