[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 07/11: runtime: accessor for message port m
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 07/11: runtime: accessor for message port map & printing more informative error when a msg port is not found |
Date: |
Fri, 13 Jun 2014 22:44:33 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 229fd982c66df1755f439ae7835ad56a8cccd346
Author: Balint Seeber <address@hidden>
Date: Sun May 25 20:32:16 2014 -0400
runtime: accessor for message port map & printing more informative error
when a msg port is not found
---
gnuradio-runtime/include/gnuradio/basic_block.h | 4 ++++
gnuradio-runtime/lib/flowgraph.cc | 8 +++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnuradio-runtime/include/gnuradio/basic_block.h
b/gnuradio-runtime/include/gnuradio/basic_block.h
index 28552a4..b413274 100644
--- a/gnuradio-runtime/include/gnuradio/basic_block.h
+++ b/gnuradio-runtime/include/gnuradio/basic_block.h
@@ -275,6 +275,10 @@ namespace gr {
}
return false;
}
+
+ const msg_queue_map_t& get_msg_map(void) const {
+ return msg_queue;
+ }
#ifdef GR_CTRLPORT
/*!
diff --git a/gnuradio-runtime/lib/flowgraph.cc
b/gnuradio-runtime/lib/flowgraph.cc
index 3d8dfea..abe51f7 100644
--- a/gnuradio-runtime/lib/flowgraph.cc
+++ b/gnuradio-runtime/lib/flowgraph.cc
@@ -155,8 +155,14 @@ namespace gr {
if(FLOWGRAPH_DEBUG)
std::cout << "check_valid_port( " << e.block() << ", " << e.port() <<
")\n";
- if(!e.block()->has_msg_port(e.port()))
+ if(!e.block()->has_msg_port(e.port())) {
+ const gr::basic_block::msg_queue_map_t& msg_map =
e.block()->get_msg_map();
+ std::cout << "Could not find port: " << e.port() << " in:" << std::endl;
+ for (gr::basic_block::msg_queue_map_t::const_iterator it =
msg_map.begin(); it != msg_map.end(); ++it)
+ std::cout << it->first << std::endl;
+ std::cout << std::endl;
throw std::invalid_argument("invalid msg port in connect() or
disconnect()");
+ }
}
void
- [Commit-gnuradio] [gnuradio] 02/11: grc: Fixed scroll functionality in GRC. Also added clear and scrollback capability for the logging window, (continued)
- [Commit-gnuradio] [gnuradio] 02/11: grc: Fixed scroll functionality in GRC. Also added clear and scrollback capability for the logging window, git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 01/11: pmt_io: adding string conversion for uniform vectors, git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 09/11: pager: Add sync code for FLEX 3200 bps 2-FSK encoding, git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 10/11: Merge remote-tracking branch 'gnuradio-wg-grc/grc_scroll_fix', git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 05/11: Merge branch 'maint', git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 08/11: blocks: added I/Q swap option to interleaved_short_to_complex, git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 03/11: grc: Changed dialog to directly call the SCROLL_LOCK and CLEAR_REPORTS actions. Moved clear reports under view and grouped all Report menu items together, git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 04/11: grc: minor edits. removed extra whitespace, git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 11/11: Merge remote-tracking branch 'deuxpi/pager-flex-3200-fsk2', git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 06/11: Merge remote-tracking branch 'mmueller/pmt_io_uniform_vector_to_string', git, 2014/06/13
- [Commit-gnuradio] [gnuradio] 07/11: runtime: accessor for message port map & printing more informative error when a msg port is not found,
git <=