Added pump's type constants to header files
This commit is contained in:
@@ -140,6 +140,10 @@ 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
|
||||||
|
|||||||
@@ -188,6 +188,9 @@
|
|||||||
|
|
||||||
#define EN_INITFLOW 10 /* Re-initialize flows flag */
|
#define EN_INITFLOW 10 /* Re-initialize flows flag */
|
||||||
|
|
||||||
|
#define EN_CONST_HP 0 /* constant horsepower */
|
||||||
|
#define EN_POWER_FUNC 1 /* power function */
|
||||||
|
#define EN_CUSTOM 2 /* user-defined custom curve */
|
||||||
|
|
||||||
// --- Declare the EPANET toolkit functions
|
// --- Declare the EPANET toolkit functions
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|||||||
@@ -2785,7 +2785,7 @@ int DLLEXPORT ENgetheadcurve(int index, char *id)
|
|||||||
int DLLEXPORT ENgetpumptype(int index, int *type)
|
int DLLEXPORT ENgetpumptype(int index, int *type)
|
||||||
/*----------------------------------------------------------------
|
/*----------------------------------------------------------------
|
||||||
** Input: index = index of pump in list of links
|
** Input: index = index of pump in list of links
|
||||||
** Output: type = PumpType
|
** Output: type = Pump type
|
||||||
** Returns: error code
|
** Returns: error code
|
||||||
** Purpose: retrieves type of a pump for specific link index
|
** Purpose: retrieves type of a pump for specific link index
|
||||||
**
|
**
|
||||||
|
|||||||
Reference in New Issue
Block a user