18 #ifndef INCLUDED_UHD_PROPERTY_TREE_HPP 19 #define INCLUDED_UHD_PROPERTY_TREE_HPP 22 #include <boost/utility.hpp> 23 #include <boost/shared_ptr.hpp> 24 #include <boost/function.hpp> 76 template <
typename T>
class property : boost::noncopyable{
173 virtual const T
get(void)
const = 0;
189 virtual bool empty(
void)
const = 0;
192 template <
typename T>
207 UHD_API fs_path(
const std::string &);
208 UHD_API std::string leaf(
void)
const;
209 UHD_API fs_path branch_path(
void)
const;
220 typedef boost::shared_ptr<property_tree>
sptr;
227 static sptr make(
void);
230 virtual sptr subtree(
const fs_path &path)
const = 0;
233 virtual void remove(
const fs_path &path) = 0;
236 virtual bool exists(
const fs_path &path)
const = 0;
239 virtual std::vector<std::string> list(
const fs_path &path)
const = 0;
251 virtual void _create(
const fs_path &path,
const boost::shared_ptr<void> &prop) = 0;
254 virtual boost::shared_ptr<void> &_access(
const fs_path &path)
const = 0;
boost::function< void(const T &)> subscriber_type
Definition: property_tree.hpp:78
virtual ~property(void)=0
Definition: property_tree.hpp:193
virtual property< T > & update(void)=0
Definition: property_tree.hpp:204
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:220
virtual property< T > & add_coerced_subscriber(const subscriber_type &subscriber)=0
Definition: build_info.hpp:25
boost::function< T(const T &)> coercer_type
Definition: property_tree.hpp:80
virtual property< T > & set_publisher(const publisher_type &publisher)=0
virtual bool empty(void) const =0
virtual const T get_desired(void) const =0
virtual property< T > & set_coerced(const T &value)=0
boost::function< T(void)> publisher_type
Definition: property_tree.hpp:79
#define UHD_API
Definition: config.h:73
coerce_mode_t
Definition: property_tree.hpp:222
Definition: property_tree.hpp:218
virtual property< T > & add_desired_subscriber(const subscriber_type &subscriber)=0
UHD_API fs_path operator/(const fs_path &, const fs_path &)
Definition: property_tree.hpp:76
virtual property< T > & set_coercer(const coercer_type &coercer)=0