Project
Loading...
Searching...
No Matches
DeviceControl.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 O2_FRAMEWORK_DEVICECONTROL_H_
12#define O2_FRAMEWORK_DEVICECONTROL_H_
13
15
16#include <map>
17#include <string>
18
19namespace o2::framework
20{
21
22struct DeviceController;
23
24constexpr int MAX_USER_FILTER_SIZE = 256;
25
31 // whether the device should start in STOP
32 bool stopped = false;
34 bool quiet = false;
36 bool logVisible = false;
38 LogParsingHelpers::LogLevel logLevel = LogParsingHelpers::LogLevel::Info;
46 std::map<std::string, std::string> options;
50 int tracingFlags = 0;
52 int logStreams = 0;
55};
56
57} // namespace o2::framework
58
59#endif // O2_FRAMEWORK_DEVICECONTROL_H_
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
constexpr int MAX_USER_FILTER_SIZE
bool logVisible
wether the log window should be opened.
int logStreams
What kind of log streams should be enabled.
char logStartTrigger[MAX_USER_FILTER_SIZE]
Start printing log with the last occurence of this.
DeviceController * controller
Handler used to communicate with the device (if available)
std::map< std::string, std::string > options
Where the GUI should store the options it wants.
int requestedState
An incremental number to identify the device state.
char logFilter[MAX_USER_FILTER_SIZE]
Lines in the log should match this to be displayed.
char logStopTrigger[MAX_USER_FILTER_SIZE]
Stop producing log with the first occurrence of this after the start.
int tracingFlags
What kind of events should run with the TRACE level.
LogParsingHelpers::LogLevel logLevel
Minimum log level for messages to appear.
bool quiet
wether we should be capturing device output.
LogLevel
Possible log levels for device log entries.