chore: Add course material
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// ======================================================
|
||||
//
|
||||
// This class specializes the Timer to enable it to
|
||||
// stimulate a Pelican
|
||||
//
|
||||
// ======================================================
|
||||
|
||||
#ifndef PelicanTimer_H
|
||||
#define PelicanTimer_H
|
||||
|
||||
#include "Pelican.h"
|
||||
#include "Timer.h"
|
||||
|
||||
class PelicanTimer : public Timer {
|
||||
public:
|
||||
typedef void (Pelican::*TargetFunc)();
|
||||
|
||||
PelicanTimer(Pelican &target, TargetFunc targetFunc);
|
||||
|
||||
private:
|
||||
void doExpired();
|
||||
|
||||
Pelican &myTarget;
|
||||
TargetFunc myTargetFunc;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user