GNU Radio Manual and C++ API Reference 3.9.4.0
The Free & Open Software Radio Ecosystem
pdu_remove.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_BLOCKS_PDU_REMOVE_H
12#define INCLUDED_BLOCKS_PDU_REMOVE_H
13
14#include <gnuradio/block.h>
15#include <gnuradio/blocks/api.h>
16
17namespace gr {
18namespace blocks {
19
20/*!
21 * \brief remove key k in pdu's meta field and pass on
22 * \ingroup message_tools_blk
23 * \ingroup debug_tools_blk
24 */
25class BLOCKS_API pdu_remove : virtual public block
26{
27public:
28 // gr::blocks::pdu_remove::sptr
29 typedef std::shared_ptr<pdu_remove> sptr;
30
31 /*!
32 * \brief Construct a PDU meta remove block
33 */
34 static sptr make(pmt::pmt_t k);
35 virtual void set_key(pmt::pmt_t key) = 0;
36};
37
38} /* namespace blocks */
39} /* namespace gr */
40
41#endif /* INCLUDED_BLOCKS_PDU_REMOVE_H */
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:60
remove key k in pdu's meta field and pass on
Definition: pdu_remove.h:26
std::shared_ptr< pdu_remove > sptr
Definition: pdu_remove.h:29
static sptr make(pmt::pmt_t k)
Construct a PDU meta remove block.
virtual void set_key(pmt::pmt_t key)=0
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:84