OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — legacy C++ API referencev12.0

These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.

optris::CompositeAlarmStatus

Encapsulates the status of the composite alarm.

Public functions

CompositeAlarmStatus

CompositeAlarmStatus()=default

Constructor.

isActive

bool isActive() const noexcept

Returns whether the composite alarm is active. The composite alarm is considered active, if at least one of its alarm channels is active. If none of its alarm channels is active or if it does not have alarm channels, it will be inactive.

Returns: true if the composite alarm is active, false otherwise.

See also: AlarmChannelStatus::isActive()

getActiveChannelStatuses

const std::vector< AlarmChannelStatus > & getActiveChannelStatuses() const noexcept

Returns the statuses of the active alarm channels contributing to the composite alarm.

Returns: statuses of the active alarm channels contributing to the composite alarm. Empty, if the composite alarm is not active.

See also: AlarmChannelStatus::isActive()

getActiveChannelCount

int getActiveChannelCount() const noexcept

Returns the count of active alarm channels contributing to the composite alarm.

Returns: count of active alarm channels contributing to the composite alarm. Zero, if the composite alarm is not active.

See also: AlarmChannelStatus::isActive()

reset

void reset() noexcept

Resets the composite alarm status.

addChannelStatus

void addChannelStatus(const AlarmChannelStatus &channel) noexcept

Adds the status of an active alarm channel contributing to the composite alarm.

Parameters

Name Description
channel status of an active alarm channel to add.