diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-25 16:39:32 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-25 20:22:23 -0700 |
commit | 81c15feaafca2b788b89e55669f1c3ad370a89d2 (patch) | |
tree | bddea1dab138bf5e8b3f690f0ef5cc6c032cb736 /host/include | |
parent | a951db18fd0edfe19e9e75b91bb30dfa731dbd9c (diff) | |
download | uhd-81c15feaafca2b788b89e55669f1c3ad370a89d2.tar.gz uhd-81c15feaafca2b788b89e55669f1c3ad370a89d2.tar.bz2 uhd-81c15feaafca2b788b89e55669f1c3ad370a89d2.zip |
uhd: created a property tree to store properties
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/CMakeLists.txt | 1 | ||||
-rw-r--r-- | host/include/uhd/exception.hpp | 6 | ||||
-rw-r--r-- | host/include/uhd/property.hpp | 6 |
3 files changed, 9 insertions, 4 deletions
diff --git a/host/include/uhd/CMakeLists.txt b/host/include/uhd/CMakeLists.txt index c3c51279c..1ee3e69df 100644 --- a/host/include/uhd/CMakeLists.txt +++ b/host/include/uhd/CMakeLists.txt @@ -27,6 +27,7 @@ INSTALL(FILES device.hpp exception.hpp property.hpp + property_tree.hpp version.hpp wax.hpp DESTINATION ${INCLUDE_DIR}/uhd diff --git a/host/include/uhd/exception.hpp b/host/include/uhd/exception.hpp index 10cd8f501..c05861788 100644 --- a/host/include/uhd/exception.hpp +++ b/host/include/uhd/exception.hpp @@ -15,8 +15,8 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // -#ifndef INCLUDED_UHD_UTILS_EXCEPTION_HPP -#define INCLUDED_UHD_UTILS_EXCEPTION_HPP +#ifndef INCLUDED_UHD_EXCEPTION_HPP +#define INCLUDED_UHD_EXCEPTION_HPP #include <uhd/config.hpp> #include <boost/current_function.hpp> @@ -163,4 +163,4 @@ namespace uhd{ } //namespace uhd -#endif /* INCLUDED_UHD_UTILS_EXCEPTION_HPP */ +#endif /* INCLUDED_UHD_EXCEPTION_HPP */ diff --git a/host/include/uhd/property.hpp b/host/include/uhd/property.hpp index 5b47f9482..e3b917334 100644 --- a/host/include/uhd/property.hpp +++ b/host/include/uhd/property.hpp @@ -25,7 +25,11 @@ namespace uhd{ -template <typename T> class property{ +/*! + * A templated property interface for holding a value + * and registering callbacks when that value changes. + */ +template <typename T> class UHD_API property{ public: typedef boost::function<void(const T &)> subscriber_type; typedef boost::function<T(const T &)> master_type; |