ATLAS Offline Software
Loading...
Searching...
No Matches
OnlineErrorCode.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGSTEERINGEVENT_OnlineErrorCode_H
6#define TRIGSTEERINGEVENT_OnlineErrorCode_H
7#include <ostream>
8#include <cstdint>
9
10namespace HLT {
34
35 // There's no cleaner way to map enum to string, but watch out for C++ Reflection TS, it may come one day
36 #define OnlineErrorCodeSwitchCase(ENUM_NAME) \
37 case OnlineErrorCode::ENUM_NAME: return "OnlineErrorCode::"#ENUM_NAME; break;
38
61
62 inline std::ostream& operator<< (std::ostream& os, const HLT::OnlineErrorCode code) {
63 return os << HLT::OnlineErrorCodeToString(code);
64 }
65
70 constexpr bool isEventProcessingErrorCode(const OnlineErrorCode code) {
71 switch (code) {
77 return true;
78 default:
79 return false;
80 }
81 }
82
83} // namespace HLT
84
85#endif // TRIGSTEERINGEVENT_OnlineErrorCode_H
#define OnlineErrorCodeSwitchCase(ENUM_NAME)
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
constexpr bool isEventProcessingErrorCode(const OnlineErrorCode code)
constexpr std::string_view OnlineErrorCodeToString(const OnlineErrorCode code)
MsgStream & operator<<(MsgStream &m, const Navigation &nav)