]> git.mxchange.org Git - flightgear.git/blob - src/Airports/sidstar.hxx
Merge branch 'next' of D:\Git_New\flightgear into next
[flightgear.git] / src / Airports / sidstar.hxx
1 // sidstar.hxx - a class to store and maintain data for SID and STAR
2 // procedures. 
3 // Written by Durk Talsma, started March 2009.
4 //
5 //
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.
10 //
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.
15 //
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.
19 //
20 // $Id$
21
22
23 #ifndef _SIDSTAR_HXX_
24 #define _SIDSTAR_HXX_
25
26 #include <string>
27 #include <map>
28
29 #include <simgear/misc/sg_path.hxx>
30
31 #include <simgear/xml/easyxml.hxx>
32
33 #include <ATC/trafficcontrol.hxx>
34 #include <AIModel/AIFlightPlan.hxx>
35 #include "parking.hxx"
36 #include "groundnetwork.hxx"
37 #include "runwayprefs.hxx"
38
39
40 class FGAirport;
41
42 typedef std::vector<FGAIFlightPlan*>           FlightPlanVec;
43 typedef std::vector<FGAIFlightPlan*>::iterator FlightPlanVecIterator;
44
45 typedef std::map < std::string, FlightPlanVec > FlightPlanVecMap;
46
47
48 class FGSidStar 
49 {
50    private:
51       std::string id;
52       bool initialized;
53       FlightPlanVecMap data;
54
55    public:
56       FGSidStar(FGAirport *ap);
57       FGSidStar(const FGSidStar &other);
58
59       std::string getId() { return id; };
60       void load(SGPath path);
61       FGAIFlightPlan *getBest(std::string activeRunway, double heading);
62 };
63
64
65
66 #endif