From 259f5babf1e1bc1595ad54c6588c1ff5117dc2e3 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 12 Feb 2010 18:43:21 -0800 Subject: Made use of templated dict to replace used of map and to get rid of utility call. --- lib/usrp/mboard/test.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/usrp/mboard') 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 -#include #include #include #include @@ -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: -- cgit v1.2.3