Loading...
Searching...
No Matches
msg_accepter_msgq.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2009,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_MSG_ACCEPTER_MSGQ_H
#define INCLUDED_MSG_ACCEPTER_MSGQ_H
#include <gnuradio/api.h>
#include <gnuradio/messages/msg_accepter.h>
#include <gnuradio/messages/msg_queue.h>
namespace gr {
namespace messages {
/*!
* \brief Concrete class that accepts messages and inserts them
* into a message queue.
*/
class GR_RUNTIME_API msg_accepter_msgq
{
protected:
msg_queue_sptr d_msg_queue;
public:
msg_accepter_msgq(msg_queue_sptr msgq);
virtual ~msg_accepter_msgq();
virtual void post(pmt::pmt_t msg);
msg_queue_sptr msg_queue() const { return d_msg_queue; }
};
} /* namespace messages */
} /* namespace gr */
#endif /* INCLUDED_MSG_ACCEPTER_MSGQ_H */
gr::messages::msg_accepter_msgq::post
virtual void post(pmt::pmt_t msg)
gr::messages::msg_accepter_msgq::~msg_accepter_msgq
virtual ~msg_accepter_msgq()
gr::messages::msg_accepter_msgq::msg_accepter_msgq
msg_accepter_msgq(msg_queue_sptr msgq)
gr::messages::msg_accepter_msgq::msg_queue
msg_queue_sptr msg_queue() const
Definition msg_accepter_msgq.h:36
gr::messages::msg_accepter_msgq::d_msg_queue
msg_queue_sptr d_msg_queue
Definition msg_accepter_msgq.h:28
api.h
GR_RUNTIME_API
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
msg_accepter.h
msg_queue.h
gr::messages
Definition messages/msg_accepter.h:19
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
pmt::pmt_t
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition pmt.h:83