GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
msg_accepter_msgq.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_MSG_ACCEPTER_MSGQ_H
12 #define INCLUDED_MSG_ACCEPTER_MSGQ_H
13 
14 #include <gnuradio/api.h>
17 
18 namespace gr {
19 namespace messages {
20 
21 /*!
22  * \brief Concrete class that accepts messages and inserts them
23  * into a message queue.
24  */
26 {
27 protected:
28  msg_queue_sptr d_msg_queue;
29 
30 public:
31  msg_accepter_msgq(msg_queue_sptr msgq);
32  virtual ~msg_accepter_msgq();
33 
34  virtual void post(pmt::pmt_t msg);
35 
36  msg_queue_sptr msg_queue() const { return d_msg_queue; }
37 };
38 
39 } /* namespace messages */
40 } /* namespace gr */
41 
42 #endif /* INCLUDED_MSG_ACCEPTER_MSGQ_H */
Concrete class that accepts messages and inserts them into a message queue.
Definition: msg_accepter_msgq.h:26
virtual void post(pmt::pmt_t msg)
msg_accepter_msgq(msg_queue_sptr msgq)
msg_queue_sptr msg_queue() const
Definition: msg_accepter_msgq.h:36
msg_queue_sptr d_msg_queue
Definition: msg_accepter_msgq.h:28
#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