Last change
on this file since 119 was
119,
checked in by dkearney, 18 years ago
|
- added doxygen headers to some fortran RpLibrary? bindings
- cleaned up app-fermi/fortran example
- removed rp_add_presets(...) function from api
- minor logic changes to RpUnits.cc.
|
File size:
1.6 KB
|
Line | |
---|
1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: Fortran Rappture Units Source |
---|
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_H |
---|
15 | #define _RpUNITS_F_H |
---|
16 | |
---|
17 | #include "RpFortranCommon.h" |
---|
18 | #include "RpUnitsFStubs.h" |
---|
19 | |
---|
20 | #ifdef __cplusplus |
---|
21 | extern "C" { |
---|
22 | #endif |
---|
23 | |
---|
24 | int rp_define_unit(char* unitName, int* basisName, int unitName_len); |
---|
25 | |
---|
26 | int rp_find(char* searchName, int searchName_len); |
---|
27 | |
---|
28 | int rp_make_metric(int* basis); |
---|
29 | |
---|
30 | int rp_get_units(int* unitRefVal, char* retText, int retText_len); |
---|
31 | |
---|
32 | int rp_get_units_name(int* unitRefVal, char* retText, int retText_len); |
---|
33 | |
---|
34 | int rp_get_exponent(int* unitRefVal, double* retExponent); |
---|
35 | |
---|
36 | int rp_get_basis(int* unitRefVal); |
---|
37 | |
---|
38 | int rp_units_convert_dbl ( char* fromVal, |
---|
39 | char* toUnitsName, |
---|
40 | double* convResult, |
---|
41 | int fromVal_len, |
---|
42 | int toUnitsName_len ); |
---|
43 | |
---|
44 | int rp_units_convert_str ( char* fromVal, |
---|
45 | char* toUnitsName, |
---|
46 | char* retText, |
---|
47 | int fromVal_len, |
---|
48 | int toUnitsName_len, |
---|
49 | int retText_len ); |
---|
50 | |
---|
51 | #ifdef __cplusplus |
---|
52 | } |
---|
53 | #endif |
---|
54 | |
---|
55 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.