GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
msg_handler.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2005,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_GR_MSG_HANDLER_H
12 #define INCLUDED_GR_MSG_HANDLER_H
13 
14 #include <gnuradio/api.h>
15 #include <gnuradio/message.h>
16 
17 namespace gr {
18 
19 class msg_handler;
20 typedef std::shared_ptr<msg_handler> msg_handler_sptr;
21 
22 /*!
23  * \brief abstract class of message handlers
24  * \ingroup base
25  */
27 {
28 public:
29  virtual ~msg_handler();
30 
31  //! handle \p msg
32  virtual void handle(message::sptr msg) = 0;
33 };
34 
35 } /* namespace gr */
36 
37 #endif /* INCLUDED_GR_MSG_HANDLER_H */
std::shared_ptr< message > sptr
Definition: message.h:30
abstract class of message handlers
Definition: msg_handler.h:27
virtual ~msg_handler()
virtual void handle(message::sptr msg)=0
handle msg
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GR_RUNTIME_API const pmt::pmt_t msg()
GNU Radio logging wrapper.
Definition: basic_block.h:29