DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
fmt::formatter< dunedaq::daqdataformats::SourceID > Struct Reference

Public Member Functions

constexpr auto parse (format_parse_context &ctx) -> format_parse_context::iterator
auto format (const dunedaq::daqdataformats::SourceID &sid, format_context &ctx) const -> format_context::iterator

Detailed Description

Definition at line 44 of file tapipe.cxx.

Member Function Documentation

◆ format()

auto fmt::formatter< dunedaq::daqdataformats::SourceID >::format ( const dunedaq::daqdataformats::SourceID & sid,
format_context & ctx ) const -> format_context::iterator
inline

Definition at line 95 of file tapipe.cxx.

96 {
97 return fmt::format_to(
99 }
Subsystem subsystem
The general subsystem of the source of the data.
Definition SourceID.hpp:56
static std::string subsystem_to_string(const Subsystem &type)
Definition SourceID.hxx:63
ID_t id
Unique identifier of the source of the data.
Definition SourceID.hpp:59

◆ parse()

auto fmt::formatter< dunedaq::daqdataformats::SourceID >::parse ( format_parse_context & ctx) -> format_parse_context::iterator
inlineconstexpr

Definition at line 78 of file tapipe.cxx.

79 {
80
81 // Parse the presentation format and store it in the formatter:
82 // auto it = ctx.begin(), end = ctx.end();
83 // if (it != end && (*it == 'f' || *it == 'e')) presentation = *it++;
84
85 // Check if reached the end of the range:
86 // if (it != end && *it != '}')
87 // fmt::detail::throw_format_error("invalid format");
88
89 // return it;
90 return ctx.begin();
91 }

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