![]() |
Dataflow Runtime API
2.7.4.0
|
Activates the given alarms if the flag is set and deactivates it when the flag is cleared. More...
#include <Imt.Base.Lib.Alarms/FlagAlarm.h>
Public Member Functions | |
FlagAlarm (AlarmSenderIfc &alarmSender, const AlarmIdentifier alarmId) | |
Constructor. More... | |
virtual | ~FlagAlarm (void) |
Destructor. | |
void | setFlag (void) |
Sets the flag and activates the alarm. | |
void | clearFlag (void) |
Clears the flag and disables the alarm. | |
bool | isAlarmActive (void) const |
Returns if any alarm is currently activated. More... | |
void | reset (void) |
Resets the flag without sending a disable alarm message. | |
void | updateValue (const bool flag) |
Updates the flag. More... | |
Activates the given alarms if the flag is set and deactivates it when the flag is cleared.
Does send the activation/deactivation message only when the condition changes. Initially the alarm is deactivated.
|
explicit |
Constructor.
alarmSender | The interface to the actual alarm sender. |
alarmId | The ID of the alarm that shall be sent. |
bool imt::base::lib::alarms::FlagAlarm::isAlarmActive | ( | void | ) | const |
Returns if any alarm is currently activated.
void imt::base::lib::alarms::FlagAlarm::updateValue | ( | const bool | flag | ) |
Updates the flag.
flag | The new value for the flag. |