#include <factory.h>
|
static Bike * | make (istream &in) throw ( invalid_argument ) |
|
The BikeFactory class, produces Bikes from an input stream. Bikes can be either Delivery or Urban bikes.
- Author
- Mark Maloof
- Version
- 1.0, 1/24/13
Bike * BikeFactory::make |
( |
istream & |
in | ) |
|
throw | ( | invalid_argument |
| ) | | |
|
staticprivate |
Makes a bike based on the contents of the input stream. Throws an exception if the read operation encounters an invalid argument.
- Parameters
-
in | an input stream containing bike information |
- Returns
- a pointer to a Bike
- Exceptions
-
invalid_argument | if an argument is invalid |
The documentation for this class was generated from the following files: