#include <uhd/property_tree.hpp>
Public Types | |
| enum | coerce_mode_t { AUTO_COERCE, MANUAL_COERCE } |
| typedef boost::shared_ptr< property_tree > | sptr |
Public Member Functions | |
| virtual | ~property_tree (void)=0 |
| virtual sptr | subtree (const fs_path &path) const =0 |
| Get a subtree with a new root starting at path. More... | |
| virtual void | remove (const fs_path &path)=0 |
| Remove a property or directory (recursive) More... | |
| virtual bool | exists (const fs_path &path) const =0 |
| True if the path exists in the tree. More... | |
| virtual std::vector< std::string > | list (const fs_path &path) const =0 |
| Get an iterable to all things in the given path. More... | |
| template<typename T > | |
| property< T > & | create (const fs_path &path, coerce_mode_t coerce_mode=AUTO_COERCE) |
| Create a new property entry in the tree. More... | |
| template<typename T > | |
| property< T > & | access (const fs_path &path) |
| Get access to a property in the tree. More... | |
Static Public Member Functions | |
| static sptr | make (void) |
| Create a new + empty property tree. More... | |
The property tree provides a file system structure for accessing properties.
| typedef boost::shared_ptr<property_tree> uhd::property_tree::sptr |
|
pure virtual |
Get access to a property in the tree.
| property< T > & uhd::property_tree::create | ( | const fs_path & | path, |
| coerce_mode_t | coerce_mode = AUTO_COERCE |
||
| ) |
Create a new property entry in the tree.
|
pure virtual |
True if the path exists in the tree.
|
pure virtual |
Get an iterable to all things in the given path.
|
static |
Create a new + empty property tree.
|
pure virtual |
Remove a property or directory (recursive)
Get a subtree with a new root starting at path.