fsfw/src/fsfw/fdir/EventCorrelation.h
Robin Mueller ddcac2bbac
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
reapply clang format
2022-02-02 10:29:30 +01:00

21 lines
509 B
C++

#ifndef FRAMEWORK_FDIR_EVENTCORRELATION_H_
#define FRAMEWORK_FDIR_EVENTCORRELATION_H_
#include "../timemanager/Countdown.h"
class EventCorrelation {
public:
enum State { CORRELATION_STARTED, CORRELATED, ALREADY_STARTED };
EventCorrelation(uint32_t timeout);
~EventCorrelation();
EventCorrelation::State doesEventCorrelate();
bool isEventPending();
bool hasPendingEventTimedOut();
Countdown correlationTimer;
private:
bool eventPending;
};
#endif /* FRAMEWORK_FDIR_EVENTCORRELATION_H_ */