USRP Hardware Driver and USRP Manual  Version: 4.0.0.0-release
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
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:31
Definition: build_info.hpp:12
Definition: discoverable_feature.hpp:24
Definition: discoverable_feature.hpp:32
virtual std::string get_feature_name() const =0
Returns a human-readable string name of this feature.
virtual ~discoverable_feature()=default
Definition: discoverable_feature.hpp:33
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:27