8 #ifndef INCLUDED_UHD_TYPES_SENSORS_HPP 9 #define INCLUDED_UHD_TYPES_SENSORS_HPP 40 const std::string &name,
42 const std::string &utrue,
43 const std::string &ufalse
54 const std::string &name,
56 const std::string &unit,
57 const std::string &formatter =
"%d" 68 const std::string &name,
70 const std::string &unit,
71 const std::string &formatter =
"%f" 81 const std::string &name,
82 const std::string &value,
83 const std::string &unit
95 const std::map<std::string, std::string> &sensor_dict
105 bool to_bool(
void)
const;
108 signed to_int(
void)
const;
111 double to_real(
void)
const;
114 sensor_map_t to_map(
void)
const;
145 std::string to_pp_string(
void)
const;
std::string value
Definition: sensors.hpp:124
data_type_t
Enumeration of possible data types in a sensor.
Definition: sensors.hpp:134
std::string name
The name of the sensor value.
Definition: sensors.hpp:117
Definition: build_info.hpp:14
Definition: sensors.hpp:29
#define UHD_API
Definition: config.h:63
std::map< std::string, std::string > sensor_map_t
Definition: sensors.hpp:30
std::string unit
Definition: sensors.hpp:131
data_type_t type
The data type of the value.
Definition: sensors.hpp:142