/*
   programer: Majed abulola
   date: 13/10/2002
   file: vehicle.h

   The Vehicle_info class stores info about a vehicle
   it also read a vhicle info from std in
   and writs its data to std out
   it also keeps trak of the repairs done on the vehicle
*/

#include <iostream>
#include <string>
#include "repairs.h"

using namespace std;

const int MAX_VEHICLE = 3;

struct vehicle_rec {
   
   string first_owner;
   string second_owner;
   string third_owner;

   string vehicle_make;
   string vehicle_modle;
   string vehicle_vn;
   string vehicle_color;
   string license_plate;
   string date_of_purchase;
};

struct vehicle_info
{

  
     
        vehicle_info();
        //Constructor

        vehicle_info( const vehicle_rec & _vr );
        //convertion Rec
     
        vehicle_info( const vehicle_info & _vi );
        //copy constructor

        string get_vin( void ) const;
        //return car vinNumber;

        void set_repairs_num( void );
        //increament RepaireNum by 1

        int get_repairs_num( void ) const;
        //return RepairsNum
     
        void read_vehicle_info( void );
        //read vehicle Info from std in
     
        void display_vehicle_info( void ) const;
        //display vehicle info to std out    

        repairs_info ri[MAX_REPAIRS];


        vehicle_rec vr;

        int repair_num; //num of repairs for a ri array
      
};
