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