Files
2026-10-05 11:27:21 +02:00

28 lines
541 B
C++

// ======================================================
//
// This class specializes the Timer to enable it to
// stimulate a Light
//
// ======================================================
#ifndef LightTimer_H
#define LightTimer_H
#include "Light.h"
#include "Timer.h"
class LightTimer : public Timer {
public:
typedef void (Light::*TargetFunc)();
LightTimer(Light &target, TargetFunc targetFunc);
private:
void doExpired();
Light &myTarget;
TargetFunc myTargetFunc;
};
#endif