13 namespace 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()));
53 virtual std::vector<std::string> enumerate_features() = 0;
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:32
T & get_feature()
Retrieves a feature of the specified type.
Definition: discoverable_feature_getter_iface.hpp:30
#define UHD_ASSERT_THROW(code)
Definition: exception.hpp:321
Definition: build_info.hpp:12
Definition: discoverable_feature_getter_iface.hpp:17
#define UHD_API
Definition: config.h:87
bool has_feature()
Determines whether a given feature exists.
Definition: discoverable_feature_getter_iface.hpp:44
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:28