USRP Hardware Driver and USRP Manual  Version: 4.0.0.0-0-unknown
UHD and USRP Manual
discoverable_feature.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2020 Ettus Research, a National Instruments Brand
3 //
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 #pragma once
8 
9 #include <stddef.h>
10 #include <memory>
11 #include <string>
12 
13 namespace uhd { namespace features {
14 
25 {
26 public:
27  using sptr = std::shared_ptr<discoverable_feature>;
28 
30  // feature, you should add an entry to this enum.
31  enum feature_id_t {
34  };
35 
36  virtual ~discoverable_feature() = default;
37 
39  virtual std::string get_feature_name() const = 0;
40 };
41 
42 }} // namespace uhd::features
uhd::features::discoverable_feature::~discoverable_feature
virtual ~discoverable_feature()=default
uhd::features::discoverable_feature::RESERVED0
@ RESERVED0
Definition: discoverable_feature.hpp:32
uhd::features::discoverable_feature::get_feature_name
virtual std::string get_feature_name() const =0
Returns a human-readable string name of this feature.
uhd::features::discoverable_feature::feature_id_t
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:31
uhd
Definition: build_info.hpp:12
uhd::features::discoverable_feature
Definition: discoverable_feature.hpp:25
uhd::features::discoverable_feature::sptr
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:27
uhd::features::discoverable_feature::RESERVED1
@ RESERVED1
Definition: discoverable_feature.hpp:33