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