5#include <WXP/UnitData.h>
15 bool valid(
const char *in,
const char *out );
16 float convert(
float value,
const char *in,
const char *out );
19 static int scale(
const char *in,
float rscale,
const char *mstr,
String &out );
22 static bool equal(
const char *unit1,
const char *unit2 );
This is a variable length string class.
Definition String.h:5
This class converts units.
Definition Unit.h:8
int init()
Definition Unit.cc:33
static int scale(const char *in, float rscale, const char *mstr, String &out)
Definition Unit.cc:375
int readFile(const char *uin, const char *uout, UnitData &data)
Definition Unit.cc:318
static bool equal(const char *unit1, const char *unit2)
Definition Unit.cc:461
Unit()
Definition Unit.cc:26
bool valid(const char *in, const char *out)
Definition Unit.cc:49
static int parse(const char *str, String &var, String &units)
Definition Unit.cc:413
static int simplify(char *unit)
Definition Unit.cc:469
float convert(float value, const char *in, const char *out)
Definition Unit.cc:174
static int change(String &str, const char *units)
Definition Unit.cc:444
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores specific unit conversions.
Definition UnitData.h:5