-
Notifications
You must be signed in to change notification settings - Fork 1
/
Querys.h
53 lines (43 loc) · 1.6 KB
/
Querys.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
#ifndef QUERYS_H
#define QUERYS_H
/// ---------- FUNCTION PROTOTYPES ----------
/*
* Query function 1, given the file and an airport, it prints all the info
* Parameters:
* FILE * file --> Output file
* AirportADT airport --> Airport to print the info required
*/
void Query1(FILE * file, AirportADT airport);
/*
* Query function 2, given the file and an airport, it prints all the info
* Parameters:
* FILE * file --> Output file
* AirportADT airport --> Airport to print the info required
*/
void Query2(FILE * file, AirportADT airport);
/*
* Query function 3, given the file and the array, it prints all the info
* Parameters:
* FILE * file --> Output file
* int * movPerDay --> Array containing the amount of movements per day, starting at Sunday and ending at Saturday
*/
void Query3(FILE * file, int * movPerDay);
/*
* Query function 4, given the file and an airport, it prints all the info
* Parameters:
* FILE * file --> Output file
* AirportADT airport --> Airport to print the info required
*/
void Query4(FILE * file, AirportADT airport);
/*
* It processes the airport list, generating queries.
* Parameters:
* AirportList airportList --> List containing all the airports.
* int * movPerDay --> Array containing the amount of movements per day, starting at Sunday and ending at Saturday.
* Return Values:
* NO_ERROR --> If no errors occurred
* CANT_CREATE_FILE --> If there was an error when creating the new file
*/
TErrors QueryProcessing(AirportList airportList, int * movPerDay);
/// ---------- ----------
#endif