 |
USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-3+b1
UHD and USRP Manual
|
|
Go to the documentation of this file.
8 #ifndef INCLUDED_UHD_TYPES_DEVICE_ADDR_HPP
9 #define INCLUDED_UHD_TYPES_DEVICE_ADDR_HPP
13 #include <boost/lexical_cast.hpp>
75 T
cast(
const std::string& key,
const T& def)
const
77 if (not this->has_key(key))
80 return boost::lexical_cast<T>((*
this)[key]);
81 }
catch (
const boost::bad_lexical_cast&) {
82 throw std::runtime_error(
"cannot cast " + key +
" = " + (*
this)[key]);
std::string to_string(void) const
@ info
Definition: log.hpp:107
std::vector< device_addr_t > device_addrs_t
A typedef for a vector of device addresses.
Definition: device_addr.hpp:88
#define UHD_API
Definition: config.h:68
device_addr_t(const std::map< std::string, std::string > &info)
Definition: device_addr.hpp:39
Definition: build_info.hpp:13
device_addr_t(const std::string &args="")
T cast(const std::string &key, const T &def) const
Definition: device_addr.hpp:75
UHD_API device_addr_t combine_device_addrs(const device_addrs_t &dev_addrs)
Combine a vector of device addresses into an indexed device address.
UHD_API device_addrs_t separate_device_addr(const device_addr_t &dev_addr)
Separate an indexed device address into a vector of device addresses.
std::string to_pp_string(void) const