41        const std::string& utrue,
 
   42        const std::string& ufalse);
 
   53        const std::string& unit,
 
   54        const std::string& formatter = 
"%d");
 
   65        const std::string& unit,
 
   66        const std::string& formatter = 
"%f");
 
   75        const std::string& name, 
const std::string& value, 
const std::string& unit);
 
  123    enum data_type_t { BOOLEAN = 
'b', INTEGER = 
'i', REALNUM = 
'r', STRING = 
's' };
 
#define UHD_API
Definition: config.h:87
 
source
Identify the source of calibration data, i.e., where was it stored.
Definition: database.hpp:22
 
Definition: build_info.hpp:12
 
Definition: sensors.hpp:29
 
bool to_bool(void) const
convert the sensor value to a boolean
 
data_type_t
Enumeration of possible data types in a sensor.
Definition: sensors.hpp:123
 
signed to_int(void) const
convert the sensor value to an integer
 
double to_real(void) const
convert the sensor value to real number
 
sensor_value_t(const std::string &name, signed value, const std::string &unit, const std::string &formatter="%d")
 
std::map< std::string, std::string > sensor_map_t
Definition: sensors.hpp:30
 
sensor_value_t(const std::string &name, const std::string &value, const std::string &unit)
 
sensor_value_t(const std::string &name, bool value, const std::string &utrue, const std::string &ufalse)
 
std::string value
Definition: sensors.hpp:113
 
sensor_value_t(const sensor_value_t &source)
 
sensor_map_t to_map(void) const
convert the sensor value to sensor_map_t
 
sensor_value_t(const std::string &name, double value, const std::string &unit, const std::string &formatter="%f")
 
sensor_value_t & operator=(const sensor_value_t &value)
Assignment operator for sensor value.
 
std::string name
The name of the sensor value.
Definition: sensors.hpp:106
 
sensor_value_t(const std::map< std::string, std::string > &sensor_dict)
 
data_type_t type
The data type of the value.
Definition: sensors.hpp:126
 
std::string to_pp_string(void) const
Convert this sensor value into a printable string.
 
std::string unit
Definition: sensors.hpp:120