BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/facilities/facilities-00-00-04/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{
12 // abstract base class for an event that is scheduled by the ScheduledEvent class
13public:
14 virtual ~ScheduledEvent(){}
15
16 virtual void execute()=0;
17 // perform the task (must be implemented)
18
19 virtual std::string name()const;
20 // describe the event. Default is the class name from class info
21
22protected:
24
25 static void schedule(double t, ScheduledEvent* next);
26 // subclass can easily schedule a new event
27
28private:
29 friend class Scheduler;
30
31};
32#endif
TTree * t
Definition: binning.cxx:23
static void schedule(double t, ScheduledEvent *next)
virtual std::string name() const
virtual void execute()=0