EPANET  2.1
File Management

Functions

int ENwriteline (char *line)
 Writes line of text to the report file. More...
 
int ENreport ()
 Writes simulation report to the report file. More...
 
int ENresetreport ()
 Resets report options to default values. More...
 
int ENsetreport (char *reportFormat)
 Processes a reporting format command. More...
 
int ENopen (char *inpFile, char *rptFile, char *binOutFile)
 Opens EPANET input file & reads in network data. More...
 
int ENsaveinpfile (char *filename)
 Saves current data to "INP" formatted text file. More...
 
int ENclose ()
 Frees all memory and files used by EPANET. More...
 

Detailed Description

Function Documentation

int ENclose ( )

Frees all memory and files used by EPANET.

Returns
Error code
int ENopen ( char *  inpFile,
char *  rptFile,
char *  binOutFile 
)

Opens EPANET input file & reads in network data.

Parameters
inpFilepointer to name of input file (must exist)
rptFilepointer to name of report file (to be created)
binOutFilepointer to name of binary output file (to be created)
Returns
error code
int ENreport ( )

Writes simulation report to the report file.

Returns
Error code
int ENresetreport ( )

Resets report options to default values.

Returns
Error code
int ENsaveinpfile ( char *  filename)

Saves current data to "INP" formatted text file.

Parameters
filenameThe file path to create
Returns
Error code
int ENsetreport ( char *  reportFormat)

Processes a reporting format command.

Returns
Error code
int ENwriteline ( char *  line)

Writes line of text to the report file.

Parameters
lineText string to write
Returns
Error code.