-
Notifications
You must be signed in to change notification settings - Fork 4
/
AirTransportT4.h
79 lines (69 loc) · 1.96 KB
/
AirTransportT4.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/** AirTransport class
*
* #include "AirTransportT4.h" <BR>
* -llib
*
*/
#ifndef AIR_TRANSPORT_H
#define AIR_TRANSPORT_H
// SYSTEM INCLUDES
#include<iostream>
using std::string;
// LOCAL INCLUDES
#include "TransportT4.h"
// AirTransport class definition
class AirTransport : public Transport {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
AirTransport(float = 0.0, const string& = "", float = 0.0, const string& = "", const string& = "");
// Use compiler-generated copy constructor, assignment, and destructor.
// AirTransport(const AirTransport&);
// AirTransport& operator=(const AirTransport&);
// ~AirTransport();
// OPERATIONS
/** Pure virtual function that ships goods.
*
* @param void
*
* @return void
*/
void Ship();
// ACCESS
// setters
void SetWeight(float = 0.0);
void SetCapacity(const string& = "");
void SetSpeed(float = 0.0);
void SetTransport(float = 0.0, const string& = "", float = 0.0);
/**
# @overload void SetTransport(const Transport& aTransport);
*/
void SetTransport(const Transport& aTransport);
void SetAircraftType(const string&);
void SetAircraftName(const string&);
void SetAirTransport(float = 0.0, const string& = "", float = 0.0, const string& = "", const string& = "");
/**
# @overload void SetAirTransport(const string& = "", const string& = "");
*/
void SetAirTransport(const string& = "", const string& = "");
/**
# @overload void SetAirTransport(const AirTransport& aAirTransport);
*/
void SetAirTransport(const AirTransport& aAirTransport);
// getters
float GetWeight()const;
const string& GetCapacity()const;
float GetSpeed()const;
const Transport& GetTransport()const;
const string& GetAircraftType()const;
const string& GetAircraftName()const;
const AirTransport& GetAirTransport()const;
private:
// DATA MEMBERS
string mAircraftType;
string mAircraftName;
};
// end class AirTransport
#endif
// _AIR_TRANSPORT_H_