Loading...
Searching...
No Matches
messages/msg_accepter.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_H
#define INCLUDED_MSG_ACCEPTER_H
#include <gnuradio/api.h>
#include <pmt/pmt.h>
#include <memory>
namespace gr {
namespace messages {
/*!
* \brief Virtual base class that accepts messages
*/
class GR_RUNTIME_API msg_accepter
{
public:
msg_accepter(){};
virtual ~msg_accepter();
/*!
* \brief send \p msg to \p msg_accepter on port \p which_port
*
* Sending a message is an asynchronous operation. The \p post
* call will not wait for the message either to arrive at the
* destination or to be received.
*/
virtual void post(pmt::pmt_t which_port, pmt::pmt_t msg) = 0;
};
typedef std::shared_ptr<msg_accepter> msg_accepter_sptr;
} /* namespace messages */
} /* namespace gr */
#endif /* INCLUDED_MSG_ACCEPTER_H */
gr::messages::msg_accepter::post
virtual void post(pmt::pmt_t which_port, pmt::pmt_t msg)=0
send msg to msg_accepter on port which_port
gr::messages::msg_accepter::~msg_accepter
virtual ~msg_accepter()
gr::messages::msg_accepter::msg_accepter
msg_accepter()
Definition messages/msg_accepter.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