GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
msg_accepter.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2009,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_GR_RUNTIME_MSG_ACCEPTER_H
12 #define INCLUDED_GR_RUNTIME_MSG_ACCEPTER_H
13 
14 #include <gnuradio/api.h>
16 #include <pmt/pmt.h>
17 
18 namespace gr {
19 
20 /*!
21  * \brief Accepts messages and inserts them into a message queue,
22  * then notifies subclass gr::basic_block there is a message pending.
23  */
25 {
26 public:
28  ~msg_accepter() override;
29 
30  void post(pmt::pmt_t which_port, pmt::pmt_t msg) override;
31 };
32 
33 } /* namespace gr */
34 
35 #endif /* INCLUDED_GR_RUNTIME_MSG_ACCEPTER_H */
Virtual base class that accepts messages.
Definition: messages/msg_accepter.h:25
Accepts messages and inserts them into a message queue, then notifies subclass gr::basic_block there ...
Definition: msg_accepter.h:25
~msg_accepter() override
void post(pmt::pmt_t which_port, pmt::pmt_t msg) override
send msg to msg_accepter on port which_port
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GR_RUNTIME_API const pmt::pmt_t msg()
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