#include <uhd/features/discoverable_feature_getter_iface.hpp>
Interface for discovering and accessing discoverable features.
Public Member Functions | |
| virtual | ~discoverable_feature_getter_iface ()=default |
| template<typename T > | |
| T & | get_feature () |
| Retrieves a feature of the specified type. More... | |
| template<typename T > | |
| bool | has_feature () |
| Determines whether a given feature exists. More... | |
| virtual std::vector< std::string > | enumerate_features ()=0 |
| Enumerate all discoverable features present on the device. More... | |
|
virtualdefault |
|
pure virtual |
Enumerate all discoverable features present on the device.
Returns a vector (in no particular order) of the features that this device supports.
|
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>();
|
inline |
Determines whether a given feature exists.
This function should be used to gate functionality before calling get_feature().