diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-02 12:16:41 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-02 12:16:41 -0700 |
commit | 4a19b43176fe3402d5aefd588d2bf6446877de18 (patch) | |
tree | 1fe26f3ca7f51e58b8f4724e06533a356f03628e /host/lib/usrp/dboard_base.cpp | |
parent | 99d55ca11eb67cbbec72660d10a94ea0e9c50f39 (diff) | |
download | uhd-4a19b43176fe3402d5aefd588d2bf6446877de18.tar.gz uhd-4a19b43176fe3402d5aefd588d2bf6446877de18.tar.bz2 uhd-4a19b43176fe3402d5aefd588d2bf6446877de18.zip |
Cleaned up some dboard manager construction logic.
Moved the dboard base private stuff into a forward declaration.
Diffstat (limited to 'host/lib/usrp/dboard_base.cpp')
-rw-r--r-- | host/lib/usrp/dboard_base.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/host/lib/usrp/dboard_base.cpp b/host/lib/usrp/dboard_base.cpp index 68e4743d1..bc94ca9ac 100644 --- a/host/lib/usrp/dboard_base.cpp +++ b/host/lib/usrp/dboard_base.cpp @@ -24,28 +24,35 @@ using namespace uhd::usrp; /*********************************************************************** * dboard_base dboard dboard_base class **********************************************************************/ +struct dboard_base::dboard_base_impl{ + std::string sd_name; + dboard_iface::sptr db_iface; + dboard_id_t rx_id, tx_id; +}; + dboard_base::dboard_base(ctor_args_t const& args){ - boost::tie(_subdev_name, _dboard_iface, _rx_id, _tx_id) = args; + _impl = new dboard_base_impl; + boost::tie(_impl->sd_name, _impl->db_iface, _impl->rx_id, _impl->tx_id) = args; } dboard_base::~dboard_base(void){ - /* NOP */ + delete _impl; } std::string dboard_base::get_subdev_name(void){ - return _subdev_name; + return _impl->sd_name; } dboard_iface::sptr dboard_base::get_iface(void){ - return _dboard_iface; + return _impl->db_iface; } dboard_id_t dboard_base::get_rx_id(void){ - return _rx_id; + return _impl->rx_id; } dboard_id_t dboard_base::get_tx_id(void){ - return _tx_id; + return _impl->tx_id; } /*********************************************************************** |