BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/facilities/include/facilities/ScheduledEvent.h
Go to the documentation of this file.
1// $Id: ScheduledEvent.h,v 1.1.1.1 2005/10/17 06:11:40 maqm Exp $
2
3#ifndef SCHEDULEDEVENT_H
4#define SCHEDULEDEVENT_H
5
6#include <string>
7
8class Scheduler;
9
11 // abstract base class for an event that is scheduled by the ScheduledEvent class
12public:
13 virtual ~ScheduledEvent() {}
14
15 virtual void execute() = 0;
16 // perform the task (must be implemented)
17
18 virtual std::string name() const;
19 // describe the event. Default is the class name from class info
20
21protected:
23
24 static void schedule( double t, ScheduledEvent* next );
25 // subclass can easily schedule a new event
26
27private:
28 friend class Scheduler;
29};
30#endif
static void schedule(double t, ScheduledEvent *next)
virtual std::string name() const
virtual void execute()=0
int t()
Definition t.c:1