From 81c15feaafca2b788b89e55669f1c3ad370a89d2 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 25 Jun 2011 16:39:32 -0700 Subject: uhd: created a property tree to store properties --- host/include/uhd/CMakeLists.txt | 1 + host/include/uhd/exception.hpp | 6 +++--- host/include/uhd/property.hpp | 6 +++++- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'host/include') 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 . // -#ifndef INCLUDED_UHD_UTILS_EXCEPTION_HPP -#define INCLUDED_UHD_UTILS_EXCEPTION_HPP +#ifndef INCLUDED_UHD_EXCEPTION_HPP +#define INCLUDED_UHD_EXCEPTION_HPP #include #include @@ -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 class property{ +/*! + * A templated property interface for holding a value + * and registering callbacks when that value changes. + */ +template class UHD_API property{ public: typedef boost::function subscriber_type; typedef boost::function master_type; -- cgit v1.2.3