update include files
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -2,9 +2,14 @@
|
|||||||
*.slo
|
*.slo
|
||||||
*.lo
|
*.lo
|
||||||
*.o
|
*.o
|
||||||
|
*.map
|
||||||
|
*.exp
|
||||||
|
*.lib
|
||||||
|
|
||||||
# Compiled Dynamic libraries
|
# Compiled Dynamic libraries and executables
|
||||||
*.so
|
*.so
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
|
||||||
# Compiled Static libraries
|
# Compiled Static libraries
|
||||||
*.lai
|
*.lai
|
||||||
@@ -95,6 +100,7 @@ ipch/
|
|||||||
*.psess
|
*.psess
|
||||||
*.vsp
|
*.vsp
|
||||||
*.vspx
|
*.vspx
|
||||||
|
*.idb
|
||||||
|
|
||||||
# Guidance Automation Toolkit
|
# Guidance Automation Toolkit
|
||||||
*.gpState
|
*.gpState
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ Global Const EN_MINLEVEL = 20
|
|||||||
Global Const EN_MAXLEVEL = 21
|
Global Const EN_MAXLEVEL = 21
|
||||||
Global Const EN_MIXFRACTION = 22
|
Global Const EN_MIXFRACTION = 22
|
||||||
Global Const EN_TANK_KBULK = 23
|
Global Const EN_TANK_KBULK = 23
|
||||||
|
Global Const EN_TANKVOLUME = 24
|
||||||
Global Const EN_TANKVOLUME = 24 'ES
|
Global Const EN_MAXVOLUME = 25
|
||||||
|
|
||||||
Global Const EN_DIAMETER = 0 ' Link parameters
|
Global Const EN_DIAMETER = 0 ' Link parameters
|
||||||
Global Const EN_LENGTH = 1
|
Global Const EN_LENGTH = 1
|
||||||
@@ -62,7 +62,14 @@ Global Const EN_REPORTSTART = 6
|
|||||||
Global Const EN_RULESTEP = 7
|
Global Const EN_RULESTEP = 7
|
||||||
Global Const EN_STATISTIC = 8
|
Global Const EN_STATISTIC = 8
|
||||||
Global Const EN_PERIODS = 9
|
Global Const EN_PERIODS = 9
|
||||||
Global Const EN_STARTTIME = 10 'ES
|
Global Const EN_STARTTIME = 10
|
||||||
|
Global Const EN_HTIME = 11
|
||||||
|
Global Const EN_QTIME = 12
|
||||||
|
Global Const EN_HALTFLAG = 13
|
||||||
|
Global Const EN_NEXTEVENT = 14
|
||||||
|
|
||||||
|
Global Const EN_ITERATIONS = 0
|
||||||
|
Global Const EN_RELATIVEERROR = 1
|
||||||
|
|
||||||
Global Const EN_NODECOUNT = 0 'Component counts
|
Global Const EN_NODECOUNT = 0 'Component counts
|
||||||
Global Const EN_TANKCOUNT = 1
|
Global Const EN_TANKCOUNT = 1
|
||||||
@@ -132,10 +139,6 @@ Global Const EN_SAVE = 1
|
|||||||
|
|
||||||
Global Const EN_INITFLOW = 10 ' Re-initialize flow flag
|
Global Const EN_INITFLOW = 10 ' Re-initialize flow flag
|
||||||
|
|
||||||
Global Const EN_CONST_HP = 0 ' constant horsepower
|
|
||||||
Global Const EN_POWER_FUNC = 1 ' power function
|
|
||||||
Global Const EN_CUSTOM = 2 ' user-defined custom curve
|
|
||||||
|
|
||||||
'These are the external functions that comprise the DLL
|
'These are the external functions that comprise the DLL
|
||||||
|
|
||||||
Declare Function ENepanet Lib "epanet2.dll" (ByVal F1 As String, ByVal F2 As String, ByVal F3 As String, ByVal F4 As Any) As Long
|
Declare Function ENepanet Lib "epanet2.dll" (ByVal F1 As String, ByVal F2 As String, ByVal F3 As String, ByVal F4 As Any) As Long
|
||||||
@@ -175,17 +178,20 @@ Global Const EN_CUSTOM = 2 ' user-defined custom curve
|
|||||||
Declare Function ENgetpatternid Lib "epanet2.dll" (ByVal Index As Long, ByVal ID As String) As Long
|
Declare Function ENgetpatternid Lib "epanet2.dll" (ByVal Index As Long, ByVal ID As String) As Long
|
||||||
Declare Function ENgetpatternlen Lib "epanet2.dll" (ByVal Index As Long, L As Long) As Long
|
Declare Function ENgetpatternlen Lib "epanet2.dll" (ByVal Index As Long, L As Long) As Long
|
||||||
Declare Function ENgetpatternvalue Lib "epanet2.dll" (ByVal Index As Long, ByVal Period As Long, Value As Single) As Long
|
Declare Function ENgetpatternvalue Lib "epanet2.dll" (ByVal Index As Long, ByVal Period As Long, Value As Single) As Long
|
||||||
|
Declare Function ENgetaveragepatternvalue Lib "epanet2.dll" (ByVal Index As Long, Value As Single) As Long
|
||||||
Declare Function ENgetqualtype Lib "epanet2.dll" (QualCode As Long, TraceNode As Long) As Long
|
Declare Function ENgetqualtype Lib "epanet2.dll" (QualCode As Long, TraceNode As Long) As Long
|
||||||
Declare Function ENgeterror Lib "epanet2.dll" (ByVal ErrCode As Long, ByVal ErrMsg As String, ByVal N As Long)
|
Declare Function ENgeterror Lib "epanet2.dll" (ByVal ErrCode As Long, ByVal ErrMsg As String, ByVal N As Long)
|
||||||
|
Declare Function ENgetstatistic Lib "epanet2.dll" (ByVal Code As Long, Value As Single)
|
||||||
|
|
||||||
Declare Function ENgetnodeindex Lib "epanet2.dll" (ByVal ID As String, Index As Long) As Long
|
Declare Function ENgetnodeindex Lib "epanet2.dll" (ByVal ID As String, Index As Long) As Long
|
||||||
Declare Function ENgetnodeid Lib "epanet2.dll" (ByVal Index As Long, ByVal ID As String) As Long
|
Declare Function ENgetnodeid Lib "epanet2.dll" (ByVal Index As Long, ByVal ID As String) As Long
|
||||||
Declare Function ENgetnodetype Lib "epanet2.dll" (ByVal Index As Long, Code As Long) As Long
|
Declare Function ENgetnodetype Lib "epanet2.dll" (ByVal Index As Long, Code As Long) As Long
|
||||||
Declare Function ENgetnodevalue Lib "epanet2.dll" (ByVal Index As Long, ByVal Code As Long, Value As Single) As Long
|
Declare Function ENgetnodevalue Lib "epanet2.dll" (ByVal Index As Long, ByVal Code As Long, Value As Single) As Long
|
||||||
|
Declare Function ENgetcoord Lib "epanet2.dll" (ByVal Index As Long, X As Single, Y As Single) As Long
|
||||||
|
|
||||||
Declare Function ENgetnumdemands Lib "epanet2.dll" (ByVal Index As Long, numDemands As Long) As Long 'ES
|
Declare Function ENgetnumdemands Lib "epanet2.dll" (ByVal Index As Long, numDemands As Long) As Long
|
||||||
Declare Function ENgetbasedemand Lib "epanet2.dll" (ByVal Index As Long, ByVal DemandIndex As Long, Value As Single) As Long 'ES
|
Declare Function ENgetbasedemand Lib "epanet2.dll" (ByVal Index As Long, ByVal DemandIndex As Long, Value As Single) As Long
|
||||||
Declare Function ENgetdemandpattern Lib "epanet2.dll" (ByVal Index As Long, ByVal DemandIndex As Long, PatIndex As Long) As Long 'ES
|
Declare Function ENgetdemandpattern Lib "epanet2.dll" (ByVal Index As Long, ByVal DemandIndex As Long, PatIndex As Long) As Long
|
||||||
|
|
||||||
Declare Function ENgetlinkindex Lib "epanet2.dll" (ByVal ID As String, Index As Long) As Long
|
Declare Function ENgetlinkindex Lib "epanet2.dll" (ByVal ID As String, Index As Long) As Long
|
||||||
Declare Function ENgetlinkid Lib "epanet2.dll" (ByVal Index As Long, ByVal ID As String) As Long
|
Declare Function ENgetlinkid Lib "epanet2.dll" (ByVal Index As Long, ByVal ID As String) As Long
|
||||||
@@ -193,9 +199,9 @@ Global Const EN_CUSTOM = 2 ' user-defined custom curve
|
|||||||
Declare Function ENgetlinknodes Lib "epanet2.dll" (ByVal Index As Long, Node1 As Long, Node2 As Long) As Long
|
Declare Function ENgetlinknodes Lib "epanet2.dll" (ByVal Index As Long, Node1 As Long, Node2 As Long) As Long
|
||||||
Declare Function ENgetlinkvalue Lib "epanet2.dll" (ByVal Index As Long, ByVal Code As Long, Value As Single) As Long
|
Declare Function ENgetlinkvalue Lib "epanet2.dll" (ByVal Index As Long, ByVal Code As Long, Value As Single) As Long
|
||||||
|
|
||||||
Declare Function ENgetcurve Lib "epanet2.dll" (ByVal CurveIndex As Long, nValues As Long, xValues As Any, yValues As Any) As Long 'ES
|
Declare Function ENgetcurve Lib "epanet2.dll" (ByVal CurveIndex As Long, CurveID As String, nValues As Long, xValues As Any, yValues As Any) As Long
|
||||||
Declare Function ENgetheadcurve Lib "epanet2.dll" (ByVal Index As Long, ID As String) As Long 'ES
|
Declare Function ENgetheadcurve Lib "epanet2.dll" (ByVal Index As Long, ID As String) As Long
|
||||||
Declare Function ENgetpumptype Lib "epanet2.dll" (ByVal Index As Long, PumpType As Long) As Long 'ES
|
Declare Function ENgetpumptype Lib "epanet2.dll" (ByVal Index As Long, PumpType As Long) As Long
|
||||||
|
|
||||||
Declare Function ENgetversion Lib "epanet2.dll" (Value As Long) As Long
|
Declare Function ENgetversion Lib "epanet2.dll" (Value As Long) As Long
|
||||||
|
|
||||||
@@ -209,4 +215,5 @@ Global Const EN_CUSTOM = 2 ' user-defined custom curve
|
|||||||
Declare Function ENsetoption Lib "epanet2.dll" (ByVal Code As Long, ByVal Value As Single) As Long
|
Declare Function ENsetoption Lib "epanet2.dll" (ByVal Code As Long, ByVal Value As Single) As Long
|
||||||
Declare Function ENsetstatusreport Lib "epanet2.dll" (ByVal Code As Long) As Long
|
Declare Function ENsetstatusreport Lib "epanet2.dll" (ByVal Code As Long) As Long
|
||||||
Declare Function ENsetqualtype Lib "epanet2.dll" (ByVal QualCode As Long, ByVal ChemName As String, ByVal ChemUnits As String, ByVal TraceNode As String) As Long
|
Declare Function ENsetqualtype Lib "epanet2.dll" (ByVal QualCode As Long, ByVal ChemName As String, ByVal ChemUnits As String, ByVal TraceNode As String) As Long
|
||||||
|
Declare Function ENgetqualinfo Lib "epanet2.dll" (QualCode As Long, ChemName As String, ChemUnits As String, TraceNode As Long) As Long
|
||||||
|
Declare Function ENsetbasedemand Lib "epanet2.dll" (ByVal NodeIndex As Long, ByVal DemandIndex As Long, BaseDemand As Single) As Long
|
||||||
|
|||||||
@@ -19,26 +19,27 @@
|
|||||||
#define EPANET2_H
|
#define EPANET2_H
|
||||||
|
|
||||||
#ifndef EN_API_FLOAT_TYPE
|
#ifndef EN_API_FLOAT_TYPE
|
||||||
#define EN_API_FLOAT_TYPE float
|
#define EN_API_FLOAT_TYPE float
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DLLEXPORT
|
#ifndef DLLEXPORT
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define DLLEXPORT extern "C" __declspec(dllexport)
|
#define DLLEXPORT extern "C" __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#define DLLEXPORT __declspec(dllexport) __stdcall
|
#define DLLEXPORT __declspec(dllexport) __stdcall
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
#elif defined(CYGWIN)
|
#elif defined(CYGWIN)
|
||||||
#define DLLEXPORT __stdcall
|
#define DLLEXPORT __stdcall
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define DLLEXPORT
|
#define DLLEXPORT
|
||||||
#else
|
#else
|
||||||
#define DLLEXPORT
|
#define DLLEXPORT
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// --- Define the EPANET toolkit constants
|
// --- Define the EPANET toolkit constants
|
||||||
|
|
||||||
#define EN_ELEVATION 0 /* Node parameters */
|
#define EN_ELEVATION 0 /* Node parameters */
|
||||||
@@ -238,7 +239,8 @@ extern "C" {
|
|||||||
int DLLEXPORT ENgetlinkvalue(int index, int code, EN_API_FLOAT_TYPE *value);
|
int DLLEXPORT ENgetlinkvalue(int index, int code, EN_API_FLOAT_TYPE *value);
|
||||||
|
|
||||||
int DLLEXPORT ENgetcurve(int curveIndex, char* id, int *nValues, EN_API_FLOAT_TYPE **xValues, EN_API_FLOAT_TYPE **yValues);
|
int DLLEXPORT ENgetcurve(int curveIndex, char* id, int *nValues, EN_API_FLOAT_TYPE **xValues, EN_API_FLOAT_TYPE **yValues);
|
||||||
|
int DLLEXPORT ENgetheadcurve(int, char *);
|
||||||
|
int DLLEXPORT ENgetpumptype(int, int *);
|
||||||
|
|
||||||
int DLLEXPORT ENgetversion(int *version);
|
int DLLEXPORT ENgetversion(int *version);
|
||||||
|
|
||||||
@@ -259,4 +261,4 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //TOOLKIT_H
|
#endif //EPANET2_H
|
||||||
Reference in New Issue
Block a user