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);
136inline top_block_sptr cast_to_top_block_sptr(basic_block_sptr
block)
138 return std::dynamic_pointer_cast<top_block, basic_block>(
block);
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
Hierarchical container class for gr::block's and gr::hier_block2's.
Definition: hier_block2.h:34
Top-level hierarchical block representing a flowgraph.
Definition: top_block.h:29
void set_max_noutput_items(int nmax)
Set the maximum number of noutput_items in the flowgraph.
void start(int max_noutput_items=100000000)
std::string msg_edge_list()
top_block(const std::string &name, bool catch_exceptions=true)
void setup_rpc() override
Set up the RPC registered variables.
top_block_sptr to_top_block()
int max_noutput_items()
Get the number of max noutput_items in the flowgraph.
void run(int max_noutput_items=100000000)
The simple interface to running a flowgraph.
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29
GR_RUNTIME_API top_block_sptr make_top_block(const std::string &name, bool catch_exceptions=true)