MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
fmt::formatter< mxlFabricsProvider > Struct Reference

#include <Format.hpp>

Public Member Functions

template<typename Context>
auto format (mxlFabricsProvider const &provider, Context &ctx) const
constexpr auto parse (fmt::format_parse_context &ctx)

Detailed Description

Definition at line 16 of file Format.hpp.

Member Function Documentation

◆ format()

template<typename Context>
auto fmt::formatter< mxlFabricsProvider >::format ( mxlFabricsProvider const & provider,
Context & ctx ) const
inline

Definition at line 24 of file Format.hpp.

25 {
26 switch (provider)
27 {
28 case MXL_FABRICS_PROVIDER_ANY: return fmt::format_to(ctx.out(), "any");
29 case MXL_FABRICS_PROVIDER_TCP: return fmt::format_to(ctx.out(), "tcp");
30 case MXL_FABRICS_PROVIDER_VERBS: return fmt::format_to(ctx.out(), "verbs");
31 case MXL_FABRICS_PROVIDER_EFA: return fmt::format_to(ctx.out(), "efa");
32 case MXL_FABRICS_PROVIDER_SHM: return fmt::format_to(ctx.out(), "shm");
33 default: return fmt::format_to(ctx.out(), "unknown");
34 }
35 }
@ MXL_FABRICS_PROVIDER_VERBS
Definition fabrics.h:50
@ MXL_FABRICS_PROVIDER_ANY
Definition fabrics.h:48
@ MXL_FABRICS_PROVIDER_TCP
Definition fabrics.h:49
@ MXL_FABRICS_PROVIDER_SHM
Definition fabrics.h:52
@ MXL_FABRICS_PROVIDER_EFA
Definition fabrics.h:51

◆ parse()

auto fmt::formatter< mxlFabricsProvider >::parse ( fmt::format_parse_context & ctx)
inlineconstexpr

Definition at line 18 of file Format.hpp.

19 {
20 return ctx.begin();
21 }

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