diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-03-29 18:42:39 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-02 13:38:45 -0700 |
commit | 3f0e7d405f128e9faeea03cb6f97f25423983e63 (patch) | |
tree | b2edb1fe8ad3e6161e300174faa873baa935689a /host/include | |
parent | 6038a7af68451639f48dc75e1f3939bf975118ed (diff) | |
download | uhd-3f0e7d405f128e9faeea03cb6f97f25423983e63.tar.gz uhd-3f0e7d405f128e9faeea03cb6f97f25423983e63.tar.bz2 uhd-3f0e7d405f128e9faeea03cb6f97f25423983e63.zip |
lib: adding device_addr_t constructor from map
Adding constructor for device_addr_t that takes a map<string, string>
as an argument.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/types/device_addr.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/include/uhd/types/device_addr.hpp b/host/include/uhd/types/device_addr.hpp index dd60df2e7..b9d3659c0 100644 --- a/host/include/uhd/types/device_addr.hpp +++ b/host/include/uhd/types/device_addr.hpp @@ -14,6 +14,7 @@ #include <stdexcept> #include <vector> #include <string> +#include <map> namespace uhd{ @@ -43,6 +44,12 @@ namespace uhd{ device_addr_t(const std::string &args = ""); /*! + * Create a device address from a std::map + * \param info the device info map + */ + device_addr_t(const std::map<std::string, std::string> &info); + + /*! * Convert a device address into a pretty print string. * \return a printable string representing the device address */ |