Project
Loading...
Searching...
No Matches
InputRoute.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_INPUTROUTE_H
12#define FRAMEWORK_INPUTROUTE_H
13
16#include "Framework/InputSpec.h"
17#include <cstddef>
18#include <string>
19#include <functional>
20#include <optional>
21
22namespace o2::framework
23{
24
25struct PartRef;
26struct ServiceRegistry;
27struct DeviceState;
28class ConfigParamRegistry;
29
40
49struct InputRoute {
50
51 // FIXME: This should really go away and we should make sure that
52 // whenever we pass the input routes we also have the associated
53 // input specs available.
56 std::string sourceChannel;
57 size_t timeslice;
58 std::optional<RouteConfigurator> configurator = std::nullopt;
59};
60
61} // namespace o2::framework
62
63#endif // FRAMEWORK_INPUTROUTE_H
GLuint const GLchar * name
Definition glcorearb.h:781
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
Running state information of a given device.
Definition DeviceState.h:34
std::function< bool(ServiceRegistryRef, uint64_t timestamp, InputSpan const &record)> Checker
Callback type to check if the record must be expired.
std::function< void(ServiceRegistryRef, PartRef &expiredInput, data_matcher::VariableContext &variables)> Handler
Callback type to actually materialise a given record.
std::function< TimesliceSlot(ServiceRegistryRef, ChannelIndex)> Creator
std::optional< RouteConfigurator > configurator
Definition InputRoute.h:58
DanglingConfigurator danglingConfigurator
Definition InputRoute.h:37
ExpirationConfigurator expirationConfigurator
Definition InputRoute.h:38
CreationConfigurator creatorConfigurator
Definition InputRoute.h:36
std::function< ExpirationHandler::Creator(DeviceState &, ServiceRegistryRef, ConfigParamRegistry const &)> CreationConfigurator
Definition InputRoute.h:31
std::function< ExpirationHandler::Handler(DeviceState &, ConfigParamRegistry const &)> ExpirationConfigurator
Definition InputRoute.h:33
std::function< ExpirationHandler::Checker(DeviceState &, ConfigParamRegistry const &)> DanglingConfigurator
Definition InputRoute.h:32