7 #ifndef INCLUDED_UHD_UTILS_GAIN_GROUP_HPP 8 #define INCLUDED_UHD_UTILS_GAIN_GROUP_HPP 12 #include <boost/shared_ptr.hpp> 13 #include <boost/function.hpp> 14 #include <boost/utility.hpp> 31 typedef boost::shared_ptr<gain_group>
sptr;
42 virtual gain_range_t get_range(
const std::string &name =
"") = 0;
50 virtual double get_value(
const std::string &name =
"") = 0;
60 virtual void set_value(
double gain,
const std::string &name =
"") = 0;
67 virtual const std::vector<std::string> get_names(
void) = 0;
83 virtual void register_fcns(
84 const std::string &name,
93 static sptr make(
void);
Definition: gain_group.hpp:23
boost::function< gain_range_t(void)> get_range
Definition: gain_group.hpp:24
Definition: build_info.hpp:14
#define UHD_API
Definition: config.h:62
boost::shared_ptr< gain_group > sptr
Definition: gain_group.hpp:31
boost::function< void(double)> set_value
Definition: gain_group.hpp:26
Definition: gain_group.hpp:29
boost::function< double(void)> get_value
Definition: gain_group.hpp:25