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)
138 return std::dynamic_pointer_cast<top_block, basic_block>(
block);