#include <uhd/features/discoverable_feature_getter_iface.hpp>
Interface for discovering and accessing discoverable features.
◆ ~discoverable_feature_getter_iface()
| virtual uhd::features::discoverable_feature_getter_iface::~discoverable_feature_getter_iface |
( |
| ) |
|
|
virtualdefault |
◆ enumerate_features()
| virtual std::vector< std::string > uhd::features::discoverable_feature_getter_iface::enumerate_features |
( |
| ) |
|
|
pure virtual |
Enumerate all discoverable features present on the device.
Returns a vector (in no particular order) of the features that this device supports.
◆ get_feature()
template<typename T>
| T & uhd::features::discoverable_feature_getter_iface::get_feature |
( |
| ) |
|
|
inline |
Retrieves a feature of the specified type.
Note that if the given feature type does not exist, this function will assert. The user should first check that the feature exists via the has_feature method. Usage: auto feature_ref = radio.get_feature<desired_feature_class>();
◆ has_feature()
template<typename T>
| bool uhd::features::discoverable_feature_getter_iface::has_feature |
( |
| ) |
|
|
inline |
Determines whether a given feature exists.
This function should be used to gate functionality before calling get_feature().
The documentation for this class was generated from the following file: