1 // sidstar.hxx - a class to store and maintain data for SID and STAR
3 // Written by Durk Talsma, started March 2009.
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License as
8 // published by the Free Software Foundation; either version 2 of the
9 // License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28 #include <simgear/misc/sg_path.hxx>
30 #include <simgear/xml/easyxml.hxx>
32 #include <ATC/trafficcontrol.hxx>
33 #include <AIModel/AIFlightPlan.hxx>
34 #include "parking.hxx"
35 #include "groundnetwork.hxx"
36 #include "runwayprefs.hxx"
43 typedef vector<FGAIFlightPlan*> FlightPlanVec;
44 typedef vector<FGAIFlightPlan*>::iterator FlightPlanVecIterator;
46 typedef std::map < std::string, FlightPlanVec > FlightPlanVecMap;
54 FlightPlanVecMap data;
57 FGSidStar(FGAirport *ap);
58 FGSidStar(const FGSidStar &other);
60 string getId() { return id; };
61 void load(SGPath path);
62 FGAIFlightPlan *getBest(string activeRunway, double heading);