diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-27 23:05:53 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-27 23:05:53 -0700 |
commit | 3a6187515677b277489df4ec59f9cf21f1ed62bc (patch) | |
tree | 0ff7e9b875886526c157d43174c2a8416d565be6 /host/include | |
parent | 0ad65e551369d3242e941489d90c8d527be7c7ce (diff) | |
download | uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.tar.gz uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.tar.bz2 uhd-3a6187515677b277489df4ec59f9cf21f1ed62bc.zip |
usrp2: restored discovery and most of io_impl
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/property_tree.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/host/include/uhd/property_tree.hpp b/host/include/uhd/property_tree.hpp index 9f8f30b57..b23a6cc37 100644 --- a/host/include/uhd/property_tree.hpp +++ b/host/include/uhd/property_tree.hpp @@ -24,7 +24,7 @@ #include <boost/utility.hpp> #include <boost/shared_ptr.hpp> #include <boost/filesystem/path.hpp> -#include <list> +#include <vector> namespace uhd{ @@ -35,7 +35,6 @@ class UHD_API property_tree : boost::noncopyable{ public: typedef boost::shared_ptr<property_tree> sptr; typedef boost::filesystem::path path_type; - typedef std::list<std::string> iterator_type; //! Create a new + empty property tree static sptr make(void); @@ -46,8 +45,8 @@ public: //! True if the path exists in the tree virtual bool exists(const path_type &path) = 0; - //! Get an iterator to all things in the given path - virtual iterator_type iterate(const path_type &path) = 0; + //! Get an iterable to all things in the given path + virtual std::vector<std::string> list(const path_type &path) = 0; //! Create a new property entry in the tree template <typename T> void create(const path_type &path, const property<T> &prop = property<T>()){ |