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