-
Notifications
You must be signed in to change notification settings - Fork 5
/
swmm5.h
66 lines (55 loc) · 1.53 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
59
60
61
62
63
64
65
66
//-----------------------------------------------------------------------------
// swmm5.h
//
// Project: EPA SWMM5
// Version: 5.1
// Date: 03/24/14 (Build 5.1.001)
// Author: L. Rossman
//
// Prototypes for SWMM5 functions exported to swmm5.dll.
//
//-----------------------------------------------------------------------------
#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 swmm_run(char* f1, char* f2, char* f3);
int swmm_open(char* f1, char* f2, char* f3);
int swmm_start(int saveFlag);
int swmm_step(double* elapsedTime);
int swmm_end(void);
int swmm_report(void);
int swmm_getMassBalErr(float* runoffErr, float* flowErr,
float* qualErr);
int swmm_close(void);
int swmm_getVersion(void);
// Cosimulation getters
double swmm_get( char* id, int attribute, int units );
double swmm_get_from_input(char* filename, char *id, int attribute);
int swmm_save_all(char* input_file, int object_type, int attribute);
// Cosimulation setters
int swmm_modify_setting(char* id, double new_setting, double tstep);
int swmm_modify_input(char* input_file, char *id, int attribute, double value);
int swmm_save_results();
#ifdef __cplusplus
} // matches the linkage specification from above */
#endif
#endif