GNU Radio Manual and C++ API Reference  3.10.7.0
The Free & Open Software Radio Ecosystem
pmt_fmt.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2023 Marcus Müller
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 #ifndef INCLUDED_GNURADIO_PMT_FMT_H
11 #define INCLUDED_GNURADIO_PMT_FMT_H
12 #include <gnuradio/api.h>
13 #include <pmt/pmt.h>
14 #include <spdlog/fmt/fmt.h>
15 #include <string_view>
16 
17 //!\brief enables PMTs to be formatted with fmt
18 template <>
19 struct GR_RUNTIME_API fmt::formatter<pmt::pmt_t> : formatter<std::string_view> {
20  fmt::format_context::iterator format(const pmt::pmt_t& obj,
21  format_context& ctx) const;
22 };
23 #endif
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
enables PMTs to be formatted with fmt
Definition: io_signature.h:191
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83