GNU Radio Manual and C++ API Reference
3.9.1.0
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
>
15
#include <
gnuradio/messages/msg_accepter.h
>
16
#include <
gnuradio/messages/msg_queue.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
*/
25
class
GR_RUNTIME_API
msg_accepter_msgq
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 */
msg_accepter.h
msg_queue.h
gr::messages::msg_accepter_msgq::msg_queue
msg_queue_sptr msg_queue() const
Definition:
msg_accepter_msgq.h:36
GR_RUNTIME_API
#define GR_RUNTIME_API
Definition:
gnuradio-runtime/include/gnuradio/api.h:18
gr::messages::msg_accepter_msgq
Concrete class that accepts messages and inserts them into a message queue.
Definition:
msg_accepter_msgq.h:25
gr::messages::msg_accepter_msgq::d_msg_queue
msg_queue_sptr d_msg_queue
Definition:
msg_accepter_msgq.h:28
pmt::pmt_t
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition:
pmt.h:84
api.h
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gnuradio-runtime
include
gnuradio
messages
msg_accepter_msgq.h
Generated by
1.8.17