Registers a message handler function to post a message to a block's handler. More...
#include <gnuradio/rpcregisterhelpers.h>
Public Member Functions | |
rpcbasic_register_handler (const std::string &block_alias, const char *handler, const char *units_="", const char *desc_="", priv_lvl_t minpriv_=RPC_PRIVLVL_MIN, DisplayType display_=DISPNULL) | |
Adds the ability to pass a message over ControlPort. More... | |
~rpcbasic_register_handler () override | |
std::string | units () const |
std::string | description () const |
priv_lvl_t | privilege_level () const |
DisplayType | default_display () const |
void | units (std::string u) |
void | description (std::string d) |
void | privilege_level (priv_lvl_t p) |
void | default_display (DisplayType d) |
Public Member Functions inherited from rpcbasic_base | |
rpcbasic_base () | |
virtual | ~rpcbasic_base () |
Registers a message handler function to post a message to a block's handler.
|
inline |
Adds the ability to pass a message over ControlPort.
This makes any message handler function available over ControlPort. Since message handlers always take in a single PMT message input, this interface provides a very generic way of setting values in a block in a flowgraph.
block_alias | Alias of the block |
handler | The name of the message port in the block |
units_ | A string to describe what units to represent the variable with |
desc_ | A string to describing the variable. |
minpriv_ | The required minimum privilege level |
display_ | The display mask |
References gr::block_registry::block_lookup(), rpcmanager::get(), global_block_registry, rpcserver_booter_base::i(), pmt::intern(), and rpcserver_base::registerHandlerCallback().
|
inlineoverride |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |