42
|
1 #ifndef INCLUDED_SCHED_TASK_BASE
|
|
2 #define INCLUDED_SCHED_TASK_BASE
|
|
3
|
|
4 #ifndef INCLUDED_SCHEDULER
|
|
5 # include "Scheduler.h"
|
|
6 #endif
|
|
7
|
|
8 class Scheduler;
|
|
9
|
|
10 class SchedTaskBase {
|
|
11 public:
|
|
12 /* constructor */
|
|
13 //SchedTaskBase(void) {}
|
|
14 virtual ~SchedTaskBase(void) {}
|
|
15
|
|
16 // noaction in default
|
|
17 virtual void load(void) {}
|
|
18 virtual void read(void) {}
|
|
19 virtual void exec(void) {}
|
|
20 virtual void write(void) {}
|
|
21
|
|
22 /* functions */
|
|
23 virtual SchedTaskBase* next(Scheduler*, SchedTaskBase*) = 0;
|
|
24 };
|
|
25
|
|
26 #endif
|