18 #ifndef INCLUDED_UHD_TYPES_SENSORS_HPP 19 #define INCLUDED_UHD_TYPES_SENSORS_HPP 48 const std::string &name,
50 const std::string &utrue,
51 const std::string &ufalse
62 const std::string &name,
64 const std::string &unit,
65 const std::string &formatter =
"%d" 76 const std::string &name,
78 const std::string &unit,
79 const std::string &formatter =
"%f" 89 const std::string &name,
90 const std::string &value,
91 const std::string &unit
95 bool to_bool(
void)
const;
98 signed to_int(
void)
const;
101 double to_real(
void)
const;
132 std::string to_pp_string(
void)
const;
data_type_t
Enumeration of possible data types in a sensor.
Definition: sensors.hpp:121
#define UHD_API
Definition: config.hpp:79
Definition: convert.hpp:28
const std::string unit
Definition: sensors.hpp:118
Definition: sensors.hpp:38
const data_type_t type
The data type of the value.
Definition: sensors.hpp:129
const std::string name
The name of the sensor value.
Definition: sensors.hpp:104
const std::string value
Definition: sensors.hpp:111