oopapidocs
2.0
|
A simple I/O interface for reading properties of DataObjects from standard input. More...
#include <stdinreader.h>
Static Public Member Functions | |
static bool | readProperties (DataObject *ptr) |
Prompt to cout read each property from stdin, check against constraints, reprompt if invalid. |
A simple I/O interface for reading properties of DataObjects from standard input.
Will use input constraints if any were set.
Definition at line 16 of file stdinreader.h.
bool StdinReader::readProperties | ( | DataObject * | ptr | ) | [static] |
Prompt to cout read each property from stdin, check against constraints, reprompt if invalid.
ptr | address of object to set properties read from user. |
Definition at line 12 of file stdinreader.cpp.
References DataObject::className(), DataObject::property(), and DataObject::setProperty().