11 #ifndef INCLUDED_GR_TOP_BLOCK_H
12 #define INCLUDED_GR_TOP_BLOCK_H
22 bool catch_exceptions =
true);
31 template <
typename T,
typename... Args>
32 friend std::shared_ptr<T> gnuradio::make_block_sptr(Args&&... args);
35 std::unique_ptr<top_block_impl> d_impl;
38 top_block(
const std::string& name,
bool catch_exceptions =
true);
53 void run(
int max_noutput_items = 100000000);
67 void start(
int max_noutput_items = 100000000);
106 void unlock()
override;
112 std::string edge_list();
118 std::string msg_edge_list();
126 int max_noutput_items();
129 void set_max_noutput_items(
int nmax);
131 top_block_sptr to_top_block();
133 void setup_rpc()
override;
136 inline top_block_sptr cast_to_top_block_sptr(basic_block_sptr
block)
GR_RUNTIME_API top_block_sptr make_top_block(const std::string &name, bool catch_exceptions=true)
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
The abstract base class for all signal processing blocks.Basic blocks are the bare abstraction of an ...
Definition: basic_block.h:61
The abstract base class for all 'terminal' processing blocks.A signal processing flow is constructed ...
Definition: gnuradio-runtime/include/gnuradio/block.h:62
Top-level hierarchical block representing a flowgraph.
Definition: top_block.h:28
Hierarchical container class for gr::block's and gr::hier_block2's.
Definition: hier_block2.h:33