/usr/include/length.h is in libdewalls-dev 1.0.0+ds1-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #ifndef DEWALLS_LENGTH_H
#define DEWALLS_LENGTH_H
#include <QString>
#include <QSharedPointer>
#include "dewallsexport.h"
namespace dewalls {
class DEWALLS_LIB_EXPORT Length
{
public:
enum Unit {
Invalid = 0,
Meters = 1,
Centimeters = 2,
Kilometers = 3,
Feet = 4,
Yards = 5,
Inches = 6
};
static QString Name;
static long double toBase(long double quantity, Unit fromUnit);
static long double fromBase(long double quantity, Unit toUnit);
static long double convert(long double quantity, Unit fromUnit, Unit toUnit);
static QString symbolFor(Unit unit);
};
} // namespace dewalls
#endif // DEWALLS_LENGTH_H
|