GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
pdu_filter.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_PDU_PDU_FILTER_H
12#define INCLUDED_PDU_PDU_FILTER_H
13
14#include <gnuradio/block.h>
15#include <gnuradio/pdu/api.h>
16
17namespace gr {
18namespace pdu {
19
20/*!
21 * \brief Propagates only pdus containing k=>v in meta
22 * \ingroup message_tools_blk
23 * \ingroup debug_tools_blk
24 */
25class PDU_API pdu_filter : virtual public block
26{
27public:
28 // gr::pdu::pdu_filter::sptr
29 typedef std::shared_ptr<pdu_filter> sptr;
30
31 /*!
32 * \brief Construct a PDU filter
33 */
34 static sptr make(pmt::pmt_t k, pmt::pmt_t v, bool invert = false);
35 virtual void set_key(pmt::pmt_t key) = 0;
36 virtual void set_val(pmt::pmt_t val) = 0;
37 virtual void set_inversion(bool invert) = 0;
38};
39
40} /* namespace pdu */
41} /* namespace gr */
42
43#endif /* INCLUDED_PDU_PDU_FILTER_H */
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
Propagates only pdus containing k=>v in meta.
Definition: pdu_filter.h:26
virtual void set_val(pmt::pmt_t val)=0
virtual void set_key(pmt::pmt_t key)=0
static sptr make(pmt::pmt_t k, pmt::pmt_t v, bool invert=false)
Construct a PDU filter.
virtual void set_inversion(bool invert)=0
std::shared_ptr< pdu_filter > sptr
Definition: pdu_filter.h:29
#define PDU_API
Definition: gr-pdu/include/gnuradio/pdu/api.h:18
GR_RUNTIME_API const pmt::pmt_t pdu()
GNU Radio logging wrapper.
Definition: basic_block.h:29
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83
Definition: cc_common.h:35