aboutsummaryrefslogtreecommitdiffstats
path: root/lib/usrp/mboard/test.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-12 18:43:21 -0800
committerJosh Blum <josh@joshknows.com>2010-02-12 18:43:21 -0800
commit259f5babf1e1bc1595ad54c6588c1ff5117dc2e3 (patch)
treecd4e82dfd650b69d9d36d7c95f34bd76ede4972b /lib/usrp/mboard/test.cpp
parent9fff25f4e5da179ea29ff44278e0415a337870cb (diff)
downloaduhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.tar.gz
uhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.tar.bz2
uhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.zip
Made use of templated dict to replace used of map
and to get rid of utility call.
Diffstat (limited to 'lib/usrp/mboard/test.cpp')
-rw-r--r--lib/usrp/mboard/test.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/usrp/mboard/test.cpp b/lib/usrp/mboard/test.cpp
index b4ac66eb7..c533c97b4 100644
--- a/lib/usrp/mboard/test.cpp
+++ b/lib/usrp/mboard/test.cpp
@@ -16,7 +16,6 @@
//
#include <uhd/usrp/mboard/test.hpp>
-#include <uhd/utils.hpp>
#include <uhd/props.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/format.hpp>
@@ -139,7 +138,7 @@ void test::get(const wax::obj &key_, wax::obj &val){
return;
case MBOARD_PROP_RX_DBOARD:
- if (_dboard_managers.count(name) == 0) throw std::invalid_argument(
+ if (not _dboard_managers.has_key(name)) throw std::invalid_argument(
str(boost::format("Unknown rx dboard name %s") % name)
);
//FIXME store the shell dboard within the class
@@ -150,11 +149,11 @@ void test::get(const wax::obj &key_, wax::obj &val){
return;
case MBOARD_PROP_RX_DBOARD_NAMES:
- val = prop_names_t(get_map_keys(_dboard_managers));
+ val = prop_names_t(_dboard_managers.get_keys());
return;
case MBOARD_PROP_TX_DBOARD:
- if (_dboard_managers.count(name) == 0) throw std::invalid_argument(
+ if (not _dboard_managers.has_key(name)) throw std::invalid_argument(
str(boost::format("Unknown tx dboard name %s") % name)
);
//FIXME store the shell dboard within the class
@@ -165,7 +164,7 @@ void test::get(const wax::obj &key_, wax::obj &val){
return;
case MBOARD_PROP_TX_DBOARD_NAMES:
- val = prop_names_t(get_map_keys(_dboard_managers));
+ val = prop_names_t(_dboard_managers.get_keys());
return;
case MBOARD_PROP_MTU: