13namespace uhd {
namespace features {
32 auto p = get_feature_ptr(T::get_feature_id());
34 auto typed_p =
dynamic_cast<T*
>(p.get());
46 return bool(get_feature_ptr(T::get_feature_id()));
Definition discoverable_feature_getter_iface.hpp:18
virtual std::vector< std::string > enumerate_features()=0
Enumerate all discoverable features present on the device.
T & get_feature()
Retrieves a feature of the specified type.
Definition discoverable_feature_getter_iface.hpp:30
virtual ~discoverable_feature_getter_iface()=default
bool has_feature()
Determines whether a given feature exists.
Definition discoverable_feature_getter_iface.hpp:44
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition discoverable_feature.hpp:32
std::shared_ptr< discoverable_feature > sptr
Definition discoverable_feature.hpp:28
#define UHD_API
Definition config.h:87
#define UHD_ASSERT_THROW(code)
Definition exception.hpp:321
Definition build_info.hpp:12