 |
USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-2+b1
UHD and USRP Manual
|
|
Go to the documentation of this file.
9 #ifndef INCLUDED_UHD_PROPERTY_TREE_HPP
10 #define INCLUDED_UHD_PROPERTY_TREE_HPP
14 #include <boost/function.hpp>
15 #include <boost/shared_ptr.hpp>
16 #include <boost/utility.hpp>
167 virtual const T
get(
void)
const = 0;
183 virtual bool empty(
void)
const = 0;
186 template <
typename T>
217 typedef boost::shared_ptr<property_tree>
sptr;
224 static sptr make(
void);
227 virtual sptr subtree(
const fs_path& path)
const = 0;
230 virtual void remove(
const fs_path& path) = 0;
233 virtual bool exists(
const fs_path& path)
const = 0;
236 virtual std::vector<std::string> list(
const fs_path& path)
const = 0;
239 template <
typename T>
243 template <
typename T>
247 template <
typename T>
248 boost::shared_ptr<property<T> > pop(
const fs_path& path);
252 virtual boost::shared_ptr<void> _pop(
const fs_path& path) = 0;
255 virtual void _create(
const fs_path& path,
const boost::shared_ptr<void>& prop) = 0;
258 virtual boost::shared_ptr<void>& _access(
const fs_path& path)
const = 0;
virtual property< T > & add_desired_subscriber(const subscriber_type &subscriber)=0
virtual property< T > & add_coerced_subscriber(const subscriber_type &subscriber)=0
virtual property< T > & set_publisher(const publisher_type &publisher)=0
#define UHD_API
Definition: config.h:68
UHD_API fs_path operator/(const fs_path &, const fs_path &)
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:217
virtual property< T > & set(const T &value)=0
boost::function< T(const T &)> coercer_type
Definition: property_tree.hpp:74
UHD_API fs_path branch_path(void) const
coerce_mode_t
Definition: property_tree.hpp:219
Definition: build_info.hpp:13
Definition: property_tree.hpp:199
virtual const T get(void) const =0
Definition: property_tree.hpp:69
Definition: property_tree.hpp:214
virtual const T get_desired(void) const =0
virtual property< T > & set_coercer(const coercer_type &coercer)=0
boost::function< void(const T &)> subscriber_type
Definition: property_tree.hpp:72
virtual property< T > & update(void)=0
virtual ~property(void)=0
Definition: property_tree.hpp:187
virtual property< T > & set_coerced(const T &value)=0
boost::function< T(void)> publisher_type
Definition: property_tree.hpp:73
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
virtual bool empty(void) const =0
UHD_API std::string leaf(void) const