]> git.mxchange.org Git - flightgear.git/blob - src/Airports/airports_fwd.hxx
Code to stop loading of invalid flightplans
[flightgear.git] / src / Airports / airports_fwd.hxx
1 // Airports forward declarations
2 //
3 // Copyright (C) 2013  Thomas Geymayer <tomgey@gmail.com>
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License as
7 // published by the Free Software Foundation; either version 2 of the
8 // License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
19 #ifndef AIRPORTS_FWD_HXX_
20 #define AIRPORTS_FWD_HXX_
21
22 #include <simgear/structure/SGSharedPtr.hxx>
23
24 #include <list>
25 #include <map>
26 #include <vector>
27 #include <string>
28 #include <ctime> // for time_t
29
30 // forward decls
31 class FGAirport;
32 class FGAirportDynamics;
33 class FGRunwayBase;
34 class FGRunway;
35 class FGHelipad;
36 class FGTaxiway;
37 class FGPavement;
38
39 class FGNavRecord;
40
41 class Block;
42 class FGTaxiNode;
43 class FGParking;
44 class FGTaxiSegment;
45 class FGTaxiRoute;
46 class FGGroundNetwork;
47
48 class RunwayList;
49 class RunwayGroup;
50 class FGRunwayPreference;
51
52 class FGSidStar;
53
54 class SGPropertyNode;
55
56 namespace flightgear {
57   class SID;
58   class STAR;
59   class Approach;
60   class Waypt;
61   class CommStation;
62
63   typedef std::vector<flightgear::SID*> SIDList;
64   typedef std::vector<STAR*> STARList;
65   typedef std::vector<Approach*> ApproachList;
66
67   typedef SGSharedPtr<Waypt> WayptRef;
68   typedef std::vector<WayptRef> WayptVec;
69
70   typedef SGSharedPtr<CommStation> CommStationRef;
71   typedef std::vector<CommStationRef> CommStationList;
72   typedef std::map<std::string, FGAirport*> AirportCache;
73 }
74
75 typedef SGSharedPtr<FGAirport> FGAirportRef;
76 typedef SGSharedPtr<FGRunwayBase> FGRunwayBaseRef;
77 typedef SGSharedPtr<FGRunway> FGRunwayRef;
78 typedef SGSharedPtr<FGHelipad> FGHelipadRef;
79 typedef SGSharedPtr<FGTaxiway> FGTaxiwayRef;
80 typedef SGSharedPtr<FGPavement> FGPavementRef;
81 typedef SGSharedPtr<FGParking> FGParkingRef;
82
83 typedef std::vector<FGRunwayRef> FGRunwayList;
84 typedef std::map<std::string, FGRunwayRef> FGRunwayMap;
85 typedef std::map<std::string, FGHelipadRef> FGHelipadMap;
86
87 typedef std::vector<FGTaxiwayRef> FGTaxiwayList;
88 typedef std::vector<FGPavementRef> FGPavementList;
89 typedef std::vector<FGParkingRef> FGParkingList;
90
91 typedef std::vector<FGTaxiSegment*>  FGTaxiSegmentVector;
92 typedef FGTaxiSegmentVector::iterator FGTaxiSegmentVectorIterator;
93
94 typedef SGSharedPtr<FGTaxiNode> FGTaxiNodeRef;
95 typedef std::vector<FGTaxiNodeRef> FGTaxiNodeVector;
96 typedef FGTaxiNodeVector::iterator FGTaxiNodeVectorIterator;
97 typedef std::map<int, FGTaxiNodeRef> IndexTaxiNodeMap;
98
99 typedef std::vector<Block> BlockList;
100 typedef BlockList::iterator BlockListIterator;
101
102 typedef std::vector<time_t> TimeVector;
103 typedef std::vector<time_t>::iterator TimeVectorIterator;
104
105 typedef std::vector<FGTaxiRoute> TaxiRouteVector;
106 typedef std::vector<FGTaxiRoute>::iterator TaxiRouteVectorIterator;
107
108 typedef std::vector<RunwayList> RunwayListVec;
109 typedef std::vector<RunwayList>::iterator RunwayListVectorIterator;
110 typedef std::vector<RunwayList>::const_iterator RunwayListVecConstIterator;
111
112 typedef std::vector<RunwayGroup> PreferenceList;
113 typedef std::vector<RunwayGroup>::iterator PreferenceListIterator;
114 typedef std::vector<RunwayGroup>::const_iterator PreferenceListConstIterator;
115
116 #endif /* AIRPORTS_FWD_HXX_ */