8 #ifndef INCLUDED_UHD_UTILS_GAIN_GROUP_HPP 9 #define INCLUDED_UHD_UTILS_GAIN_GROUP_HPP 13 #include <boost/shared_ptr.hpp> 14 #include <boost/function.hpp> 15 #include <boost/utility.hpp> 32 typedef boost::shared_ptr<gain_group>
sptr;
43 virtual gain_range_t get_range(
const std::string &name =
"") = 0;
51 virtual double get_value(
const std::string &name =
"") = 0;
61 virtual void set_value(
double gain,
const std::string &name =
"") = 0;
68 virtual const std::vector<std::string> get_names(
void) = 0;
84 virtual void register_fcns(
85 const std::string &name,
94 static sptr make(
void);
Definition: gain_group.hpp:24
boost::function< gain_range_t(void)> get_range
Definition: gain_group.hpp:25
Definition: build_info.hpp:14
#define UHD_API
Definition: config.h:63
boost::shared_ptr< gain_group > sptr
Definition: gain_group.hpp:32
boost::function< void(double)> set_value
Definition: gain_group.hpp:27
Definition: gain_group.hpp:30
boost::function< double(void)> get_value
Definition: gain_group.hpp:26