1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: Fortran Rappture Units Stub Function Headers |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Derrick Kearney, Purdue University |
---|
7 | * Copyright (c) 2004-2005 Purdue Research Foundation |
---|
8 | * |
---|
9 | * See the file "license.terms" for information on usage and |
---|
10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
11 | * ====================================================================== |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef _RpUNITS_F_STUBS_H |
---|
15 | #define _RpUNITS_F_STUBS_H |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | int rp_define_unit_ (char* unitName, int* basisName, int unitName_len); |
---|
22 | int rp_define_unit__ (char* unitName, int* basisName, int unitName_len); |
---|
23 | int RP_DEFINE_UNIT (char* unitName, int* basisName, int unitName_len); |
---|
24 | |
---|
25 | int rp_find_ (char* searchName, int searchName_len); |
---|
26 | int rp_find__ (char* searchName, int searchName_len); |
---|
27 | int RP_FIND (char* searchName, int searchName_len); |
---|
28 | |
---|
29 | int rp_get_units_ (int* unitRefVal, char* retText, int retText_len); |
---|
30 | int rp_get_units__ (int* unitRefVal, char* retText, int retText_len); |
---|
31 | int RP_GET_UNITS (int* unitRefVal, char* retText, int retText_len); |
---|
32 | |
---|
33 | int rp_get_units_name_ (int* unitRefVal, char* retText, int retText_len); |
---|
34 | int rp_get_units_name__ (int* unitRefVal, char* retText, int retText_len); |
---|
35 | int RP_GET_UNITS_NAME (int* unitRefVal, char* retText, int retText_len); |
---|
36 | |
---|
37 | int rp_get_exponent_ (int* unitRefVal, double* retExponent); |
---|
38 | int rp_get_exponent__ (int* unitRefVal, double* retExponent); |
---|
39 | int RP_GET_EXPONENT (int* unitRefVal, double* retExponent); |
---|
40 | |
---|
41 | int rp_get_basis_ (int* unitRefVal); |
---|
42 | int rp_get_basis__ (int* unitRefVal); |
---|
43 | int RP_GET_BASIS (int* unitRefVal); |
---|
44 | |
---|
45 | int rp_units_convert_dbl_ (char* fromVal, |
---|
46 | char* toUnitsName, |
---|
47 | double* convResult, |
---|
48 | int fromVal_len, |
---|
49 | int toUnitsName_len ); |
---|
50 | int rp_units_convert_dbl__ (char* fromVal, |
---|
51 | char* toUnitsName, |
---|
52 | double* convResult, |
---|
53 | int fromVal_len, |
---|
54 | int toUnitsName_len ); |
---|
55 | int RP_UNITS_CONVERT_DBL (char* fromVal, |
---|
56 | char* toUnitsName, |
---|
57 | double* convResult, |
---|
58 | int fromVal_len, |
---|
59 | int toUnitsName_len ); |
---|
60 | |
---|
61 | int rp_units_convert_str_ (char* fromVal, |
---|
62 | char* toUnitsName, |
---|
63 | char* retText, |
---|
64 | int fromVal_len, |
---|
65 | int toUnitsName_len, |
---|
66 | int retText_len ); |
---|
67 | int rp_units_convert_str__ (char* fromVal, |
---|
68 | char* toUnitsName, |
---|
69 | char* retText, |
---|
70 | int fromVal_len, |
---|
71 | int toUnitsName_len, |
---|
72 | int retText_len ); |
---|
73 | int RP_UNITS_CONVERT_STR (char* fromVal, |
---|
74 | char* toUnitsName, |
---|
75 | char* retText, |
---|
76 | int fromVal_len, |
---|
77 | int toUnitsName_len, |
---|
78 | int retText_len ); |
---|
79 | |
---|
80 | #ifdef __cplusplus |
---|
81 | } |
---|
82 | #endif |
---|
83 | |
---|
84 | #endif |
---|