diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-25 15:02:09 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-25 15:04:37 -0800 |
commit | eef4216ca7073868fb6cf15e5d6c8b75e1576538 (patch) | |
tree | b0848faed1c0de4e60e7359811158b7674a18c30 /host/include | |
parent | 76ebda895cae3bd0014a5e428b07440445f3b631 (diff) | |
download | uhd-eef4216ca7073868fb6cf15e5d6c8b75e1576538.tar.gz uhd-eef4216ca7073868fb6cf15e5d6c8b75e1576538.tar.bz2 uhd-eef4216ca7073868fb6cf15e5d6c8b75e1576538.zip |
uhd: sensors header fix to make swig happy
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/types/sensors.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
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; |