Project
Loading...
Searching...
No Matches
DriverControl.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
#ifndef FRAMEWORK_DRIVERCONTROL_H
12
#define FRAMEWORK_DRIVERCONTROL_H
13
14
#include <functional>
15
#include <vector>
16
17
#include "
Framework/CommandInfo.h
"
18
#include "
Framework/DriverInfo.h
"
19
#include "
Framework/DataProcessorSpec.h
"
20
#include "
Framework/DeviceSpec.h
"
21
#include "
Framework/DeviceExecution.h
"
22
23
namespace
o2::framework
24
{
25
28
enum struct
DriverControlState
{
STEP
,
29
PLAY
,
30
PAUSE
};
31
36
struct
DriverControl
{
37
using
Callback
= std::function<
void
(std::vector<DataProcessorSpec>
const
& workflow,
38
std::vector<DeviceSpec>
const
&,
39
std::vector<DeviceExecution>
const
&,
40
std::vector<DataProcessorInfo>&,
41
CommandInfo
const
&)>;
44
std::vector<DriverState>
forcedTransitions
;
46
DriverControlState
state
;
49
std::vector<Callback>
callbacks
;
50
bool
defaultQuiet
;
51
bool
defaultStopped
;
52
};
53
54
}
// namespace o2
55
56
#endif
CommandInfo.h
DataProcessorSpec.h
DeviceExecution.h
DeviceSpec.h
DriverInfo.h
void
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::DriverControlState
DriverControlState
Definition
DriverControl.h:28
o2::framework::DriverControlState::PAUSE
@ PAUSE
o2::framework::DriverControlState::STEP
@ STEP
o2::framework::DriverControlState::PLAY
@ PLAY
o2::framework::CommandInfo
Definition
CommandInfo.h:20
o2::framework::DriverControl
Definition
DriverControl.h:36
o2::framework::DriverControl::defaultQuiet
bool defaultQuiet
Definition
DriverControl.h:50
o2::framework::DriverControl::defaultStopped
bool defaultStopped
Definition
DriverControl.h:51
o2::framework::DriverControl::forcedTransitions
std::vector< DriverState > forcedTransitions
Definition
DriverControl.h:44
o2::framework::DriverControl::Callback
std::function< void(std::vector< DataProcessorSpec > const &workflow, std::vector< DeviceSpec > const &, std::vector< DeviceExecution > const &, std::vector< DataProcessorInfo > &, CommandInfo const &)> Callback
Definition
DriverControl.h:41
o2::framework::DriverControl::callbacks
std::vector< Callback > callbacks
Definition
DriverControl.h:49
o2::framework::DriverControl::state
DriverControlState state
Current state of the state machine player.
Definition
DriverControl.h:46
Framework
Core
include
Framework
DriverControl.h
Generated on Tue Feb 25 2025 17:03:20 for Project by
1.9.8