diff options
author | Johannes Schmitz <schmitz@ti.rwth-aachen.de> | 2014-03-07 12:31:52 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-03-07 12:31:52 -0500 |
commit | 216799215efaaec72aa2d60f230f90f836196d51 (patch) | |
tree | c2e404764653ee3858f0932490a79c7c2ed3ccb4 /gnuradio-runtime/lib/hier_block2.cc | |
parent | 0f18a39b39f74eb01865e59b5e7e1896f47d8197 (diff) |
runtime: adds ability to output flowgraph in dot format (resolves issue 245).
Diffstat (limited to 'gnuradio-runtime/lib/hier_block2.cc')
-rw-r--r-- | gnuradio-runtime/lib/hier_block2.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/hier_block2.cc b/gnuradio-runtime/lib/hier_block2.cc index e0acba30a0..f145b9344b 100644 --- a/gnuradio-runtime/lib/hier_block2.cc +++ b/gnuradio-runtime/lib/hier_block2.cc @@ -26,6 +26,7 @@ #include <gnuradio/hier_block2.h> #include <gnuradio/io_signature.h> +#include <gnuradio/flowgraph.h> #include "hier_block2_detail.h" #include <iostream> @@ -175,4 +176,10 @@ namespace gr { return d_detail->processor_affinity(); } + std::string + dot_graph(hier_block2_sptr hierblock2) + { + return dot_graph_fg(hierblock2->flatten()); + } + } /* namespace gr */ |