The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
fmt::formatter< EventContext > Struct Reference

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/EventContext.h>

Inheritance diagram for fmt::formatter< EventContext >:
Collaboration diagram for fmt::formatter< EventContext >:

Public Member Functions

auto format (const EventContext &ec, format_context &ctx) const
 

Detailed Description

Definition at line 145 of file EventContext.h.

Member Function Documentation

◆ format()

auto fmt::formatter< EventContext >::format ( const EventContext & ec,
format_context & ctx ) const
inline

Definition at line 146 of file EventContext.h.

146 {
147 if ( ec.valid() ) {
148 std::string out;
149 if ( ec.usesSubSlot() ) {
150 out = fmt::format( "s: {} e: {} sub: {}", ec.slot(), ec.evt(), ec.subSlot() );
151 } else {
152 out = fmt::format( "s: {} e: {}", ec.slot(), ec.evt() );
153 }
154 return formatter<string_view>::format( out, ctx );
155 } else {
156 return formatter<string_view>::format( "INVALID", ctx );
157 }
158 }
ContextEvt_t evt() const
ContextID_t subSlot() const
ContextID_t slot() const
bool valid() const
bool usesSubSlot() const

The documentation for this struct was generated from the following file: