Project
Loading...
Searching...
No Matches
Output.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_OUTPUT_H
12#define FRAMEWORK_OUTPUT_H
13
14#include "Headers/DataHeader.h"
15#include "Framework/Lifetime.h"
16#include "Headers/Stack.h"
17
18namespace o2::framework
19{
20
27struct Output {
32
34
39
44
46 : origin(header.dataOrigin), description(header.dataDescription), subSpec(header.subSpecification)
47 {
48 }
49
50 Output(const Output&) = delete;
51
53 : origin(rhs.origin),
55 subSpec(rhs.subSpec),
56 metaHeader(std::move(rhs.metaHeader))
57 {
58 }
59
60 Output& operator=(const Output&) = delete;
61
63 {
64 origin = rhs.origin;
65 description = rhs.description;
66 subSpec = rhs.subSpec;
67 metaHeader = std::move(rhs.metaHeader);
68 return *this;
69 }
70
71 bool operator==(const Output& that) const
72 {
73 return origin == that.origin && description == that.description && subSpec == that.subSpec;
74 }
75};
76
77} // namespace o2
78#endif
bool o
uint32_t stack
Definition RawData.h:1
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
Defining DataPointCompositeObject explicitly as copiable.
Output(header::DataHeader const &header)
Definition Output.h:45
header::Stack metaHeader
Definition Output.h:31
Output(header::DataOrigin o, header::DataDescription d)
Definition Output.h:33
bool operator==(const Output &that) const
Definition Output.h:71
Output(header::DataOrigin o, header::DataDescription d, header::DataHeader::SubSpecificationType s, header::Stack &&stack)
Definition Output.h:40
header::DataHeader::SubSpecificationType subSpec
Definition Output.h:30
header::DataDescription description
Definition Output.h:29
Output(const Output &)=delete
Output(Output &&rhs)
Definition Output.h:52
header::DataOrigin origin
Definition Output.h:28
Output & operator=(const Output &)=delete
Output & operator=(Output &&rhs)
Definition Output.h:62
Output(header::DataOrigin o, header::DataDescription d, header::DataHeader::SubSpecificationType s)
Definition Output.h:35
the main header struct
Definition DataHeader.h:618
uint32_t SubSpecificationType
Definition DataHeader.h:620
a move-only header stack with serialized headers This is the flat buffer where all the headers in a m...
Definition Stack.h:36