41 #ifndef YOCTO_TEMPERATURE_H 42 #define YOCTO_TEMPERATURE_H 57 #ifndef _Y_SENSORTYPE_ENUM 58 #define _Y_SENSORTYPE_ENUM 78 #define Y_SIGNALVALUE_INVALID (YAPI_INVALID_DOUBLE) 79 #define Y_SIGNALUNIT_INVALID (YAPI_INVALID_STRING) 80 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 95 #pragma option push -w-8022 159 int set_unit(
const string& newval);
161 {
return this->set_unit(newval); }
177 {
return this->get_sensorType(); }
198 {
return this->set_sensorType(newval); }
208 double get_signalValue(
void);
211 {
return this->get_signalValue(); }
220 string get_signalUnit(
void);
223 {
return this->get_signalUnit(); }
225 string get_command(
void);
228 {
return this->get_command(); }
230 int set_command(
const string& newval);
232 {
return this->set_command(newval); }
308 virtual int set_ntcParameters(
double res25,
double beta);
326 virtual int set_thermistorResponseTable(vector<double> tempValues,vector<double> resValues);
344 virtual int loadThermistorResponseTable(vector<double>& tempValues,vector<double>& resValues);
359 {
return this->nextTemperature();}
YTemperature * next(void)
int setCommand(const string &newval)
YTemperature * yFindTemperature(const string &func)
int setUnit(const string &newval)
YTemperatureTimedReportCallback _timedReportCallbackTemperature
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
Y_SENSORTYPE_enum sensorType(void)
YTemperatureValueCallback _valueCallbackTemperature
virtual int _invokeTimedReportCallback(YMeasure value)
int setSensorType(Y_SENSORTYPE_enum newval)
virtual int _invokeValueCallback(string value)
static const double SIGNALVALUE_INVALID
static YTemperature * FindTemperature(string func)
void(* YTemperatureValueCallback)(YTemperature *func, const string &functionValue)
Y_SENSORTYPE_enum _sensorType
virtual int _parseAttr(YJSONObject *json_val)
virtual int registerValueCallback(YSensorValueCallback callback)
YTemperature * yFirstTemperature(void)
static YTemperature * First(void)
#define YOCTO_CLASS_EXPORT
static const string SIGNALUNIT_INVALID
static YTemperature * FirstTemperature(void)
void(* YTemperatureTimedReportCallback)(YTemperature *func, YMeasure measure)
static const string COMMAND_INVALID
static YTemperature * Find(string func)