Dokit
Internal development documentation
|
Encapsulates convenience functions for working with current ranges. More...
Functions | |
QString | toString (const PokitProduct product, const quint8 range) |
Returns product's current range as a human-friendly string. | |
QVariant | maxValue (const PokitProduct product, const quint8 range) |
Returns the maximum value for product's range in (integer) microamps, or the string "Auto". | |
Encapsulates convenience functions for working with current ranges.
QTPOKIT_EXPORT QVariant CurrentRange::maxValue | ( | const PokitProduct | product, |
const quint8 | range ) |
Returns the maximum value for product's range in (integer) microamps, or the string "Auto".
If range is not a known valid value, then an null QVariant is returned.
Definition at line 203 of file pokitproducts.cpp.
References QString::arg(), PokitMeter::maxValue(), PokitPro::maxValue(), PokitMeter, PokitPro, and QCoreApplication::translate().
Referenced by DataLoggerService::maxValue(), DsoService::maxValue(), and MultimeterService::maxValue().
QTPOKIT_EXPORT QString CurrentRange::toString | ( | const PokitProduct | product, |
const quint8 | range ) |
Returns product's current range as a human-friendly string.
Definition at line 183 of file pokitproducts.cpp.
References QString::arg(), PokitMeter, PokitPro, PokitMeter::toString(), PokitPro::toString(), and QCoreApplication::translate().
Referenced by DataLoggerService::toString(), DsoService::toString(), and MultimeterService::toString().