forked from thermalogic/SEUIF97
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseuif97.cs
51 lines (43 loc) · 2.35 KB
/
seuif97.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
The C# API of libseuif97.dll
License: this code is in the public domain
Author: Cheng Maohua
Email: cmh@seu.edu.cn
Last modified: 2019.01.05
*/
using System;
using System.Runtime.InteropServices;
namespace seuif97
{
public class Seuif97
{
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double pt(double p, double t, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double ph(double p, double h, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double ps(double p, double s, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double pv(double p, double v, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double th(double t, double h, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double ts(double t, double s, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double tv(double t, double v, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double hs(double h, double s, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double px(double p, double x, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double tx(double t, double x, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double hx(double h, double x, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double sx(double s, double x, int wid);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double ishd(double pi, double ti, double pe);
[DllImport("libseuif97", CallingConvention = CallingConvention.StdCall)]
public static extern double ief(double pi, double ti, double pe, double te);
}
}