-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchassis.h
More file actions
41 lines (32 loc) · 984 Bytes
/
chassis.h
File metadata and controls
41 lines (32 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef Chassis_h
#define Chassis_h
#include "transm.h"
struct chassis { string part; double gForce; };
struct suspens { string part; double gForce; };
class Chassis {
friend ostream &operator<<(ostream &, const Chassis &);
public:
Chassis(const double &);
Chassis(const Chassis &);
~Chassis() {}
const bool setSuspens();
const bool setChassis();
static const double getGForce();
private: //Sobrecargas
const bool operator==(const chassis &) const;
const bool operator==(const suspens &) const;
private: //Bibliotecas
static const chassis chassisParts[];
static const suspens suspensParts[];
private:
static const chassis &getChassis();
static const suspens &getSuspens();
chassis myChassis;
suspens mySuspens;
double gForce;
static const double MINGFORCE;
static const double MAXGFORCE;
};
ostream &operator<<(ostream &, const chassis &);
ostream &operator<<(ostream &, const suspens &);
#endif