Project
Loading...
Searching...
No Matches
DeviceMetricsInfo.cxx
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
14#include <cassert>
15#include <cinttypes>
16#include <cstdlib>
17
18#include <algorithm>
19#include <regex>
20#include <string_view>
21#include <tuple>
22#include <iostream>
23
24namespace o2::framework
25{
26
27std::ostream& operator<<(std::ostream& oss, MetricType const& val)
28{
29 switch (val) {
31 oss << "float";
32 break;
34 oss << "string";
35 break;
36 case MetricType::Int:
37 oss << "int";
38 break;
40 oss << "uint64";
41 break;
43 oss << "enum";
44 break;
46 default:
47 oss << "undefined";
48 break;
49 };
50 return oss;
51}
52
53} // namespace o2::framework
GLuint GLfloat * val
Definition glcorearb.h:1582
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::ostream & operator<<(std::ostream &s, ChannelType const &type)
Stream operators so that we can use ChannelType with Boost.Test.