37 std::int32_t
getId() const noexcept;
44 const std::
string&
getName() const noexcept;
87 const std::
string& name,
90 float value) noexcept;
137 return _alarmRangeRelation;
Contains enums defining various properties of alarms.
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
std::int32_t getId() const noexcept
Returns the ID of the alarm channel.
Definition AlarmChannelStatus.h:120
AlarmState getState() const noexcept
Returns the state of the alarm channel.
Definition AlarmChannelStatus.h:130
OTC_SDK_API void update(std::int32_t channelId, const std::string &name, AlarmState state, AlarmRangeRelation alarmRangeRelation, float value) noexcept
Updates the status of the alarm channel.
bool isActive() const noexcept
Returns whether the alarm channel is active.
Definition AlarmChannelStatus.h:145
float getValue() const noexcept
Returns the value of the alarm channel on which the alarm state is based.
Definition AlarmChannelStatus.h:140
AlarmRangeRelation getAlarmRangeRelation() const noexcept
Returns the relation of the value to the alarm range.
Definition AlarmChannelStatus.h:135
OTC_SDK_API AlarmChannelStatus() noexcept
Constructor.
const std::string & getName() const noexcept
Returns the name of the alarm channel.
Definition AlarmChannelStatus.h:125
Main SDK namespace.
Definition AlarmChannel.h:21
AlarmRangeRelation
Represents the relation of an alarm input value to an alarm range.
Definition AlarmProperties.h:44
AlarmState
Represents the different states an alarm channel can be in.
Definition AlarmProperties.h:33
@ Active
Alarm is active.
Definition AlarmProperties.h:39