-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChuyenBay.h
50 lines (48 loc) · 1.26 KB
/
ChuyenBay.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
#pragma once
#include "Ve.h"
#include "Header.h"
#include "DanhSachVeSuccess.h"
template <class DataType>
class ChuyenBay {
string _strMaChuyenBay;
string _strSoHieuMayBay;
string _strNgayKhoiHanh;
string _strSanBayDen;
int _iTrangThai;
Ve* _danhSachVe;
int _danhSachGheTrong[100];
int _iSoLuongVe;
int _iSoLuongGheTrong;
int _iSoCho;
long _lTimestamp;
public:
ChuyenBay();
ChuyenBay(string maChuyenBay, string soHieuMayBay, string ngayKhoiHanh, string sanBayDen);
void display();
void displayDetail();
void hienThiDanhSachKhach();
void hienThiDanhSachGheTrong();
void setSoCho(int soCho);
void setTrangThai(string temp);
void removeGhe(int index);
void setDanhSachGheTrong();
void setDanhSachVe(string danhSachVe, string maChuyenBay, DanhSachVeSuccess<DataType> DSVS);
void themVeMoi(Ve data);
void removeVe(int soGhe);
void themGheTrongMoi(int soGhe);
void removeGheTrong(int soGhe);
string getMaChuyenBay();
string getSoHieuMayBay();
int getTrangThai();
bool isFullSeat();
int isBooked(int maSoGhe);
int kiemTraMaSoGhe(int maSoGhe);
DataType* getDanhSachVe();
int getSoLuongVe();
void updateTrangThai();
void setTimestamp();
long getTimestamp();
void sapXepDanhSachVe(int type);
void sapXepDanhSachGheTrong(int type);
string thongTinFile();
};