8 #ifndef INCLUDED_UHD_PROPERTY_TREE_HPP 9 #define INCLUDED_UHD_PROPERTY_TREE_HPP 12 #include <boost/utility.hpp> 13 #include <boost/shared_ptr.hpp> 14 #include <boost/function.hpp> 66 template <
typename T>
class property : boost::noncopyable{
163 virtual const T
get(void)
const = 0;
179 virtual bool empty(
void)
const = 0;
182 template <
typename T>
197 UHD_API fs_path(
const std::string &);
198 UHD_API std::string leaf(
void)
const;
199 UHD_API fs_path branch_path(
void)
const;
210 typedef boost::shared_ptr<property_tree>
sptr;
217 static sptr make(
void);
220 virtual sptr subtree(
const fs_path &path)
const = 0;
223 virtual void remove(
const fs_path &path) = 0;
226 virtual bool exists(
const fs_path &path)
const = 0;
229 virtual std::vector<std::string> list(
const fs_path &path)
const = 0;
241 virtual void _create(
const fs_path &path,
const boost::shared_ptr<void> &prop) = 0;
244 virtual boost::shared_ptr<void> &_access(
const fs_path &path)
const = 0;
boost::function< void(const T &)> subscriber_type
Definition: property_tree.hpp:68
virtual ~property(void)=0
Definition: property_tree.hpp:183
virtual property< T > & update(void)=0
Definition: property_tree.hpp:194
boost::shared_ptr< property_tree > sptr
Definition: property_tree.hpp:210
virtual property< T > & add_coerced_subscriber(const subscriber_type &subscriber)=0
Definition: build_info.hpp:14
boost::function< T(const T &)> coercer_type
Definition: property_tree.hpp:70
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:69
#define UHD_API
Definition: config.h:63
coerce_mode_t
Definition: property_tree.hpp:212
Definition: property_tree.hpp:208
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:66
virtual property< T > & set_coercer(const coercer_type &coercer)=0