Brief description of class still missing. More...
#include <Group2PhaseReader.h>
Public Member Functions | |
| Group2PhaseReader () | |
| bool | setOptions (int &argc, char **argv) |
Protected Member Functions | |
| virtual bool | parse (QTextStream &s) |
Brief description of class still missing.
Full description of class still missing
| bool Group2PhaseReader::parse | ( | QTextStream & | s | ) | [protected, virtual] |
Implements QGpCoreTools::ArgumentStdinReader.
References QGpCoreTools::Curve< pointType >::append(), QGpCoreTools::Point2D::fromString(), sOut(), and TRACE.
{
TRACE;
QTextStream sOut(stdout);
Curve<Point2D> curve;
Point2D p;
QString buf;
buf=s.readLine();
while(!s.atEnd() && buf[0]!='\n' && buf[0]!='#') {
p.fromString(buf);
curve.append(p);
buf=s.readLine();
}
scanCurve(curve);
return true;
}
| bool Group2PhaseReader::setOptions | ( | int & | argc, |
| char ** | argv | ||
| ) |
References QGpCoreTools::endl(), QGpCoreTools::tr(), and TRACE.
Referenced by main().