bikes.h
Go to the documentation of this file.
1 #ifndef BIKES_H
2 #define BIKES_H
3 
4 #include <iostream>
5 #include <vector>
6 #include <string>
7 #include <typeinfo>
8 #include <cmath>
9 #include "bike.h"
10 #include "urban.h"
11 #include "delivery.h"
12 #include "factory.h"
13 
14 using namespace std;
15 
26 class Bikes
27 {
28 
29  public:
30  Bikes();
31  int getTotalGears() const;
32  int getTotalCapacity() const;
33  void print( ostream &out = cout ) const;
34  void read( string filename ) throw ( logic_error, invalid_argument );
35  unsigned size() const;
36  ~Bikes();
37 
38  private:
39  vector<Bike *> bikes;
40 
41 }; // Bikes class
42 
43 #endif // BIKES_H
44 
Definition: bikes.h:26
vector< Bike * > bikes
Definition: bikes.h:39