diff options
Diffstat (limited to 'gr-blocks/lib/message_debug_impl.h')
-rw-r--r-- | gr-blocks/lib/message_debug_impl.h | 95 |
1 files changed, 47 insertions, 48 deletions
diff --git a/gr-blocks/lib/message_debug_impl.h b/gr-blocks/lib/message_debug_impl.h index 5a6e2e4acb..2faa42a0d0 100644 --- a/gr-blocks/lib/message_debug_impl.h +++ b/gr-blocks/lib/message_debug_impl.h @@ -29,61 +29,60 @@ #include <pmt/pmt.h> namespace gr { - namespace blocks { +namespace blocks { - class message_debug_impl : public message_debug - { - private: +class message_debug_impl : public message_debug +{ +private: + /*! + * \brief Messages received in this port are printed to stdout. + * + * This port receives messages from the scheduler's message + * handling mechanism and prints it to stdout. This message + * handler function is only meant to be used by the scheduler to + * handle messages posted to port 'print'. + * + * \param msg A pmt message passed from the scheduler's message handling. + */ + void print(pmt::pmt_t msg); - /*! - * \brief Messages received in this port are printed to stdout. - * - * This port receives messages from the scheduler's message - * handling mechanism and prints it to stdout. This message - * handler function is only meant to be used by the scheduler to - * handle messages posted to port 'print'. - * - * \param msg A pmt message passed from the scheduler's message handling. - */ - void print(pmt::pmt_t msg); + /*! + * \brief PDU formatted messages received in this port are printed to stdout. + * + * This port receives messages from the scheduler's message + * handling mechanism and prints it to stdout. This message + * handler function is only meant to be used by the scheduler to + * handle messages posted to port 'print'. + * + * \param pdu A PDU message passed from the scheduler's message handling. + */ + void print_pdu(pmt::pmt_t pdu); - /*! - * \brief PDU formatted messages received in this port are printed to stdout. - * - * This port receives messages from the scheduler's message - * handling mechanism and prints it to stdout. This message - * handler function is only meant to be used by the scheduler to - * handle messages posted to port 'print'. - * - * \param pdu A PDU message passed from the scheduler's message handling. - */ - void print_pdu(pmt::pmt_t pdu); + /*! + * \brief Messages received in this port are stored in a vector. + * + * This port receives messages from the scheduler's message + * handling mechanism and stores it in a vector. Messages can be + * retrieved later using the 'get_message' function. This + * message handler function is only meant to be used by the + * scheduler to handle messages posted to port 'store'. + * + * \param msg A pmt message passed from the scheduler's message handling. + */ + void store(pmt::pmt_t msg); - /*! - * \brief Messages received in this port are stored in a vector. - * - * This port receives messages from the scheduler's message - * handling mechanism and stores it in a vector. Messages can be - * retrieved later using the 'get_message' function. This - * message handler function is only meant to be used by the - * scheduler to handle messages posted to port 'store'. - * - * \param msg A pmt message passed from the scheduler's message handling. - */ - void store(pmt::pmt_t msg); + gr::thread::mutex d_mutex; + std::vector<pmt::pmt_t> d_messages; - gr::thread::mutex d_mutex; - std::vector<pmt::pmt_t> d_messages; +public: + message_debug_impl(); + ~message_debug_impl(); - public: - message_debug_impl(); - ~message_debug_impl(); + int num_messages(); + pmt::pmt_t get_message(int i); +}; - int num_messages(); - pmt::pmt_t get_message(int i); - }; - - } /* namespace blocks */ +} /* namespace blocks */ } /* namespace gr */ #endif /* INCLUDED_GR_MESSAGE_DEBUG_IMPL_H */ |