From cc8caeb1230fbaed4a6bc64848a584d51b69362a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 1 Feb 2010 12:35:34 -0800 Subject: Work on the properties framwork with wax::obj. Now the obj handles all 3 things in 1, properties, polymorphic container, proxy. --- lib/usrp/mboard/test.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/usrp/mboard/test.cpp') diff --git a/lib/usrp/mboard/test.cpp b/lib/usrp/mboard/test.cpp index 071a10c2b..57482448c 100644 --- a/lib/usrp/mboard/test.cpp +++ b/lib/usrp/mboard/test.cpp @@ -59,9 +59,9 @@ public: } ~shell_dboard(void){} private: - void get(const wax::type &key_, wax::type &val){ - wax::type key; std::string name; - tie(key, name) = extract_named_prop(key_); + void get(const wax::obj &key_, wax::obj &val){ + wax::obj key; std::string name; + boost::tie(key, name) = extract_named_prop(key_); //handle the get request conditioned on the key switch(wax::cast(key)){ @@ -97,7 +97,7 @@ private: } } - void set(const wax::type &, const wax::type &){ + void set(const wax::obj &, const wax::obj &){ throw std::runtime_error("Cannot set on usrp test dboard"); } @@ -122,9 +122,9 @@ test::~test(void){ /* NOP */ } -void test::get(const wax::type &key_, wax::type &val){ - wax::type key; std::string name; - tie(key, name) = extract_named_prop(key_); +void test::get(const wax::obj &key_, wax::obj &val){ + wax::obj key; std::string name; + boost::tie(key, name) = extract_named_prop(key_); //handle the get request conditioned on the key switch(wax::cast(key)){ @@ -179,6 +179,6 @@ void test::get(const wax::type &key_, wax::type &val){ } } -void test::set(const wax::type &, const wax::type &){ +void test::set(const wax::obj &, const wax::obj &){ throw std::runtime_error("Cannot set on usrp test mboard"); } -- cgit v1.2.3