Project
Loading...
Searching...
No Matches
DataRef.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_DATAREF_H
12#define FRAMEWORK_DATAREF_H
13
14#include <cstddef> // for size_t
15#include <compare>
16
17namespace o2
18{
19namespace framework
20{
21
22struct InputSpec;
23
24struct DataRef {
25 // FIXME: had to remove the second 'const' in const T* const
26 // to allow assignment
27 const InputSpec* spec = nullptr;
28 const char* header = nullptr;
29 const char* payload = nullptr;
30 size_t payloadSize = 0;
31};
32
36 size_t headerIdx;
37 size_t payloadIdx;
38 bool operator==(const DataRefIndices&) const = default;
39 auto operator<=>(const DataRefIndices&) const = default;
40};
41
42} // namespace framework
43} // namespace o2
44
45#endif
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
auto operator<=>(const DataRefIndices &) const =default
bool operator==(const DataRefIndices &) const =default
const char * header
Definition DataRef.h:28
const char * payload
Definition DataRef.h:29
const InputSpec * spec
Definition DataRef.h:27