|
| rpcbasic_register_set (const std::string &block_alias, const char *functionbase, void(T::*function)(Tto), const pmt::pmt_t &min, const pmt::pmt_t &max, const pmt::pmt_t &def, const char *units_="", const char *desc_="", priv_lvl_t minpriv_=RPC_PRIVLVL_MIN, DisplayType display_=DISPNULL) |
| Adds the ability to set the variable over ControlPort. More...
|
|
| rpcbasic_register_set (const std::string &name, const char *functionbase, T *obj, void(T::*function)(Tto), const pmt::pmt_t &min, const pmt::pmt_t &max, const pmt::pmt_t &def, const char *units_="", const char *desc_="", priv_lvl_t minpriv_=RPC_PRIVLVL_MIN, DisplayType display_=DISPNULL) |
| Adds the ability to set the variable over ControlPort. More...
|
|
| ~rpcbasic_register_set () |
|
pmt::pmt_t | min () const |
|
pmt::pmt_t | max () const |
|
pmt::pmt_t | def () const |
|
std::string | units () const |
|
std::string | description () const |
|
priv_lvl_t | privilege_level () const |
|
DisplayType | default_display () const |
|
void | set_min (pmt::pmt_t p) |
|
void | set_max (pmt::pmt_t p) |
|
void | set_def (pmt::pmt_t p) |
|
void | units (std::string u) |
|
void | description (std::string d) |
|
void | privilege_level (priv_lvl_t p) |
|
void | default_display (DisplayType d) |
|
| rpcbasic_base () |
|
virtual | ~rpcbasic_base () |
|
template<typename T, typename Tto>
struct rpcbasic_register_set< T, Tto >
Registers a 'set' function to set a parameter over ControlPort.
This class allows us to remotely set a value or parameter of the block over ControlPort. The set occurs by calling a setter accessor function of the class, usually set_[variable](), which is passed in as function
.
We can set the (expected) minimum (min
), maximum (max
), and default (def
) of the variables being set. These values are not enforced, however, but can be useful for setting up graphs and other ways of bounding the data.
This class also allows us to provide information to the user about the variable being set, such as an appropriate unit (units_
) as well as a description (desc_
) about what the variable does.
The privilege (minpriv_
) level is the minimum privilege level a remote must identify with to be able to call this function.
We also provide display hints (display_
), which can be used by the ControlPort client application to know how to best display or even print the data. This is a mask of options for variables set in rpccallbackregister_base.h. The mask is defined by one of the "DisplayType Plotting Types" and or'd with any of the "DisplayType
Options" features. See "Display Options" in ControlPort for details.