mirror of https://github.com/EspoTek/Labrador.git
21 lines
383 B
C++
21 lines
383 B
C++
#ifndef SIPRINT_H
|
|
#define SIPRINT_H
|
|
|
|
#include <string.h>
|
|
#include <QDebug>
|
|
|
|
//siprint just prints values with their SI prefix.
|
|
//For example, it would print the number 1000 and unit V as "1kV".
|
|
class siprint
|
|
{
|
|
public:
|
|
siprint(char *unitsInit, double valInit);
|
|
char* printVal();
|
|
char units[6];
|
|
double value;
|
|
private:
|
|
char printString[160];
|
|
};
|
|
|
|
#endif // SIPRINT_H
|