diff options
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/types/device_addr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/types/device_addr.cpp b/host/lib/types/device_addr.cpp index 18376a8b8..65d265857 100644 --- a/host/lib/types/device_addr.cpp +++ b/host/lib/types/device_addr.cpp @@ -41,6 +41,12 @@ device_addr_t::device_addr_t(const std::string &args){ } } +device_addr_t::device_addr_t(const std::map<std::string, std::string> &info) { + for (auto& t : info) { + this->set(t.first, t.second); + } +} + std::string device_addr_t::to_pp_string(void) const{ if (this->size() == 0) return "Empty Device Address"; |