core/unit.h

Go to the documentation of this file.
00001 
00008 #ifndef _UNIT_H
00009 #define _UNIT_H
00010 
00011 typedef struct s_unit {
00012     char name[64];      
00013     double c,e,h,k,m,s,a,b; 
00014     int prec; 
00015     struct s_unit *next; 
00016 } UNIT; 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021     int unit_convert(char *from, char *to, double *pValue);
00022     int unit_convert_ex(UNIT *from, UNIT *to, double *pValue);
00023     UNIT *unit_find(char *);
00024 #ifdef __cplusplus
00025 }
00026 #endif
00027 
00028 int unit_test(void);
00029 
00030 #endif
00031 

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy