12 #ifndef INCLUDED_GR_MESSAGE_DEBUG_H
13 #define INCLUDED_GR_MESSAGE_DEBUG_H
17 #include <spdlog/common.h>
44 typedef std::shared_ptr<message_debug>
sptr;
54 spdlog::level::level_enum
log_level = spdlog::level::info);
84 virtual spdlog::level::level_enum
level()
const = 0;
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
Debug block for the message passing system.
Definition: message_debug.h:41
virtual spdlog::level::level_enum level() const =0
get the log level
std::shared_ptr< message_debug > sptr
Definition: message_debug.h:44
static sptr make(bool en_uvec=true, spdlog::level::level_enum log_level=spdlog::level::info)
Build the message debug block. It takes a single parameter that can be used to disable PDU vector pri...
virtual void set_level(spdlog::level::level_enum log_level)=0
set the log level
virtual pmt::pmt_t get_message(size_t i)=0
Get a message (as a PMT) from the message vector at index i.
virtual size_t num_messages()=0
Reports the number of messages received by this block.
virtual void set_vector_print(bool en)=0
Enables or disables printing of PDU uniform vector data.
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
spdlog::level::level_enum log_level
Definition: logger.h:50
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83