8#ifndef OPENSWMMCORE_OUTPUT_H_
9#define OPENSWMMCORE_OUTPUT_H_
15#define MAXFILENAME 259
29#include "openswmm_output_export.h"
240 float **outValueArray,
261 float **outValueArray,
282 float **outValueArray,
303 float **outValueArray,
322 float **outValueArray,
339 float **outValueArray,
356 float **outValueArray,
373 float **outValueArray,
390 float **outValueArray,
407 float **outValueArray,
424 float **outValueArray,
441 float **outValueArray,
458 float **outValueArray,
466void EXPORT_OPENSWMMCORE_OUTPUT_API
SMO_free(
void **array);
int size
Definition XSectBatch.cpp:550
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getNodeAttribute(SMO_Handle p_handle, int timeIndex, SMO_nodeAttribute attr, float **outValueArray, int *length)
Retrieves node attribute values for a given time period and attribute type.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getNodeSeries(SMO_Handle p_handle, int nodeIndex, SMO_nodeAttribute attr, int startPeriod, int endPeriod, float **outValueArray, int *length)
Retrieves node attribute values for a given time period and attribute type.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getFlowUnits(SMO_Handle p_handle, int *unitFlag)
Returns unit flag for flow.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getPropertyCode(SMO_Handle p_handle, SMO_elementType type, int propertyIndex, int *propertyCode)
Retrieves the property code for a given element type and property index that is stored in the output ...
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getPropertyValues(SMO_Handle p_handle, SMO_elementType type, int elementIndex, float **outValueArray, int *length)
Retrieves all property values for a given element type and element index.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getSubcatchAttribute(SMO_Handle p_handle, int timeIndex, SMO_subcatchAttribute attr, float **outValueArray, int *length)
Retrieves subcatchment attribute values for a given time period and attribute type.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getSystemSeries(SMO_Handle p_handle, SMO_systemAttribute attr, int startPeriod, int endPeriod, float **outValueArray, int *length)
Retrieves system attribute values for a given time period and attribute type.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getLinkSeries(SMO_Handle p_handle, int linkIndex, SMO_linkAttribute attr, int startPeriod, int endPeriod, float **outValueArray, int *length)
Retrieves link attribute values for a given time period and attribute type.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getPropertyValue(SMO_Handle p_handle, SMO_elementType type, int propertyIndex, int elementIndex, float *value)
Retrieves the value of a property for a given element type, property index, and element index.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getVersion(SMO_Handle p_handle, int *version)
Retrieves the model version number that created the output file.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getPropertyCodes(SMO_Handle p_handle, SMO_elementType type, int **propertyCodes, int *size)
Retrieves the property codes for a given element type that are stored in the output file.
void EXPORT_OPENSWMMCORE_OUTPUT_API SMO_clearError(SMO_Handle p_handle_in)
Clears the error status of the SMO_Handle.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getProjectSize(SMO_Handle p_handle, int **elementCount, int *length)
Get project size.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getStartDate(SMO_Handle p_handle, double *date)
Retrieves the start date of the simulation.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getNumVars(SMO_Handle p_handle, SMO_elementType type, int *count)
Retrieves the number of variables for a given element type that are stored in the output file.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_checkError(SMO_Handle p_handle_in, char **msg_buffer)
Checks for error in the error handle and copies the error message to the message buffer.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getVarCodes(SMO_Handle p_handle, SMO_elementType type, int **varCodes, int *size)
Retrieves the variable codes for a given element type that are stored in the output file.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getElementName(SMO_Handle p_handle, SMO_elementType type, int elementIndex, char **elementName, int *size)
Retrieves the element name by index and type from the SWMM output file.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getTimes(SMO_Handle p_handle, SMO_time code, int *time)
Retrieves the number of reporting periods in the simulation.
void * SMO_Handle
Opaque pointer to struct. Do not access variables.
Definition openswmm_output.h:27
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getPollutantUnits(SMO_Handle p_handle, int **unitFlag, int *length)
Returns unit flag for pollutant. Concentration units are located after the pollutant ID names and bef...
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getSubcatchSeries(SMO_Handle p_handle, int subcatchIndex, SMO_subcatchAttribute attr, int startPeriod, int endPeriod, float **outValueArray, int *length)
Retrieves subcatchment attribute values for a given time period and attribute type.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getUnits(SMO_Handle p_handle, int **unitFlag, int *length)
Retrieves the unit system used in the SWMM model.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getLinkResult(SMO_Handle p_handle, int timeIndex, int linkIndex, float **outValueArray, int *length)
Retrieves link result values for a given time period.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_init(SMO_Handle *p_handle)
Initializes the SWMM output file handle.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getSystemResult(SMO_Handle p_handle, int timeIndex, int dummyIndex, float **outValueArray, int *length)
Retrieves system result values for a given time period.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getVarCode(SMO_Handle p_handle, SMO_elementType type, int varIndex, int *varCode)
Retrieves the variable code for a given element type and variable index that is stored in the output ...
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_open(SMO_Handle p_handle, const char *path)
Opens a SWMM output file.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getSubcatchResult(SMO_Handle p_handle, int timeIndex, int subcatchIndex, float **outValueArray, int *length)
Retrieves subcatchment result values for a given time period.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getLinkAttribute(SMO_Handle p_handle, int timeIndex, SMO_linkAttribute attr, float **outValueArray, int *length)
Retrieves link attribute values for a given time period and attribute type.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getSystemAttribute(SMO_Handle p_handle, int timeIndex, SMO_systemAttribute attr, float **outValueArray, int *length)
Retrieves system attribute values for a given time period and attribute type.
void EXPORT_OPENSWMMCORE_OUTPUT_API SMO_free(void **array)
Frees memory allocated by the API for the outValueArray.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_close(SMO_Handle *p_handle)
Closes the SWMM output file handle.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getNumProperties(SMO_Handle p_handle, SMO_elementType type, int *count)
Retrieves the number of properties for a given element type that are stored in the output file.
int EXPORT_OPENSWMMCORE_OUTPUT_API SMO_getNodeResult(SMO_Handle p_handle, int timeIndex, int nodeIndex, float **outValueArray, int *length)
Retrieves node result values for a given time period.
Header file for SWMM output API enumeration types.
SMO_linkAttribute
Link attributes.
Definition openswmm_output_enums.h:134
SMO_time
Report time related attributes.
Definition openswmm_output_enums.h:77
SMO_nodeAttribute
Node attributes.
Definition openswmm_output_enums.h:113
SMO_systemAttribute
System attributes.
Definition openswmm_output_enums.h:153
SMO_subcatchAttribute
Subcatchment attributes.
Definition openswmm_output_enums.h:88
SMO_elementType
SWMM element types.
Definition openswmm_output_enums.h:60