GNU Radio Manual and C++ API Reference 3.10.8.0
The Free & Open Software Radio Ecosystem
 
Loading...
Searching...
No Matches
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
18template <>
19struct 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
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83
enables PMTs to be formatted with fmt
Definition: io_signature.h:191
fmt::format_context::iterator format(const pmt::pmt_t &obj, format_context &ctx) const