Static Private Member Functions | Friends | List of all members
BikeFactory Class Reference

#include <factory.h>

Static Private Member Functions

static Bikemake (istream &in) throw ( invalid_argument )
 

Friends

class Bikes
 

Detailed Description

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

Member Function Documentation

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
inan input stream containing bike information
Returns
a pointer to a Bike
Exceptions
invalid_argumentif an argument in thre stream is invalid

Friends And Related Function Documentation

friend class Bikes
friend

The documentation for this class was generated from the following files: