USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
power_container.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2016 Ettus Research
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_CAL_POWER_CONTAINER_HPP
8 #define INCLUDED_UHD_CAL_POWER_CONTAINER_HPP
9 
10 #include <uhd/config.hpp>
11 #include <uhd/cal/container.hpp>
12 #include <boost/shared_ptr.hpp>
13 
14 namespace uhd {
15 namespace cal {
16 
17 class UHD_API power_container : public cal_container<std::vector<double>, double> {
18 public:
19  typedef boost::shared_ptr<power_container> sptr;
20 
26  static sptr make();
27 
37  virtual double get(const std::vector<double> &args) = 0;
38 
48  virtual void add(const double output, const std::vector<double> &args) = 0;
49 
55  virtual void add_metadata(const metadata_t &data) = 0;
56 
62  virtual const metadata_t &get_metadata() = 0;
63 };
64 
65 } // namespace cal
66 } // namespace uhd
67 
68 #endif /* INCLUDED_UHD_CAL_POWER_CONTAINER_HPP */
Definition: power_container.hpp:17
Definition: build_info.hpp:14
#define UHD_API
Definition: config.h:62
Definition: container.hpp:40
std::map< std::string, std::string > metadata_t
Definition: container.hpp:24
boost::shared_ptr< power_container > sptr
Definition: power_container.hpp:19