oopapidocs  2.0
StdinReader Class Reference

A simple I/O interface for reading properties of DataObjects from standard input. More...

#include <stdinreader.h>

List of all members.

Static Public Member Functions

static bool readProperties (DataObject *ptr)
 Prompt to cout read each property from stdin, check against constraints, reprompt if invalid.

Detailed Description

A simple I/O interface for reading properties of DataObjects from standard input.

Will use input constraints if any were set.

Author:
Alan Ezust

Definition at line 16 of file stdinreader.h.


Member Function Documentation

bool StdinReader::readProperties ( DataObject ptr) [static]

Prompt to cout read each property from stdin, check against constraints, reprompt if invalid.

Parameters:
ptraddress of object to set properties read from user.
Returns:
true if successful (should always be true since current version infinitely retries.)

Definition at line 12 of file stdinreader.cpp.

References DataObject::className(), DataObject::property(), and DataObject::setProperty().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Enumerations