Project
Loading...
Searching...
No Matches
DataInspector.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_DATAINSPECTOR_H
12#define O2_DATAINSPECTOR_H
13
16#include "DISocket.h"
17
18#include <fairmq/FairMQDevice.h>
19#include <fairmq/FairMQParts.h>
20
21#include <cstring>
22
24{
25inline bool isNonInternalDevice(const DeviceSpec& spec)
26{
27 return spec.name.find("internal") == std::string::npos;
28}
29
30std::vector<DIMessage> serializeO2Messages(const std::vector<DataRef>& refs, const std::string& deviceName);
31} // namespace o2::framework::data_inspector
32
33#endif // O2_DATAINSPECTOR_H
std::vector< DIMessage > serializeO2Messages(const std::vector< DataRef > &refs, const std::string &deviceName)
bool isNonInternalDevice(const DeviceSpec &spec)
std::string name
The name of the associated DataProcessorSpec.
Definition DeviceSpec.h:50