The Gaudi Framework
master (594c33fa)
|
Definitions to allow use of Gaudi::Property<T> with fmtlib. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/PropertyFmt.h>
Public Member Functions | |
constexpr auto | parse (format_parse_context &ctx) -> format_parse_context::iterator |
auto | format (const Gaudi::Property< T, V, H > &p, format_context &ctx) |
Public Attributes | |
bool | debug = false |
Definitions to allow use of Gaudi::Property<T> with fmtlib.
When this header is included, one can pass a Gaudi::Property<T> instance as argument to fmt::format
.
For example
will print
A special formatting option can be used to print the property name as well as the value, so
will print
Definition at line 60 of file PropertyFmt.h.
|
inline |
Definition at line 72 of file PropertyFmt.h.
|
inlineconstexpr |
Definition at line 62 of file PropertyFmt.h.
bool fmt::formatter< Gaudi::Property< T, V, H > >::debug = false |
Definition at line 61 of file PropertyFmt.h.