source: trunk/src/core/RpUnitsFInterface.h @ 1427

Last change on this file since 1427 was 1018, checked in by gah, 16 years ago

Massive changes: New directory/file layout

File size: 1.6 KB
RevLine 
[83]1/*
2 * ----------------------------------------------------------------------
3 *  INTERFACE: Fortran Rappture Units Source
4 *
5 * ======================================================================
6 *  AUTHOR:  Derrick Kearney, Purdue University
[115]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.
[83]11 * ======================================================================
12 */
13
[76]14#ifndef _RpUNITS_F_H
15#define _RpUNITS_F_H
16
[554]17#ifdef __cplusplus
18    #include "RpFortranCommon.h"
19    #include "RpUnitsFStubs.h"
[76]20
[554]21    extern "C" {
[76]22#endif
23
24int rp_define_unit(char* unitName, int* basisName, int unitName_len);
25
26int rp_find(char* searchName, int searchName_len);
27
28int rp_get_units(int* unitRefVal, char* retText, int retText_len);
29
30int rp_get_units_name(int* unitRefVal, char* retText, int retText_len);
31
[84]32int rp_get_exponent(int* unitRefVal, double* retExponent);
[76]33
34int rp_get_basis(int* unitRefVal);
35
[84]36int rp_units_convert_dbl (  char* fromVal,
37                            char* toUnitsName,
38                            double* convResult,
39                            int fromVal_len,
[76]40                            int toUnitsName_len );
41
[84]42int rp_units_convert_str (  char* fromVal,
43                            char* toUnitsName,
44                            char* retText,
45                            int fromVal_len,
[76]46                            int toUnitsName_len,
[84]47                            int retText_len     );
[76]48
[84]49#ifdef __cplusplus
[554]50    }
51#endif // ifdef __cplusplus
[84]52
[554]53#endif // ifndef _RpUNITS_F_H
Note: See TracBrowser for help on using the repository browser.