SoDaRadio-5.0.3-master:8901fb5
|
PropTree class encapsulates the USRP property tree functions to allow better trap and error recovery management. More...
#include <PropTree.hxx>
Public Member Functions | |
PropTree (const uhd::usrp::multi_usrp::sptr usrp, const std::string &requester, int mb_index=0) | |
Constructor – build a property tree widget rooted at the first motherboard in this multi-usrp. More... | |
PropTree (PropTree *ptree, const std::string &path) | |
Constructor – build a property tree widget that is a subtree of the mboard property tree. More... | |
PropTree (PropTree &ptree, const std::string &path) | |
Constructor – build a property tree widget that is a subtree of the mboard property tree. More... | |
bool | hasProperty (const std::string &propname) |
does the property tree have this property name as a child? More... | |
std::vector< std::string > | getPropNames (const std::string &path=std::string("")) |
std::string | getStringProp (const std::string &propname, const std::string defval=std::string("None")) |
int | getIntProp (const std::string &propname, const int defval=0) |
int | getDoubleProp (const std::string &propname, const double defval=0.0) |
bool | getBoolProp (const std::string &propname, const bool defval=false) |
void | setStringProp (const std::string &propname, const std::string val=std::string("None")) |
void | setIntProp (const std::string &propname, const int val=0) |
void | setDoubleProp (const std::string &propname, const double val=0.0) |
void | setBoolProp (const std::string &propname, const bool val=false) |
template<typename T > | |
T | getProperty (const std::string &propname, const T defval) |
template<typename T > | |
T | getProperty (const std::string &propname) |
template<typename T > | |
void | setProperty (const std::string &propname, const T val) |
Private Member Functions | |
void | init (PropTree *ptree, const std::string &path) |
void | complain (const std::string &explain_string, std::runtime_error &e, bool continue_p=true) |
void | complain (const std::string &explain_string, const std::string &path, std::runtime_error &e, bool continue_p=true) |
Private Attributes | |
std::string | client_name |
the name of the runtime object/thread that created this tree. More... | |
std::string | fqpn |
uhd::property_tree::sptr | tree |
std::string | mb0_name |
PropTree class encapsulates the USRP property tree functions to allow better trap and error recovery management.
Definition at line 44 of file PropTree.hxx.
|
inline |
Constructor – build a property tree widget rooted at the first motherboard in this multi-usrp.
usrp | to which USRP unit is this connected? |
requester | name of object that is creating this tree |
mb_index | which motherboard are we interested in? |
Definition at line 54 of file PropTree.hxx.
References client_name, complain(), fqpn, mb0_name, and tree.
|
inline |
Constructor – build a property tree widget that is a subtree of the mboard property tree.
ptree | pointer to ancestor property tree |
path | path to this property tree. |
Definition at line 80 of file PropTree.hxx.
References init().
|
inline |
Constructor – build a property tree widget that is a subtree of the mboard property tree.
ptree | ancestor property tree |
path | path to this property tree. |
Definition at line 91 of file PropTree.hxx.
References init().
|
inlineprivate |
Definition at line 208 of file PropTree.hxx.
References client_name.
Referenced by getProperty(), hasProperty(), init(), PropTree(), and setProperty().
|
inlineprivate |
Definition at line 216 of file PropTree.hxx.
References client_name.
|
inline |
Definition at line 132 of file PropTree.hxx.
Referenced by SoDa::USRPCtrl::execSetCommand(), and SoDa::USRPCtrl::setTXFrontEndEnable().
|
inline |
Definition at line 127 of file PropTree.hxx.
|
inline |
Definition at line 122 of file PropTree.hxx.
|
inline |
Definition at line 157 of file PropTree.hxx.
References complain(), fqpn, and tree.
Referenced by SoDa::TRControl::makeTRControl().
|
inline |
Definition at line 170 of file PropTree.hxx.
References complain(), fqpn, and tree.
|
inline |
Definition at line 112 of file PropTree.hxx.
References tree.
Referenced by SoDa::getUSRPFrontEnd(), and main().
|
inline |
Definition at line 117 of file PropTree.hxx.
Referenced by SoDa::getUSRPFrontEnd(), SoDa::TRControl::makeTRControl(), and SoDa::USRPCtrl::testIntNMode().
|
inline |
does the property tree have this property name as a child?
propname | the name of a property |
Definition at line 100 of file PropTree.hxx.
References complain(), fqpn, and tree.
Referenced by SoDa::USRPCtrl::USRPCtrl().
|
inlineprivate |
Definition at line 195 of file PropTree.hxx.
References client_name, complain(), fqpn, and tree.
Referenced by PropTree().
|
inline |
Definition at line 152 of file PropTree.hxx.
Referenced by SoDa::USRPCtrl::setTXFrontEndEnable(), and SoDa::USRPCtrl::USRPCtrl().
|
inline |
Definition at line 147 of file PropTree.hxx.
|
inline |
Definition at line 142 of file PropTree.hxx.
|
inline |
Definition at line 183 of file PropTree.hxx.
References complain(), fqpn, and tree.
|
inline |
Definition at line 137 of file PropTree.hxx.
Referenced by SoDa::USRPCtrl::USRPCtrl().
|
private |
the name of the runtime object/thread that created this tree.
Definition at line 226 of file PropTree.hxx.
Referenced by complain(), init(), and PropTree().
|
private |
Definition at line 227 of file PropTree.hxx.
Referenced by getProperty(), hasProperty(), init(), PropTree(), and setProperty().
|
private |
Definition at line 229 of file PropTree.hxx.
Referenced by PropTree().
|
private |
Definition at line 228 of file PropTree.hxx.
Referenced by getProperty(), getPropNames(), hasProperty(), init(), PropTree(), and setProperty().