  | 
  
    USRP Hardware Driver and USRP Manual
    Version: 4.8.0.0
    
   UHD and USRP Manual 
   | 
           
 | 
 
 
 
 
Go to the documentation of this file.
   12 #include <boost/lexical_cast.hpp> 
   63     std::string to_pp_string(
void) 
const;
 
   70     std::string to_string(
void) 
const;
 
   81     T 
cast(
const std::string& key, 
const T& def)
 const 
   83         if (not this->has_key(key))
 
   86             return boost::lexical_cast<T>((*
this)[key]);
 
   87         } 
catch (
const boost::bad_lexical_cast&) {
 
   88             throw std::runtime_error(
"cannot cast " + key + 
" = " + (*
this)[key]);
 
  
 
@ info
Definition: log.hpp:119
 
std::vector< device_addr_t > device_addrs_t
A typedef for a vector of device addresses.
Definition: device_addr.hpp:94
 
#define UHD_API
Definition: config.h:87
 
Definition: device_addr.hpp:38
 
Definition: build_info.hpp:12
 
T cast(const std::string &key, const T &def) const
Definition: device_addr.hpp:81
 
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.