// ====================================================== // // 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); // TODO: Remove this function virtual void tick(); // TODO: Add override of virtual function Timer::doExpired // (this is the "primitive step" of the template method pattern) private: Pelican &myTarget; TargetFunc myTargetFunc; }; #endif