EPANET
3.0
EPANET Development Project
|
Reads lines of project input data from a text file. More...
#include <inputreader.h>
Public Member Functions | |
void | readFile (const char *inpFile, Network *network) |
Protected Member Functions | |
void | parseFile (std::istream &fin, InputParser &parser) |
void | trimLine (std::string &line) |
void | findSection (std::string &token) |
Protected Attributes | |
std::istringstream | sin |
string stream containing a line of input | |
int | errcount |
error count | |
int | section |
file section being processed | |
Reads lines of project input data from a text file.
The reader makes two passes through the project's input file - once using the ObjectParser to identify and create each element (node, link, pattern, etc.) in the network and then using the PropertyParser to read the properties assigned to each of these elements. This two-pass approach allows the description of the elements to appear in any order in the file.