-
Notifications
You must be signed in to change notification settings - Fork 1
/
swmm5.h
58 lines (49 loc) · 1.49 KB
/
swmm5.h
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
51
52
53
54
55
56
57
58
//-----------------------------------------------------------------------------
// swmm5.h
//
// Project: EPA SWMM5
// Version: 5.0
// Date: 6/19/07 (Build 5.0.010)
// 1/21/09 (Build 5.0.014)
// 4/10/09 (Build 5.0.015)
// Author: L. Rossman
//
// Prototypes for SWMM5 functions exported to swmm5.dll.
//
// Modified to better accommodate non-Windows OS's (5.0.014) //(5.0.014 - LR)
// Modified to accommodate usage in C++ programs (5.0.015) //(5.0.015 - LR)
//-----------------------------------------------------------------------------
#ifndef SWMM5_H
#define SWMM5_H
// --- define WINDOWS
#undef WINDOWS
#ifdef _WIN32
#define WINDOWS
#endif
#ifdef __WIN32__
#define WINDOWS
#endif
// --- define DLLEXPORT
#ifdef WINDOWS
#define DLLEXPORT __declspec(dllexport) __stdcall
#else
#define DLLEXPORT
#endif
// --- use "C" linkage for C++ programs
#ifdef __cplusplus
extern "C" {
#endif
int DLLEXPORT swmm_run(char* f1, char* f2, char* f3);
int DLLEXPORT swmm_open(char* f1, char* f2, char* f3);
int DLLEXPORT swmm_start(int saveFlag);
int DLLEXPORT swmm_step(double* elapsedTime);
int DLLEXPORT swmm_end(void);
int DLLEXPORT swmm_report(void);
int DLLEXPORT swmm_getMassBalErr(float* runoffErr, float* flowErr,
float* qualErr);
int DLLEXPORT swmm_close(void);
int DLLEXPORT swmm_getVersion(void);
#ifdef __cplusplus
} // matches the linkage specification from above */
#endif
#endif