~ubuntu-branches/ubuntu/precise/flightgear/precise

« back to all changes in this revision

Viewing changes to src/Airports/sidstar.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Ove Kaaven
  • Date: 2011-01-30 15:46:35 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110130154635-rlynmg9n5hzxq5xe
Tags: 2.0.0-3
* Recommend fgfs-aircraft-base and fgfs-models-base.
  Closes. #610276.
* Added note about scenery SharedModels.tgz to README.Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
28
#include <simgear/misc/sg_path.hxx>
 
29
 
 
30
#include <simgear/xml/easyxml.hxx>
 
31
 
 
32
#include <ATC/trafficcontrol.hxx>
 
33
#include <AIModel/AIFlightPlan.hxx>
 
34
#include "parking.hxx"
 
35
#include "groundnetwork.hxx"
 
36
#include "runwayprefs.hxx"
 
37
 
 
38
 
 
39
using std::string;
 
40
 
 
41
class FGAirport;
 
42
 
 
43
typedef vector<FGAIFlightPlan*>           FlightPlanVec;
 
44
typedef vector<FGAIFlightPlan*>::iterator FlightPlanVecIterator;
 
45
 
 
46
typedef std::map < std::string, FlightPlanVec > FlightPlanVecMap;
 
47
 
 
48
 
 
49
class FGSidStar 
 
50
{
 
51
   private:
 
52
      string id;
 
53
      bool initialized;
 
54
      FlightPlanVecMap data;
 
55
 
 
56
   public:
 
57
      FGSidStar(FGAirport *ap);
 
58
      FGSidStar(const FGSidStar &other);
 
59
 
 
60
      string getId() { return id; };
 
61
      void load(SGPath path);
 
62
      FGAIFlightPlan *getBest(string activeRunway, double heading);
 
63
};
 
64
 
 
65
 
 
66
 
 
67
#endif
 
 
b'\\ No newline at end of file'