36class AdjacentWaypoint;
52 std::string
ident()
const override
64 {
return _topAltitudeFt; }
67 {
return _bottomAltitudeFt; }
125 void addEdge(
int aWay,
const SGGeod& aStartPos,
126 const std::string& aStartIdent,
127 const SGGeod& aEndPos,
const std::string& aEndIdent);
129 int findAirway(
const std::string& aName);
132 bool exactTo,
bool exactFrom);
158 typedef std::map<PositionedID, bool> NetworkMembershipDict;
159 mutable NetworkMembershipDict _inNetworkCache;
169 Airway(
const std::string& aIdent,
const Level level,
int dbId,
int aTop,
int aBottom);
171 void loadWaypoints()
const;
173 WayptVec::const_iterator find(
WayptRef wpt)
const;
178 const std::string _ident;
183 int _bottomAltitudeFt;
SGSharedPtr< FGPositioned > FGPositionedRef
Track a network of airways.
std::pair< FGPositionedRef, bool > findClosestNode(const SGGeod &aGeod)
Overloaded version working with a raw SGGeod.
FGPositionedRef findNodeByIdent(const std::string &ident, const SGGeod &near) const
friend class InAirwayFilter
bool route(WayptRef aFrom, WayptRef aTo, WayptVec &aPath)
Principal routing algorithm.
static Network * lowLevel()
WayptVec via(const WayptRef &from, const WayptRef &to) const
@ HighLevel
Victor airways.
bool containsNavaid(const FGPositionedRef &navaid) const
WayptRef findEnroute(const std::string &aIdent) const
double topAltitudeFt() const
bool canVia(const WayptRef &from, const WayptRef &to) const
static void loadAWYDat(const SGPath &path)
static AirwayRef findByIdentAndNavaid(const std::string &aIdent, const FGPositionedRef nav)
Find an airway by ident, and containing a particula rnavaid/fix.
static Network * highLevel()
std::string ident() const override
double bottomAltitudeFt() const
static AirwayRef findByIdent(const std::string &aIdent, Level level)
friend class NavDataCache
static AirwayRef loadByCacheId(int cacheId)
static AirwayRef findByIdentAndVia(const std::string &aIdent, const WayptRef &from, const WayptRef &to)
Find the airway based on its ident.
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
SGSharedPtr< FGPositioned > FGPositionedRef
SGSharedPtr< Waypt > WayptRef
SGSharedPtr< Airway > AirwayRef
std::vector< WayptRef > WayptVec