Selectable marker data format, preparation for showing marker data on graphs

This commit is contained in:
Jan Käberich 2021-05-14 15:05:22 +02:00
parent 2d13fdfe5e
commit 036837a6ae
16 changed files with 437 additions and 188 deletions

View file

@ -2,6 +2,7 @@
#define UNIT_H
#include <QString>
#include <complex>
namespace Unit
{
@ -9,6 +10,8 @@ namespace Unit
// prefixed need to be in ascending order (e.g. "m kMG" is okay, whjle "MkG" does not work)
QString ToString(double value, QString unit = QString(), QString prefixes = " ", int precision = 6);
double SIPrefixToFactor(char prefix);
double dB(std::complex<double> d);
double dB(double d);
};
#endif // UNIT_H