BOSS
7.0.1
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
8
class
Scheduler
;
9
10
class
ScheduledEvent
11
{
12
// abstract base class for an event that is scheduled by the ScheduledEvent class
13
public
:
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
22
protected
:
23
ScheduledEvent
(){};
24
25
static
void
schedule
(
double
t
,
ScheduledEvent
* next);
26
// subclass can easily schedule a new event
27
28
private
:
29
friend
class
Scheduler
;
30
31
};
32
#endif
ScheduledEvent
Definition:
Calibration/facilities/facilities-00-00-04/facilities/ScheduledEvent.h:11
ScheduledEvent::schedule
static void schedule(double t, ScheduledEvent *next)
Definition:
ScheduledEvent.cxx:8
ScheduledEvent::name
virtual std::string name() const
Definition:
ScheduledEvent.cxx:13
ScheduledEvent::execute
virtual void execute()=0
ScheduledEvent::~ScheduledEvent
virtual ~ScheduledEvent()
Definition:
Calibration/facilities/facilities-00-00-04/facilities/ScheduledEvent.h:14
ScheduledEvent::ScheduledEvent
ScheduledEvent()
Definition:
Calibration/facilities/facilities-00-00-04/facilities/ScheduledEvent.h:23
Scheduler
Definition:
Calibration/facilities/facilities-00-00-04/facilities/Scheduler.h:34
t
int t()
Definition:
t.c:1
source
Calibration
facilities
facilities-00-00-04
facilities
ScheduledEvent.h
Generated by
1.9.6