This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
730 additions
and
744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef FEUP_AED2_FLIGHTPATH_H | ||
#define FEUP_AED2_FLIGHTPATH_H | ||
|
||
|
||
#include <vector> | ||
#include "Airport.h" | ||
|
||
class FlightPath { | ||
public: | ||
FlightPath(); | ||
|
||
FlightPath(const std::vector<AirportRef> &airports, double distance); | ||
|
||
const std::vector<AirportRef> &getAirports() const; | ||
std::vector<AirportRef> &getAirports(); | ||
double getDistance() const; | ||
void setDistance(double distance); | ||
int getFlights() const; | ||
|
||
private: | ||
std::vector<AirportRef> airports_; | ||
double distance_; | ||
}; | ||
|
||
|
||
#endif //FEUP_AED2_FLIGHTPATH_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef FEUP_AED2_UTILS_H | ||
#define FEUP_AED2_UTILS_H | ||
#include <vector> | ||
#include "Airline.h" | ||
|
||
class utils; | ||
|
||
void sortAirlinesByName(std::vector<AirlineRef>& airlines); | ||
void sortAirlinesByCode(std::vector<AirlineRef>& airlines); | ||
void sortAirlinesByCountry(std::vector<AirlineRef>& airlines); | ||
|
||
void sortAirportsByName(std::vector<AirportRef>& airports); | ||
void sortAirportsByCode(std::vector<AirportRef>& airports); | ||
void sortAirportsByCountry(std::vector<AirportRef>& airports); | ||
void sortAirportsByCity(std::vector<AirportRef>& airports); | ||
|
||
|
||
#endif //FEUP_AED2_UTILS_H |
Oops, something went wrong.