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. Throws an exception if the read operation encounters an invalid argument.

Parameters
inan input stream containing bike information
Returns
a pointer to a Bike
Exceptions
invalid_argumentif an argument is invalid

Friends And Related Function Documentation

friend class Bikes
friend

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