Project
Loading...
Searching...
No Matches
SpyService.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
12#ifndef O2_FRAMEWORK_SPYSERVICE_H
13#define O2_FRAMEWORK_SPYSERVICE_H
14
18#include <mutex>
19#include <vector>
20#include <fairmq/FwdDecls.h>
21
22namespace o2::framework
23{
24struct ServiceRegistry;
25struct DeviceState;
26struct DriverClient;
27
28struct GuiRenderer;
29
31{
32 public:
33 SpyService(ServiceRegistryRef registry, DeviceState& deviceState);
34
37 int selectedData = 0;
39
40 fair::mq::Parts* parts;
41
42 bool partsAlive = false;
43 size_t enableAfter = 0;
44
45 private:
46 bool mOnce = false;
47 ServiceRegistryRef mRegistry;
48 DeviceState& mDeviceState;
49 std::mutex mMutex;
50};
51
52struct SpyGUIPlugin : public ServicePlugin {
53 auto create() -> ServiceSpec* final;
54};
55
56} // namespace o2::framework
57
58#endif // O2_SPYSERVICE_H
fair::mq::Parts * parts
Definition SpyService.h:40
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
Running state information of a given device.
Definition DeviceState.h:34
auto create() -> ServiceSpec *final