![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Global methods associated with a SWMM project. More...
Functions | |
| void | project_open (const char *inp_file, const char *rpt_file, const char *out_file) |
| Opens a new SWMM project. | |
| void | project_close (void) |
| Close project. | |
| void | project_readInput (void) |
| Read project inputs. | |
| int | project_readOption (char *s1, char *s2) |
| Reads a project option from a pair of string tokens. | |
| void | project_validate (void) |
| Checks validity of project data. | |
| int | project_init (void) |
| Initializes the internal state of the project. | |
| int | project_addObject (int type, char *id, int n) |
| Adds an object Id to a hash table. | |
| int | project_findObject (int type, const char *id) |
| Uses hash table to find index of an object with a given ID. | |
| char * | project_findID (int type, char *id) |
| Uses hash table to find address of a given string entry. | |
| double ** | project_createMatrix (int nrows, int ncols) |
| Allocates memory for a matrix of doubles. | |
| void | project_freeMatrix (double **m) |
| Frees memory allocated for a matrix of doubles. | |
Global methods associated with a SWMM project.
| int project_addObject | ( | int | type, |
| char * | id, | ||
| int | n ) |
Adds an object Id to a hash table.
| [in] | type | Object type |
| [in] | id | Object ID string |
| [in] | n | Object index |
Adds an object Id to a hash table.
| void project_close | ( | void | ) |
Close project.
Close project.
| double ** project_createMatrix | ( | int | nrows, |
| int | ncols ) |
Allocates memory for a matrix of doubles.
| [in] | nrows | Number of rows (0-based) |
| [in] | ncols | Number of columns (0-based) |
| char * project_findID | ( | int | type, |
| char * | id ) |
Uses hash table to find address of a given string entry.
| [in] | type | Object type |
| [in] | id | ID name being sought |
Uses hash table to find address of a given string entry.
| int project_findObject | ( | int | type, |
| const char * | id ) |
Uses hash table to find index of an object with a given ID.
| [in] | type | Object type |
| [in] | id | Object ID string |
| void project_freeMatrix | ( | double ** | a | ) |
Frees memory allocated for a matrix of doubles.
| a | Matrix of floats. |
| int project_init | ( | void | ) |
Initializes the internal state of the project.
Initializes the internal state of the project.
| void project_open | ( | const char * | inp_file, |
| const char * | rpt_file, | ||
| const char * | out_file ) |
Opens a new SWMM project.
| [in] | inp_file | SWMM input file |
| [in] | rpt_file | SWMM report file |
| [in] | out_file | SWMM output file |
| void project_readInput | ( | void | ) |
Read project inputs.
Read project inputs.
| int project_readOption | ( | char * | s1, |
| char * | s2 ) |
Reads a project option from a pair of string tokens.
| [in] | s1 | Option keyword |
| [in] | s2 | String representation of option's value |
| void project_validate | ( | void | ) |
Checks validity of project data.