You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
748 B
C++

/*
* WarningDecrease.h
*
* Author: Aleksey Gerasimenko
* gerasimenko.aleksey.n@gmail.com
*/
#include "Alert/AlertBase.h"
#ifndef ALERT_WARNINGDECREASE_H_
#define ALERT_WARNINGDECREASE_H_
namespace ALERT
{
class WarningDecrease: public ALERT::AlertBase
{
private:
bool m_warning;
public:
bool warning;
public:
WarningDecrease();
void setup(float time_sample);
void configure(const AlertBaseConfiguration& config);
public:
void reset();
public:
void execute(float reference);
private:
void (WarningDecrease::*_execute)(float reference);
void _execute_undef(float reference);
void _execute_operational(float reference);
//
};//
} /* namespace ALERT */
#endif /* ALERT_WARNINGDECREASE_H_ */