18 #ifndef INCLUDED_UHD_UTILS_GAIN_GROUP_HPP 19 #define INCLUDED_UHD_UTILS_GAIN_GROUP_HPP 23 #include <boost/shared_ptr.hpp> 24 #include <boost/function.hpp> 25 #include <boost/utility.hpp> 42 typedef boost::shared_ptr<gain_group>
sptr;
51 virtual gain_range_t get_range(
const std::string &name =
"") = 0;
59 virtual double get_value(
const std::string &name =
"") = 0;
69 virtual void set_value(
double gain,
const std::string &name =
"") = 0;
76 virtual const std::vector<std::string> get_names(
void) = 0;
92 virtual void register_fcns(
93 const std::string &name,
102 static sptr make(
void);
Definition: gain_group.hpp:34
boost::function< gain_range_t(void)> get_range
Definition: gain_group.hpp:35
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
boost::shared_ptr< gain_group > sptr
Definition: gain_group.hpp:42
boost::function< void(double)> set_value
Definition: gain_group.hpp:37
Definition: gain_group.hpp:40
boost::function< double(void)> get_value
Definition: gain_group.hpp:36