Adds link vertex get/set functions to the API
This commit is contained in:
12
src/types.h
12
src/types.h
@@ -7,7 +7,7 @@
|
||||
Authors: see AUTHORS
|
||||
Copyright: see AUTHORS
|
||||
License: see LICENSE
|
||||
Last Updated: 10/26/2019
|
||||
Last Updated: 10/29/2019
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
@@ -366,6 +366,15 @@ struct Ssource // Water Quality Source Object
|
||||
};
|
||||
typedef struct Ssource *Psource; // Pointer to source object
|
||||
|
||||
struct Svertices // Coordinates of a link's vertices
|
||||
{
|
||||
double *X; // array of x-coordinates
|
||||
double *Y; // array of y-coordinates
|
||||
int Npts; // number of vertex points
|
||||
int Capacity; // capacity of coordinate arrays
|
||||
};
|
||||
typedef struct Svertices *Pvertices; // Pointer to a link's vertices
|
||||
|
||||
typedef struct // Node Object
|
||||
{
|
||||
char ID[MAXID+1]; // node ID
|
||||
@@ -397,6 +406,7 @@ typedef struct // Link Object
|
||||
double Rc; // reaction coeff.
|
||||
LinkType Type; // link type
|
||||
StatusType Status; // initial status
|
||||
Pvertices Vertices; // internal vertex coordinates
|
||||
int Rpt; // reporting flag
|
||||
int ResultIndex; // saved result index
|
||||
char *Comment; // link comment
|
||||
|
||||
Reference in New Issue
Block a user