From b99c655d2ae52ee14e6430b175fe4849ccc0f0e7 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 25 Feb 2011 15:02:09 -0800 Subject: uhd: sensors header fix to make swig happy --- host/include/uhd/types/sensors.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/types/sensors.hpp b/host/include/uhd/types/sensors.hpp index b6215367f..97d82b4e2 100644 --- a/host/include/uhd/types/sensors.hpp +++ b/host/include/uhd/types/sensors.hpp @@ -117,13 +117,16 @@ namespace uhd{ */ const std::string unit; - //! The data type of the value - const enum{ + //! Enumeration of possible data types in a sensor + enum data_type_t { BOOLEAN = 'b', INTEGER = 'i', REALNUM = 'r', STRING = 's' - } type; + }; + + //! The data type of the value + const data_type_t type; //! Convert this sensor value into a printable string std::string to_pp_string(void) const; -- cgit v1.2.3