summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_debug_impl.h
diff options
context:
space:
mode:
authorJacob Gilbert <mrjacobagilbert@gmail.com>2020-08-27 08:11:33 -0700
committermormj <34754695+mormj@users.noreply.github.com>2020-10-24 17:45:47 -0400
commit9248b29768c7810f029a1188726b2ad05141f382 (patch)
treef67f4ffecb79f4bf962c30f2f134beac86c111ae /gr-blocks/lib/message_debug_impl.h
parent88c11a8cf3c437ed0e1a477ce30e7cc01ebc2bfd (diff)
blocks: improvements to the message_debug block
aggregates the data to be printed into a stringstream so that it is printed at the same time reducing debug information becoming muddled between competing cout statements. this change also provides an argument to this block to disable the printing of PDU uniform vectors which are often not needed for debug purposes
Diffstat (limited to 'gr-blocks/lib/message_debug_impl.h')
-rw-r--r--gr-blocks/lib/message_debug_impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-blocks/lib/message_debug_impl.h b/gr-blocks/lib/message_debug_impl.h
index 94db67f68d..2d61e18044 100644
--- a/gr-blocks/lib/message_debug_impl.h
+++ b/gr-blocks/lib/message_debug_impl.h
@@ -22,6 +22,8 @@ namespace blocks {
class message_debug_impl : public message_debug
{
private:
+ bool d_en_uvec;
+
/*!
* \brief Messages received in this port are printed to stdout.
*
@@ -63,11 +65,12 @@ private:
std::vector<pmt::pmt_t> d_messages;
public:
- message_debug_impl();
+ message_debug_impl(bool en_uvec);
~message_debug_impl();
int num_messages();
pmt::pmt_t get_message(int i);
+ void set_vector_print(bool en) { d_en_uvec = en; };
};
} /* namespace blocks */