Files
Upsilon/escher/include/escher/run_loop.h
Émilie Feral 339afe0787 [escher] Add an event "TimerTick"
Change-Id: Ib6d1cacdf13226d37b1a8fdf6ecf8a92d077a96f
2017-05-22 16:35:27 +02:00

21 lines
335 B
C++

#ifndef ESCHER_RUN_LOOP_H
#define ESCHER_RUN_LOOP_H
#include <ion.h>
#include <escher/timer.h>
class RunLoop {
public:
RunLoop();
void run();
protected:
virtual bool dispatchEvent(Ion::Events::Event e) = 0;
virtual int numberOfTimers();
virtual Timer * timerAtIndex(int i);
private:
bool step();
int m_time;
};
#endif