7 #ifndef INCLUDED_UHD_TYPES_SENSORS_HPP 8 #define INCLUDED_UHD_TYPES_SENSORS_HPP 39 const std::string &name,
41 const std::string &utrue,
42 const std::string &ufalse
53 const std::string &name,
55 const std::string &unit,
56 const std::string &formatter =
"%d" 67 const std::string &name,
69 const std::string &unit,
70 const std::string &formatter =
"%f" 80 const std::string &name,
81 const std::string &value,
82 const std::string &unit
94 const std::map<std::string, std::string> &sensor_dict
104 bool to_bool(
void)
const;
107 signed to_int(
void)
const;
110 double to_real(
void)
const;
141 std::string to_pp_string(
void)
const;
std::string value
Definition: sensors.hpp:120
data_type_t
Enumeration of possible data types in a sensor.
Definition: sensors.hpp:130
std::string name
The name of the sensor value.
Definition: sensors.hpp:113
Definition: build_info.hpp:14
Definition: sensors.hpp:28
#define UHD_API
Definition: config.h:62
std::map< std::string, std::string > sensor_map_t
Definition: sensors.hpp:29
std::string unit
Definition: sensors.hpp:127
data_type_t type
The data type of the value.
Definition: sensors.hpp:138