The Gaudi Framework  v39r3 (979e3109)
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() ) {
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  }
155  } else {
156  return formatter<string_view>::format( "INVALID", ctx );
157  }
158  }

The documentation for this struct was generated from the following file:
EventContext::valid
bool valid() const
Definition: EventContext.h:54
std::string
STL class.
EventContext::usesSubSlot
bool usesSubSlot() const
Definition: EventContext.h:53
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:578
EventContext::slot
ContextID_t slot() const
Definition: EventContext.h:51
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119
EventContext::subSlot
ContextID_t subSlot() const
Definition: EventContext.h:52
EventContext::evt
ContextEvt_t evt() const
Definition: EventContext.h:50
PrepareBase.out
out
Definition: PrepareBase.py:20