Project
Loading...
Searching...
No Matches
InspectorHelpers.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_INSPECTORHELPERS_H_
12#define O2_FRAMEWORK_INSPECTORHELPERS_H_
13
14#include <string>
15
16#include "Framework/Lifetime.h"
17
18namespace o2::framework
19{
20
23 static const std::string getLifeTimeStr(Lifetime lifetime)
24 {
25 switch (lifetime) {
26 case Lifetime::Timeframe:
27 return "Timeframe";
28 case Lifetime::Condition:
29 return "Condition";
30 case Lifetime::Sporadic:
31 return "Sporadic";
32 case Lifetime::Transient:
33 return "Transient";
34 case Lifetime::Timer:
35 return "Timer";
36 case Lifetime::Enumeration:
37 return "Enumeration";
38 case Lifetime::Signal:
39 return "Signal";
40 case Lifetime::Optional:
41 return "Optional";
42 case Lifetime::OutOfBand:
43 return "OutOfBand";
44 }
45 return "none";
46 };
47};
48
49} // namespace o2::framework
50
51#endif // O2_FRAMEWORK_INSPECTORHELPERS_H_
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
Lifetime
Possible Lifetime of objects being exchanged by the DPL.
Definition Lifetime.h:18
A helper class for inpsection of device information.
static const std::string getLifeTimeStr(Lifetime lifetime)