00001
00002
00004
00005 #if !defined(AFX_TRUCK_H__4FAD4F73_3B9C_4D49_A94D_548AED8B7A7B__INCLUDED_)
00006 #define AFX_TRUCK_H__4FAD4F73_3B9C_4D49_A94D_548AED8B7A7B__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "stdafx.h"
00013 #include <string>
00014 #include <fstream>
00015 #include <vector>
00016
00017 #include "Axle.h"
00018 #include "Vehicle.h"
00019
00022 class Truck : public Vehicle
00023 {
00024
00025 public:
00027 Truck();
00029 virtual ~Truck();
00030
00031 void setAW(int i, double w);
00032 void setAS(int i, double s);
00033 int getNoAxles();
00034 double getAS(int i);
00035 double getAW(int i);
00036 bool operator==(Truck& x);
00037 bool operator<(const Truck& x);
00038 void returnTruckData(int truckData[]);
00039
00040 void doSAFTData(char* pTruck);
00041 void doCASTORData(char* pTruck);
00042 void createSAFTVehicle(std::string data);
00043 void createCASTORVehicle(std::string data);
00044 void setDriver();
00045
00046 void setGVW(double weight);
00047
00048 private:
00049 int getID();
00050
00051 std::vector<Axle*> axles;
00052 double m_OverhangFront;
00053 double m_OverhangBack;
00054
00055 };
00056
00057 #endif // !defined(AFX_TRUCK_H__4FAD4F73_3B9C_4D49_A94D_548AED8B7A7B__INCLUDED_)