Loading...
Searching...
No Matches
msg_producer.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2012,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_MSG_PRODUCER_H
#define INCLUDED_MSG_PRODUCER_H
#include <gnuradio/api.h>
#include <pmt/pmt.h>
#include <memory>
namespace gr {
namespace messages {
/*!
* \brief Virtual base class that produces messages
*/
class GR_RUNTIME_API msg_producer
{
public:
msg_producer() {}
virtual ~msg_producer();
/*!
* \brief send \p msg to \p msg_producer
*/
virtual pmt::pmt_t retrieve() = 0;
};
typedef std::shared_ptr<msg_producer> msg_producer_sptr;
} /* namespace messages */
} /* namespace gr */
#endif /* INCLUDED_MSG_PRODUCER_H */
gr::messages::msg_producer::retrieve
virtual pmt::pmt_t retrieve()=0
send msg to msg_producer
gr::messages::msg_producer::~msg_producer
virtual ~msg_producer()
gr::messages::msg_producer::msg_producer
msg_producer()
Definition msg_producer.h:27
api.h
GR_RUNTIME_API
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
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
pmt.h