| 1 | /* |
| 2 | * SPDX-FileName: sidstar.hxx |
| 3 | * SPDX-FileComment: a class to store and maintain data for SID and STAR procedures |
| 4 | * SPDX-FileCopyrightText: Written by Durk Talsma, started March 2009 |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #pragma once |
| 9 | |
| 10 | #include <simgear/misc/sg_path.hxx> |
| 11 | #include <simgear/xml/easyxml.hxx> |
| 12 | |
| 13 | #include <ATC/trafficcontrol.hxx> |
| 14 | |
| 15 | #include "airports_fwd.hxx" |
| 16 | |
| 17 | |
| 18 | class FGSidStar |
| 19 | { |
| 20 | private: |
| 21 | std::string id; |
| 22 | bool initialized; |
| 23 | FlightPlanVecMap data; |
| 24 | |
| 25 | public: |
| 26 | explicit FGSidStar(FGAirport* ap); |
| 27 | FGSidStar(const FGSidStar& other); |
| 28 | |
| 29 | std::string getId() const { return id; }; |
| 30 | void load(SGPath path); |
| 31 | FGAIFlightPlan* getBest(const std::string& activeRunway, double heading); |
| 32 | }; |