|
| rpcbasic_register_get (const std::string &block_alias, const char *functionbase, Tfrom(T::*function)(), 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 get the variable over ControlPort. More...
|
|
| rpcbasic_register_get (const std::string &block_alias, const char *functionbase, Tfrom(T::*function)() const, 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) |
| Same as rpcbasic_register_get::rpcbasic_register_get that allows using '[variable]() const' getter functions. More...
|
|
| rpcbasic_register_get (const std::string &name, const char *functionbase, T *obj, Tfrom(T::*function)(), 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 get the variable over ControlPort. More...
|
|
| rpcbasic_register_get (const std::string &name, const char *functionbase, T *obj, Tfrom(T::*function)() const, 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) |
| Same as above that allows using '[variable]() const' getter functions. More...
|
|
| ~rpcbasic_register_get () |
|
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 Tfrom>
class rpcbasic_register_get< T, Tfrom >
Registers a 'get' function to get a parameter over ControlPort.
This class allows us to remotely get a value or parameter of the block over ControlPort. The get occurs by calling a getter accessor function of the class, usually [variable](), which is passed in as function
.
We can set the (expected) minimum (min
), maximum (max
), and default (def
) of the variables we will get. 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, 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.