OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
token_request_format.hpp
1#pragma once
2#include <ossia/dataflow/token_request.hpp>
3#include <ossia/detail/fmt.hpp>
4#if !defined(OSSIA_FREESTANDING)
5namespace fmt
6{
7template <>
8struct formatter<ossia::token_request> final : formatter<string_view>
9{
10 template <typename ParseContext>
11 constexpr auto parse(ParseContext& ctx)
12 {
13 return ctx.begin();
14 }
15
16 template <typename FormatContext>
17 auto format(const ossia::token_request& e, FormatContext& ctx) const
18 {
19 return fmt::format_to(
20 ctx.out(), "{} -> {} | offset: {} | parent: {} | continuity: {} {}",
21 e.prev_date.impl, e.date.impl, e.offset.impl, e.parent_duration.impl,
22 e.start_discontinuous, e.end_discontinuous);
23 }
24};
25}
26#endif
Definition git_info.h:7