Dataflow Runtime API  3.0.3.0
Public Member Functions | List of all members
imt::base::lib::alarms::FlagAlarm Class Reference

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. More...
 
void setFlag (void)
 Sets the flag and activates the alarm. More...
 
void clearFlag (void)
 Clears the flag and disables the alarm. More...
 
bool isAlarmActive (void) const
 Returns if any alarm is currently activated. More...
 
void reset (void)
 Resets the flag without sending a disable alarm message. More...
 
void updateValue (const bool flag)
 Updates the flag. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FlagAlarm()

imt::base::lib::alarms::FlagAlarm::FlagAlarm ( AlarmSenderIfc alarmSender,
const AlarmIdentifier  alarmId 
)
explicit

Constructor.

Parameters
alarmSenderThe interface to the actual alarm sender.
alarmIdThe ID of the alarm that shall be sent.

◆ ~FlagAlarm()

virtual imt::base::lib::alarms::FlagAlarm::~FlagAlarm ( void  )
virtual

Destructor.

Member Function Documentation

◆ clearFlag()

void imt::base::lib::alarms::FlagAlarm::clearFlag ( void  )

Clears the flag and disables the alarm.

◆ isAlarmActive()

bool imt::base::lib::alarms::FlagAlarm::isAlarmActive ( void  ) const

Returns if any alarm is currently activated.

Returns
true if the alarm is active, false otherwise.

◆ reset()

void imt::base::lib::alarms::FlagAlarm::reset ( void  )

Resets the flag without sending a disable alarm message.

◆ setFlag()

void imt::base::lib::alarms::FlagAlarm::setFlag ( void  )

Sets the flag and activates the alarm.

◆ updateValue()

void imt::base::lib::alarms::FlagAlarm::updateValue ( const bool  flag)

Updates the flag.

Parameters
flagThe new value for the flag.

The documentation for this class was generated from the following file: