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.

39 lines
729 B
C

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