]> git.mxchange.org Git - flightgear.git/blob - src/Airports/sidstar.hxx
TACAN/mobile navaid cleanup and improvements.
[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 "airports_fwd.hxx"
27 #include <ATC/trafficcontrol.hxx>
28
29 #include <simgear/misc/sg_path.hxx>
30 #include <simgear/xml/easyxml.hxx>
31
32 class FGSidStar
33 {
34    private:
35       std::string id;
36       bool initialized;
37       FlightPlanVecMap data;
38
39    public:
40       FGSidStar(FGAirport *ap);
41       FGSidStar(const FGSidStar &other);
42
43       std::string getId() { return id; };
44       void load(SGPath path);
45       FGAIFlightPlan *getBest(std::string activeRunway, double heading);
46 };
47
48 #endif