#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. Directly throws an exception if bike type is invalid. Indirectly throws an exception if some other argument in the stream is invalid.
- Parameters
-
in | an input stream containing bike information |
- Returns
- a pointer to a Bike
- Exceptions
-
invalid_argument | if an argument in thre stream is invalid |
The documentation for this class was generated from the following files: