Dokit
Internal development documentation
Loading...
Searching...
No Matches
ResistanceRange Namespace Reference

Encapsulates convenience functions for working with resistance 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) ohms, or the string "Auto".
 

Detailed Description

Encapsulates convenience functions for working with resistance ranges.

Function Documentation

◆ maxValue()

QTPOKIT_EXPORT QVariant ResistanceRange::maxValue ( const PokitProduct product,
const quint8 range )

Returns the maximum value for product's range in (integer) ohms, or the string "Auto".

If range is not a known valid value, then an null QVariant is returned.

See also
PokitMeter::maxValue(const PokitMeter::ResistanceRange &range)
PokitPro::maxValue(const PokitPro::ResistanceRange &range)

Definition at line 245 of file pokitproducts.cpp.

246{
247 switch (product) {
249 return PokitMeter::maxValue(static_cast<PokitMeter::ResistanceRange>(range));
251 return PokitPro::maxValue(static_cast<PokitPro::ResistanceRange>(range));
252 }
253 qCWarning(lc).noquote() << Private::tr("Unknown PokitProduct value: %1").arg((int)product);
254 return QVariant();
255}
QTPOKIT_EXPORT QVariant maxValue(const CurrentRange &range)
Returns the maximum value for range in (integer) microamps, or the string "Auto".
ResistanceRange
Values supported by the Pokit Meter's Range attributes in Resistance mode.
Definition pokitmeter.h:34
QTPOKIT_EXPORT QVariant maxValue(const CapacitanceRange &range)
Returns the maximum value for range in (integer) nanofarads, or the string "Auto".
Definition pokitpro.cpp:47
ResistanceRange
Values supported by the Pokit Pro's Range attributes in Resistance mode.
Definition pokitpro.h:47
@ PokitPro
Pokit Pro.
@ PokitMeter
Pokit Meter.

References PokitMeter::maxValue(), PokitPro::maxValue(), PokitMeter, and PokitPro.

Referenced by MultimeterService::maxValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

QTPOKIT_EXPORT QString ResistanceRange::toString ( const PokitProduct product,
const quint8 range )

Returns product's current range as a human-friendly string.

See also
PokitMeter::toString(const PokitMeter::ResistanceRange &range)
PokitPro::toString(const PokitPro::ResistanceRange &range)

Definition at line 226 of file pokitproducts.cpp.

227{
228 switch (product) {
230 return PokitMeter::toString(static_cast<PokitMeter::ResistanceRange>(range));
232 return PokitPro::toString(static_cast<PokitPro::ResistanceRange>(range));
233 }
234 qCWarning(lc).noquote() << Private::tr("Unknown PokitProduct value: %1").arg((int)product);
235 return QString();
236}
QTPOKIT_EXPORT QString toString(const CurrentRange &range)
Returns range as a user-friendly string.
QTPOKIT_EXPORT QString toString(const CapacitanceRange &range)
Returns range as a user-friendly string.
Definition pokitpro.cpp:32

References PokitMeter, PokitPro, PokitMeter::toString(), and PokitPro::toString().

Referenced by MultimeterService::toString().

Here is the call graph for this function:
Here is the caller graph for this function: