26 #include <lax/lists.h>
47 virtual SimpleUnit *find(
const char *name,
int len=-1);
60 virtual int UnitId(
const char *name,
int len=-1);
61 virtual int UnitInfo(
const char *name,
int *iid,
double *scale,
char **shortname,
char **singular,
char **plural);
62 virtual int UnitInfoIndex(
int index,
int *iid,
double *scale,
char **shortname,
char **singular,
char **plural);
63 virtual int UnitInfoId(
int id,
double *scale,
char **shortname,
char **singular,
char **plural);
64 virtual double GetFactor(
int fromunits,
int tounits);
68 virtual int PixelSize(
double pixelsize,
int intheseunits);
69 virtual int NumberOfUnits();
70 virtual int AddUnits(
int nid,
double scale,
const char *shortname,
const char *singular,
const char *plural);
71 virtual double Convert(
double value,
const char *from,
const char *to,
int *error_ret);
72 virtual double Convert(
double value,
int from_id,
int to_id,
int *error_ret);
Mon Feb 17 2014 11:52:57, Laxkit