Loading...
Searching...
No Matches
msg_handler.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2005,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_GR_MSG_HANDLER_H
#define INCLUDED_GR_MSG_HANDLER_H
#include <gnuradio/api.h>
#include <gnuradio/message.h>
namespace gr {
class msg_handler;
typedef std::shared_ptr<msg_handler> msg_handler_sptr;
/*!
* \brief abstract class of message handlers
* \ingroup base
*/
class GR_RUNTIME_API msg_handler
{
public:
virtual ~msg_handler();
//! handle \p msg
virtual void handle(message::sptr msg) = 0;
};
} /* namespace gr */
#endif /* INCLUDED_GR_MSG_HANDLER_H */
gr::message::sptr
std::shared_ptr< message > sptr
Definition message.h:30
gr::msg_handler
abstract class of message handlers
Definition msg_handler.h:27
gr::msg_handler::~msg_handler
virtual ~msg_handler()
gr::msg_handler::handle
virtual void handle(message::sptr msg)=0
handle msg
api.h
GR_RUNTIME_API
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
message.h
gr
GNU Radio logging wrapper.
Definition basic_block.h:29