flux sdk  v01.02.02-3-g292b3a7
Embedded C++ SDK
Loading...
Searching...
No Matches
_flxParameterOut< T, Object, _getter > Class Template Reference

#include <flxCoreParam.h>

Inheritance diagram for _flxParameterOut< T, Object, _getter >:
_flxDataOut< T > flxParameterOutScalar flxDataOut flxParameterOut flxDataOut flxParameter flxDescriptor flxParameterOutDouble< flxDevBMP384, &flxDevBMP384::read_TemperatureC > flxParameterOutDouble< flxDevBMP384, &flxDevBMP384::read_Pressure > flxParameterOutDouble< flxDevGNSS, &flxDevGNSS::read_latitude > flxParameterOutDouble< flxDevGNSS, &flxDevGNSS::read_longitude > flxParameterOutDouble< flxDevGNSS, &flxDevGNSS::read_altitude > flxParameterOutDouble< flxDevGNSS, &flxDevGNSS::read_altitude_msl > flxParameterOutDouble< flxDevMMC5983Base, &flxDevMMC5983Base::read_x > flxParameterOutDouble< flxDevMMC5983Base, &flxDevMMC5983Base::read_y > flxParameterOutDouble< flxDevMMC5983Base, &flxDevMMC5983Base::read_z > flxParameterOutDouble< flxDevOPT4048, &flxDevOPT4048::get_CIEx > flxParameterOutDouble< flxDevOPT4048, &flxDevOPT4048::get_CIEy > flxParameterOutDouble< flxDevOPT4048, &flxDevOPT4048::get_CCT > flxParameterOutDouble< flxDevTMP117, &flxDevTMP117::read_temperature_C > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_volts > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_amps > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_watts > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_volts_rms > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_power_active > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_power_reactive > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_power_apparent > flxParameterOutFloat< flxDevACS37800, &flxDevACS37800::read_power_factor > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_single_0 > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_single_1 > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_single_2 > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_single_3 > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_differential_P0_N1 > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_differential_P0_N3 > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_differential_P1_N3 > flxParameterOutFloat< flxDevADS1015, &flxDevADS1015::readf_differential_P2_N3 > flxParameterOutFloat< flxDevADS122C04, &flxDevADS122C04::read_temperature_c > flxParameterOutFloat< flxDevADS122C04, &flxDevADS122C04::read_temperature_f > flxParameterOutFloat< flxDevADS122C04, &flxDevADS122C04::read_internal_temperature > flxParameterOutFloat< flxDevADS122C04, &flxDevADS122C04::read_raw_voltage > flxParameterOutFloat< flxDevAHT20, &flxDevAHT20::read_temperature_c > flxParameterOutFloat< flxDevAHT20, &flxDevAHT20::read_humidity > flxParameterOutFloat< flxDevAMG8833, &flxDevAMG8833::read_device_temperature_C > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_A > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_B > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_C > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_D > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_E > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_F > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_G > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_H > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_I > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_J > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_K > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_L > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_R > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_S > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_T > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_U > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_V > flxParameterOutFloat< flxDevAS7265X, &flxDevAS7265X::read_W > flxParameterOutFloat< flxDevBME280, &flxDevBME280::read_Humidity > flxParameterOutFloat< flxDevBME280, &flxDevBME280::read_TemperatureF > flxParameterOutFloat< flxDevBME280, &flxDevBME280::read_TemperatureC > flxParameterOutFloat< flxDevBME280, &flxDevBME280::read_Pressure > flxParameterOutFloat< flxDevBME280, &flxDevBME280::read_AltitudeM > flxParameterOutFloat< flxDevBME280, &flxDevBME280::read_AltitudeF > flxParameterOutFloat< flxDevBME68x, &flxDevBME68x::read_Humidity > flxParameterOutFloat< flxDevBME68x, &flxDevBME68x::read_TemperatureC > flxParameterOutFloat< flxDevBME68x, &flxDevBME68x::read_Pressure > flxParameterOutFloat< flxDevBME68x, &flxDevBME68x::read_GasResistance > flxParameterOutFloat< flxDevBMP581, &flxDevBMP581::read_TemperatureC > flxParameterOutFloat< flxDevBMP581, &flxDevBMP581::read_Pressure > flxParameterOutFloat< flxDevBioHub, &flxDevBioHub::read_r_value > flxParameterOutFloat< flxDevCCS811, &flxDevCCS811::read_CO2 > flxParameterOutFloat< flxDevCCS811, &flxDevCCS811::read_TVOC > flxParameterOutFloat< flxDevENS160, &flxDevENS160::read_TempC > flxParameterOutFloat< flxDevENS160, &flxDevENS160::read_RH > flxParameterOutFloat< flxDevFS3000, &flxDevFS3000::read_mps > flxParameterOutFloat< flxDevFS3000, &flxDevFS3000::read_mph > flxParameterOutFloat< flxDevGNSS, &flxDevGNSS::read_ground_speed > flxParameterOutFloat< flxDevGNSS, &flxDevGNSS::read_heading > flxParameterOutFloat< flxDevGNSS, &flxDevGNSS::read_pdop > flxParameterOutFloat< flxDevGNSS, &flxDevGNSS::read_horiz_acc > flxParameterOutFloat< flxDevGNSS, &flxDevGNSS::read_vert_acc > flxParameterOutFloat< flxDevISM330Base, &flxDevISM330Base::read_accel_x > flxParameterOutFloat< flxDevISM330Base, &flxDevISM330Base::read_accel_y > flxParameterOutFloat< flxDevISM330Base, &flxDevISM330Base::read_accel_z > flxParameterOutFloat< flxDevISM330Base, &flxDevISM330Base::read_gyro_x > flxParameterOutFloat< flxDevISM330Base, &flxDevISM330Base::read_gyro_y > flxParameterOutFloat< flxDevISM330Base, &flxDevISM330Base::read_gyro_z > flxParameterOutFloat< flxDevISM330Base, &flxDevISM330Base::read_temperature > flxParameterOutFloat< flxDevLPS25HB, &flxDevLPS25HB::read_temperature_c > flxParameterOutFloat< flxDevLPS25HB, &flxDevLPS25HB::read_pressure_hpa > flxParameterOutFloat< flxDevMAX17048, &flxDevMAX17048::read_voltage > flxParameterOutFloat< flxDevMAX17048, &flxDevMAX17048::read_state_of_charge > flxParameterOutFloat< flxDevMAX17048, &flxDevMAX17048::read_change_rate > flxParameterOutFloat< flxDevMCP9600, &flxDevMCP9600::read_ThermocoupleTemp > flxParameterOutFloat< flxDevMCP9600, &flxDevMCP9600::read_AmbientTemp > flxParameterOutFloat< flxDevMCP9600, &flxDevMCP9600::read_TempDelta > flxParameterOutFloat< flxDevMS5637, &flxDevMS5637::read_pressure_mbar > flxParameterOutFloat< flxDevMS5637, &flxDevMS5637::read_temperature_C > flxParameterOutFloat< flxDevMS8607, &flxDevMS8607::read_pressure_mbar > flxParameterOutFloat< flxDevMS8607, &flxDevMS8607::read_temperature_C > flxParameterOutFloat< flxDevMS8607, &flxDevMS8607::read_humidity > flxParameterOutFloat< flxDevMicroPressure, &flxDevMicroPressure::read_pressure_PSI > flxParameterOutFloat< flxDevMicroPressure, &flxDevMicroPressure::read_pressure_Pa > flxParameterOutFloat< flxDevMicroPressure, &flxDevMicroPressure::read_pressure_kPa > flxParameterOutFloat< flxDevMicroPressure, &flxDevMicroPressure::read_pressure_torr > flxParameterOutFloat< flxDevMicroPressure, &flxDevMicroPressure::read_pressure_inHg > flxParameterOutFloat< flxDevMicroPressure, &flxDevMicroPressure::read_pressure_atm > flxParameterOutFloat< flxDevMicroPressure, &flxDevMicroPressure::read_pressure_bar > flxParameterOutFloat< flxDevNAU7802, &flxDevNAU7802::read_weight > flxParameterOutFloat< flxDevSCD30, &flxDevSCD30::read_temperature_C > flxParameterOutFloat< flxDevSCD30, &flxDevSCD30::read_humidity > flxParameterOutFloat< flxDevSCD40, &flxDevSCD40::read_temperature_C > flxParameterOutFloat< flxDevSCD40, &flxDevSCD40::read_humidity > flxParameterOutFloat< flxDevSDP3X, &flxDevSDP3X::read_temperature_C > flxParameterOutFloat< flxDevSDP3X, &flxDevSDP3X::read_pressure > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_temperature_C > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_humidity > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_mass_concentration_1p0 > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_mass_concentration_2p5 > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_mass_concentration_4p0 > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_mass_concentration_10p0 > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_voc_index > flxParameterOutFloat< flxDevSEN54, &flxDevSEN54::read_nox_index > flxParameterOutFloat< flxDevSHTC3, &flxDevSHTC3::read_humidity > flxParameterOutFloat< flxDevSHTC3, &flxDevSHTC3::read_temperature_C > flxParameterOutFloat< flxDevSHTC3, &flxDevSHTC3::read_temperature_F > flxParameterOutFloat< flxDevSTC31, &flxDevSTC31::read_co2 > flxParameterOutFloat< flxDevSTC31, &flxDevSTC31::read_temperature_C > flxParameterOutFloat< flxDevSTHS34PF80, &flxDevSTHS34PF80::read_TemperatureC > flxParameterOutFloat< flxDevVEML6075, &flxDevVEML6075::read_uva > flxParameterOutFloat< flxDevVEML6075, &flxDevVEML6075::read_uvb > flxParameterOutFloat< flxDevVEML6075, &flxDevVEML6075::read_uv_index > flxParameterOutFloat< flxDevVEML7700, &flxDevVEML7700::read_lux >

Public Member Functions

 _flxParameterOut ()
 
 _flxParameterOut (Object *me)
 
flxDataType_t type ()
 
void operator() (Object *obj)
 
void operator() (Object *obj, const char *name)
 
void operator() (Object *obj, const char *name, const char *desc)
 
void operator() (Object *obj, const char *name, const char *desc, flxParamValueType_t vtype)
 
void setEnabled (bool bEnabled)
 
get () const
 Get the value of the object as a templated type. A pure virtual method. More...
 
operator() () const
 
bool getBool ()
 Get the data as a boolean. More...
 
int8_t getInt8 ()
 Get the data as an int8_t. More...
 
int16_t getInt16 ()
 Get the data as an int16_t. More...
 
int32_t getInt32 ()
 Get the data as an int32_t. More...
 
uint8_t getUInt8 ()
 Get the data as a uint8_t. More...
 
uint16_t getUInt16 ()
 Get the data as a uint16_t. More...
 
uint32_t getUInt32 ()
 Get the data as a uint32_t. More...
 
float getFloat ()
 Get the data as a float. More...
 
double getDouble ()
 Get the data as a double. More...
 
std::string getString ()
 Get the data as a string. More...
 
- Public Member Functions inherited from _flxDataOut< T >
flxDataType_t type (void)
 Returns the data type of the object - based on the templated type. More...
 
virtual T get (void) const =0
 Get the value of the object as a templated type. A pure virtual method. More...
 
bool getBool ()
 Get the Bool value of the object. More...
 
int8_t getInt8 ()
 Get the int8 value of the object. More...
 
int16_t getInt16 ()
 Get the int16 value of the object. More...
 
int32_t getInt32 ()
 Get the int32 value of the object. More...
 
uint8_t getUInt8 ()
 Get the uint8 value of the object. More...
 
uint16_t getUInt16 ()
 Get the uint16 value of the object. More...
 
uint32_t getUInt32 ()
 Get the uint32 value of the object. More...
 
float getFloat ()
 Get the float value of the object. More...
 
double getDouble ()
 Get the double value of the object. More...
 
std::string getString ()
 Get the string value of the object. More...
 
- Public Member Functions inherited from flxDataOut
virtual flxDataType_t type (void)=0
 Return the type of the data. More...
 
virtual bool getBool ()=0
 Get the data as a boolean. More...
 
virtual int8_t getInt8 ()=0
 Get the data as an int8_t. More...
 
virtual int16_t getInt16 ()=0
 Get the data as an int16_t. More...
 
virtual int32_t getInt32 ()=0
 Get the data as an int32_t. More...
 
virtual uint8_t getUInt8 ()=0
 Get the data as a uint8_t. More...
 
virtual uint16_t getUInt16 ()=0
 Get the data as a uint16_t. More...
 
virtual uint32_t getUInt32 ()=0
 Get the data as a uint32_t. More...
 
virtual float getFloat ()=0
 Get the data as a float. More...
 
virtual double getDouble ()=0
 Get the data as a double. More...
 
virtual std::string getString ()=0
 Get the data as a string. More...
 
bool get_value (bool b)
 Get the value object as a bool. More...
 
int8_t get_value (int8_t)
 Get the value object as an int8_t. More...
 
int16_t get_value (int16_t)
 Get the value object as an int16_t. More...
 
int32_t get_value (int32_t)
 Get the value object as an int32_t. More...
 
uint8_t get_value (uint8_t)
 Get the value object as a uint8_t. More...
 
uint16_t get_value (uint16_t)
 Get the value object as a uint16_t. More...
 
uint32_t get_value (uint32_t)
 Get the value object as a uint32_t. More...
 
float get_value (float)
 Get the value object as a float. More...
 
double get_value (double)
 Get the value object as a double. More...
 
std::string get_value (std::string)
 Get the value object as a string. More...
 
- Public Member Functions inherited from flxParameterOutScalar
flxParameterOutScalaraccessor ()
 
virtual flxDataType_t type (void)=0
 
- Public Member Functions inherited from flxParameterOut
 flxParameterOut ()
 
 flxParameterOut (uint8_t flags)
 
virtual flxDataType_t type (void)=0
 
virtual uint16_t precision (void)
 
virtual flxParameterOutaccessor ()=0
 
uint8_t flags ()
 
- Public Member Functions inherited from flxParameter
 flxParameter ()
 
bool enabled (void)
 
flxParamValueType_t valueType (void)
 
void setValueType (flxParamValueType_t type)
 
virtual void setEnabled (bool enabled)
 
virtual flxDataType_t type (void)=0
 
- Public Member Functions inherited from flxDescriptor
 flxDescriptor ()
 
void setName (const char *new_name)
 Set the Name object - storing the pointer to the provided string No allocation is performed. If the previous name was allocated, it is freed. More...
 
void setName (const char *new_name, const char *new_desc)
 Set the Name object and the Description for the object. Both strings are constants. More...
 
void setName (char *new_name)
 Set the Name object, but makes a copy of the input string since the input is not const. If the previous name was allocated, it is freed. More...
 
const char * name ()
 Return a const char pointer to the name of the object. More...
 
std::string name_ (void)
 Returns a std::string of the name of the object. More...
 
void setDescription (const char *new_desc)
 Set the Description object - the input value is constant and not copied. If the previous description was allocated, it is freed. More...
 
void setDescription (char *new_desc)
 Set the Description object - the input value is not constant and is copied. If the previous description was allocated, it is freed. More...
 
const char * description ()
 Return the constant C string pointer to the description of the object. More...
 
std::string description_ (void)
 Return the description of the object as a std::string. More...
 
void setTitle (const char *title)
 Set the Title object - the title is optional and is used mostly for UX or organizational purposes. The input value is constant and not copied. If the previous title was allocated, it is freed. More...
 
void setTitleAlloc (char *new_title)
 Set the Title of the object , but make an explict copy of the provided string. More...
 
const char * title (void)
 Return the C constant string pointer to the title of the object. More...
 

Additional Inherited Members

- Public Types inherited from _flxDataOut< T >
typedef T value_type
 A public member that is of the type of this object. Handy for templated code. More...
 
- Protected Member Functions inherited from flxParameterOut
void setFlag (uint8_t flag)
 
- Protected Attributes inherited from flxDescriptor
const char * _name
 
bool _nameAlloc
 
const char * _desc
 
bool _descAlloc
 
const char * _title
 
bool _titleAlloc
 

Constructor & Destructor Documentation

◆ _flxParameterOut() [1/2]

template<class T , class Object , T(Object::*)() _getter>
_flxParameterOut< T, Object, _getter >::_flxParameterOut ( )
inline

◆ _flxParameterOut() [2/2]

template<class T , class Object , T(Object::*)() _getter>
_flxParameterOut< T, Object, _getter >::_flxParameterOut ( Object *  me)
inline

Member Function Documentation

◆ get()

template<class T , class Object , T(Object::*)() _getter>
T _flxParameterOut< T, Object, _getter >::get ( ) const
inlinevirtual

Get the value of the object as a templated type. A pure virtual method.

Returns
T

Implements _flxDataOut< T >.

◆ getBool()

template<class T , class Object , T(Object::*)() _getter>
bool _flxParameterOut< T, Object, _getter >::getBool ( )
inlinevirtual

Get the data as a boolean.

Returns
bool

Implements flxDataOut.

◆ getDouble()

template<class T , class Object , T(Object::*)() _getter>
double _flxParameterOut< T, Object, _getter >::getDouble ( )
inlinevirtual

Get the data as a double.

Returns
double

Implements flxDataOut.

◆ getFloat()

template<class T , class Object , T(Object::*)() _getter>
float _flxParameterOut< T, Object, _getter >::getFloat ( )
inlinevirtual

Get the data as a float.

Returns
float

Implements flxDataOut.

◆ getInt16()

template<class T , class Object , T(Object::*)() _getter>
int16_t _flxParameterOut< T, Object, _getter >::getInt16 ( )
inlinevirtual

Get the data as an int16_t.

Returns
int16_t

Implements flxDataOut.

◆ getInt32()

template<class T , class Object , T(Object::*)() _getter>
int32_t _flxParameterOut< T, Object, _getter >::getInt32 ( )
inlinevirtual

Get the data as an int32_t.

Returns
int32_t

Implements flxDataOut.

◆ getInt8()

template<class T , class Object , T(Object::*)() _getter>
int8_t _flxParameterOut< T, Object, _getter >::getInt8 ( )
inlinevirtual

Get the data as an int8_t.

Returns
int8_t

Implements flxDataOut.

◆ getString()

template<class T , class Object , T(Object::*)() _getter>
std::string _flxParameterOut< T, Object, _getter >::getString ( )
inlinevirtual

Get the data as a string.

Returns
std::string

Implements flxDataOut.

◆ getUInt16()

template<class T , class Object , T(Object::*)() _getter>
uint16_t _flxParameterOut< T, Object, _getter >::getUInt16 ( )
inlinevirtual

Get the data as a uint16_t.

Returns
uint16_t

Implements flxDataOut.

◆ getUInt32()

template<class T , class Object , T(Object::*)() _getter>
uint32_t _flxParameterOut< T, Object, _getter >::getUInt32 ( )
inlinevirtual

Get the data as a uint32_t.

Returns
uint32_t

Implements flxDataOut.

◆ getUInt8()

template<class T , class Object , T(Object::*)() _getter>
uint8_t _flxParameterOut< T, Object, _getter >::getUInt8 ( )
inlinevirtual

Get the data as a uint8_t.

Returns
uint8_t

Implements flxDataOut.

◆ operator()() [1/5]

template<class T , class Object , T(Object::*)() _getter>
T _flxParameterOut< T, Object, _getter >::operator() ( ) const
inline

◆ operator()() [2/5]

template<class T , class Object , T(Object::*)() _getter>
void _flxParameterOut< T, Object, _getter >::operator() ( Object *  obj)
inline

◆ operator()() [3/5]

template<class T , class Object , T(Object::*)() _getter>
void _flxParameterOut< T, Object, _getter >::operator() ( Object *  obj,
const char *  name 
)
inline

◆ operator()() [4/5]

template<class T , class Object , T(Object::*)() _getter>
void _flxParameterOut< T, Object, _getter >::operator() ( Object *  obj,
const char *  name,
const char *  desc 
)
inline

◆ operator()() [5/5]

template<class T , class Object , T(Object::*)() _getter>
void _flxParameterOut< T, Object, _getter >::operator() ( Object *  obj,
const char *  name,
const char *  desc,
flxParamValueType_t  vtype 
)
inline

◆ setEnabled()

template<class T , class Object , T(Object::*)() _getter>
void _flxParameterOut< T, Object, _getter >::setEnabled ( bool  bEnabled)
inlinevirtual

Reimplemented from flxParameter.

◆ type()

template<class T , class Object , T(Object::*)() _getter>
flxDataType_t _flxParameterOut< T, Object, _getter >::type ( void  )
inlinevirtual

Implements flxParameterOutScalar.


The documentation for this class was generated from the following file: