add ENgetnodesvalues and ENgetlinksvalues methods
This commit is contained in:
@@ -214,6 +214,8 @@ extern "C" {
|
||||
|
||||
int DLLEXPORT ENgetnodevalue(int index, int property, EN_API_FLOAT_TYPE *value);
|
||||
|
||||
int DLLEXPORT ENgetnodevalues(int property, EN_API_FLOAT_TYPE *value);
|
||||
|
||||
int DLLEXPORT ENsetnodevalue(int index, int property, EN_API_FLOAT_TYPE value);
|
||||
|
||||
int DLLEXPORT ENsetjuncdata(int index, EN_API_FLOAT_TYPE elev,
|
||||
@@ -291,6 +293,8 @@ extern "C" {
|
||||
|
||||
int DLLEXPORT ENgetlinkvalue(int index, int property, EN_API_FLOAT_TYPE *value);
|
||||
|
||||
int DLLEXPORT ENgetlinksvalues(int property, EN_API_FLOAT_TYPE *value);
|
||||
|
||||
int DLLEXPORT ENsetlinkvalue(int index, int property, EN_API_FLOAT_TYPE value);
|
||||
|
||||
int DLLEXPORT ENsetpipedata(int index, EN_API_FLOAT_TYPE length,
|
||||
|
||||
@@ -881,6 +881,20 @@ typedef struct Project *EN_Project;
|
||||
Values are returned in units that depend on the units used for flow rate
|
||||
(see @ref Units).
|
||||
*/
|
||||
|
||||
int DLLEXPORT EN_getnodesvalues(EN_Project ph, int property, double *out_values);
|
||||
|
||||
/**
|
||||
@brief Retrieves an array of property values for all nodes.
|
||||
@param ph an EPANET project handle.
|
||||
@param property the property to retrieve (see @ref EN_NodeProperty).
|
||||
@param[out] values an array of values for all nodes.
|
||||
@return an error code.
|
||||
|
||||
Values are returned in units that depend on the units used for flow rate
|
||||
(see @ref Units).
|
||||
*/
|
||||
|
||||
int DLLEXPORT EN_getnodevalue(EN_Project ph, int index, int property, double *out_value);
|
||||
|
||||
/**
|
||||
@@ -1242,6 +1256,17 @@ typedef struct Project *EN_Project;
|
||||
*/
|
||||
int DLLEXPORT EN_getlinkvalue(EN_Project ph, int index, int property, double *out_value);
|
||||
|
||||
/**
|
||||
@brief Retrieves an array of property values for all links.
|
||||
@param ph an EPANET project handle.
|
||||
@param property the property to retrieve (see @ref EN_LinkProperty).
|
||||
@param[out] values an array of values for all links.
|
||||
@return an error code.
|
||||
|
||||
Values are returned in units that depend on the units used for flow rate (see @ref Units).
|
||||
*/
|
||||
int DLLEXPORT EN_getlinksvalues(EN_Project ph, int property, double *out_values);
|
||||
|
||||
/**
|
||||
@brief Sets a property value for a link.
|
||||
@param ph an EPANET project handle.
|
||||
|
||||
Reference in New Issue
Block a user