16 #define DLLEXPORT __declspec(dllexport) __cdecl 18 #define DLLEXPORT __declspec(dllexport) __stdcall 28 #define _CRT_SECURE_NO_DEPRECATE 30 #include "../src/datetime.h" 285 DateTime maxDepthDate;
289 double timeSurcharged;
290 double timeCourantCritical;
296 DateTime maxInflowDate;
297 DateTime maxOverflowDate;
405 double timeInFlowClass[7];
697 int DLLEXPORT
swmm_getLidUParam(
int index,
int lidIndex,
int Param,
double *value);
707 int DLLEXPORT
swmm_setLidUParam(
int index,
int lidIndex,
int Param,
double value);
753 int DLLEXPORT
swmm_getLidCParam(
int lidControlIndex,
int layerIndex,
int Param,
double *value);
763 int DLLEXPORT
swmm_setLidCParam(
int lidControlIndex,
int layerIndex,
int Param,
double value);
861 int *day,
int *hour,
int *minute,
int DLLEXPORT swmm_getObjectId(int type, int index, char *id)
Gets Object ID.
int DLLEXPORT swmm_getLinkResult(int index, int type, double *result)
Get a result value for specified link.
int DLLEXPORT swmm_setLinkSetting(int index, double setting)
Set a link setting (pump, orifice, or weir). Setting for an orifice and a weir should be [0,...
int DLLEXPORT swmm_getNodeResult(int index, int type, double *result)
Get a result value for specified node.
int DLLEXPORT swmm_getStorageStats(int index, SM_StorageStats *storageStats)
Get a storage statistics.
int DLLEXPORT swmm_getSubcatchResult(int index, int type, double *result)
Get a result value for specified subcatchment.
int DLLEXPORT swmm_setSimulationDateTime(int timetype, char *dtimestr)
Set simulation datetime information.
int DLLEXPORT swmm_getNodeStats(int index, SM_NodeStats *nodeStats)
Get a node statistics.
int DLLEXPORT swmm_getNodeParam(int index, int Param, double *value)
Get a property value for specified node.
int DLLEXPORT swmm_setNodeParam(int index, int Param, double value)
Set a property value for specified node.
void DLLEXPORT swmm_getAPIError(int errcode, char *s)
Get the text of an error code.
int DLLEXPORT swmm_getPumpStats(int index, SM_PumpStats *pumpStats)
Get pump statistics.
int DLLEXPORT swmm_countObjects(int type, int *count)
Gets Object Count.
System runoff stats structure.
int DLLEXPORT swmm_getSimulationAnalysisSetting(int type, int *value)
Gets Simulation Analysis Setting.
int DLLEXPORT swmm_getSystemRunoffStats(SM_RunoffTotals *runoffTot)
Get system runoff statistics.
int DLLEXPORT swmm_getSubcatchParam(int index, int Param, double *value)
Get a property value for specified subcatchment.
double timeCapacityLimited
int DLLEXPORT swmm_getSimulationParam(int type, double *value)
Gets Simulation Analysis Setting.
int DLLEXPORT swmm_getNodeType(int index, int *Ntype)
Get the type of node with specified index.
int DLLEXPORT swmm_getSubcatchOutConnection(int index, int *type, int *out_index)
Get the Subcatchment connection. Subcatchments can load to a node, another subcatchment,...
int DLLEXPORT swmm_getLinkType(int index, int *Ltype)
Get the type of link with specified index.
int DLLEXPORT swmm_setLinkParam(int index, int Param, double value)
Set a property value for specified link.
int DLLEXPORT swmm_setNodeInflow(int index, double flowrate)
Set an inflow rate to a node. The inflow rate is held constant until the caller changes it.
int DLLEXPORT swmm_getSimulationDateTime(int timetype, int *year, int *month, int *day, int *hour, int *minute, int *second)
Get the current simulation datetime information.
int DLLEXPORT swmm_getLinkConnections(int index, int *Node1, int *Node2)
Get the link Connection Node Indeces. If the conduit has a negative slope, the dynamic wave solver wi...
int DLLEXPORT swmm_setSubcatchParam(int index, int Param, double value)
Set a property value for specified subcatchment.
int DLLEXPORT swmm_getSystemRoutingStats(SM_RoutingTotals *routingTot)
Get system routing statistics.
System Flow Routing Statistics.
int DLLEXPORT swmm_getCurrentDateTimeStr(char *dtimestr)
Get the simulation current datetime as a string.
int DLLEXPORT swmm_getLinkStats(int index, SM_LinkStats *linkStats)
Get link statistics.
int DLLEXPORT swmm_setOutfallStage(int index, double stage)
Set outfall stage.
double timeCourantCritical
void DLLEXPORT swmm_freeOutfallStats(SM_OutfallStats *outfallStats)
Free outfall statistics structure.
int DLLEXPORT swmm_getSimulationUnit(int type, int *value)
Gets Simulation Unit.
int DLLEXPORT swmm_getOutfallStats(int index, SM_OutfallStats *outfallStats)
Get outfall statistics.
int DLLEXPORT swmm_getNodeTotalInflow(int index, double *value)
Get the cumulative inflow for a node.
int DLLEXPORT swmm_getLinkDirection(int index, signed char *value)
Get the link flow direction (see swmm_getLinkType() for notes.
int DLLEXPORT swmm_getLinkParam(int index, int Param, double *value)
Get a property value for specified link.