FlightGear next
NasalFlightPlan.cxx File Reference
#include "config.h"
#include <algorithm>
#include <cstring>
#include <optional>
#include "NasalFlightPlan.hxx"
#include "NasalPositioned.hxx"
#include <Airports/airport.hxx>
#include <Airports/dynamics.hxx>
#include <Airports/parking.hxx>
#include <Airports/runways.hxx>
#include <Autopilot/route_mgr.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <Navaids/FlightPlan.hxx>
#include <Navaids/NavDataCache.hxx>
#include <Navaids/airways.hxx>
#include <Navaids/fix.hxx>
#include <Navaids/navrecord.hxx>
#include <Navaids/procedure.hxx>
#include <Navaids/routePath.hxx>
#include <Navaids/waypoint.hxx>
#include <Scenery/scenery.hxx>
#include <Scripting/NasalSys.hxx>

Go to the source code of this file.

Classes

class  NasalFPDelegate
 
class  NasalFPDelegateFactory
 

Functions

static void wayptGhostDestroy (void *g)
 
static void legGhostDestroy (void *g)
 
static void routeBaseGhostDestroy (void *g)
 
static const char * wayptGhostGetMember (naContext c, void *g, naRef field, naRef *out)
 
static void waypointGhostSetMember (naContext c, void *g, naRef field, naRef value)
 
static const char * legGhostGetMember (naContext c, void *g, naRef field, naRef *out)
 
static void legGhostSetMember (naContext c, void *g, naRef field, naRef value)
 
static const char * flightplanGhostGetMember (naContext c, void *g, naRef field, naRef *out)
 
static void flightplanGhostSetMember (naContext c, void *g, naRef field, naRef value)
 
static const char * procedureGhostGetMember (naContext c, void *g, naRef field, naRef *out)
 
static const char * airwayGhostGetMember (naContext c, void *g, naRef field, naRef *out)
 
static void hashset (naContext c, naRef hash, const char *key, naRef val)
 
static naRef stringToNasal (naContext c, const std::string &s)
 
static bool convertToNum (naRef v, double &result)
 
static WayptFlag wayptFlagFromString (const char *s)
 
static naRef wayptFlagToNasal (naContext c, unsigned int flags)
 
static std::optional< Airway::LevelairwayLevelFromNasal (naRef na)
 
WayptwayptGhost (naRef r)
 
FlightPlan::LegfpLegGhost (naRef r)
 
ProcedureprocedureGhost (naRef r)
 
static FlightPlanflightplanGhost (naRef r)
 
static AirwayairwayGhost (naRef r)
 
naRef ghostForWaypt (naContext c, const Waypt *wpt)
 
naRef ghostForLeg (naContext c, const FlightPlan::Leg *leg)
 
naRef ghostForFlightPlan (naContext c, const FlightPlan *fp)
 
naRef ghostForProcedure (naContext c, const Procedure *proc)
 
naRef ghostForAirway (naContext c, const Airway *awy)
 
static naRef waypointNavaid (naContext c, Waypt *wpt)
 
static naRef waypointAirport (naContext c, Waypt *wpt)
 
static naRef waypointRunway (naContext c, Waypt *wpt)
 
static const char * waypointCommonGetMember (naContext c, Waypt *wpt, const char *fieldName, naRef *out)
 
static bool waypointCommonSetMember (naContext c, Waypt *wpt, const char *fieldName, naRef value)
 
static RouteRestriction routeRestrictionFromArg (naRef arg)
 
static RouteUnits routeUnitsFromArg (naRef arg)
 
naRef routeRestrictionToNasal (naContext c, RouteRestriction rr)
 
static naRef f_fpLeg_navaid (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_fpLeg_airport (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_fpLeg_runway (naContext c, naRef me, int argc, naRef *args)
 
static naRef procedureTpType (naContext c, ProcedureType ty)
 
static naRef procedureRadioType (naContext c, ProcedureType ty)
 
static naRef f_createFlightplan (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan (naContext c, naRef me, int argc, naRef *args)
 
void shutdownNasalFlightPlan ()
 
static naRef f_registerFPDelegate (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_unregisterFPDelegate (naContext c, naRef me, int argc, naRef *args)
 
static WayptRef wayptFromArg (naRef arg)
 
static naRef convertWayptVecToNasal (naContext c, const WayptVec &wps)
 
static naRef f_airwaySearch (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_findAirway (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_createWP (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_createWPFrom (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_createViaTo (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_createViaFromTo (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_createDiscontinuity (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_getWP (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_currentWP (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_nextWP (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_numWaypoints (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_numRemainingWaypoints (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_appendWP (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_insertWP (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_insertWPAfter (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_insertWaypoints (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_deleteWP (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_clearLegs (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_clearAll (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_clearWPType (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_clone (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_pathGeod (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_finish (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_activate (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_indexOfWp (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_save (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_parseICAORoute (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_flightplan_toICAORoute (naContext c, naRef me, int, naRef *)
 
static naRef f_flightplan_computeDuration (naContext c, naRef me, int, naRef *)
 
static naRef f_leg_setSpeed (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_leg_setAltitude (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_leg_altitude (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_leg_speed (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_leg_courseAndDistanceFrom (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_leg_path (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_procedure_transition (naContext c, naRef me, int argc, naRef *args)
 
static naRef approachRoute (Approach *app, naContext c, int argc, naRef *args)
 
static naRef f_procedure_route (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_airway_contains (naContext c, naRef me, int argc, naRef *args)
 
static naRef f_airway_viaWaypoints (naContext c, naRef me, int argc, naRef *args)
 
naRef initNasalFlightPlan (naRef globals, naContext c)
 

Variables

static naGhostType WayptGhostType
 
static naGhostType FPLegGhostType
 
static naGhostType FlightPlanGhostType
 
static naGhostType ProcedureGhostType
 
static naGhostType AirwayGhostType
 
static naRef flightplanPrototype
 
static naRef fpLegPrototype
 
static naRef procedurePrototype
 
static naRef airwayPrototype
 
static std::vector< FlightPlan::DelegateFactoryRefstatic_nasalDelegateFactories
 
struct { 
 
   const char *   name 
 
   naCFunction   func 
 
funcs [] 
 

Function Documentation

◆ airwayGhost()

static Airway * airwayGhost ( naRef r)
static

Definition at line 200 of file NasalFlightPlan.cxx.

◆ airwayGhostGetMember()

static const char * airwayGhostGetMember ( naContext c,
void * g,
naRef field,
naRef * out )
static

Definition at line 1068 of file NasalFlightPlan.cxx.

◆ airwayLevelFromNasal()

static std::optional< Airway::Level > airwayLevelFromNasal ( naRef na)
static

Definition at line 124 of file NasalFlightPlan.cxx.

◆ approachRoute()

static naRef approachRoute ( Approach * app,
naContext c,
int argc,
naRef * args )
static

Definition at line 2183 of file NasalFlightPlan.cxx.

◆ convertToNum()

static bool convertToNum ( naRef v,
double & result )
static

Definition at line 92 of file NasalFlightPlan.cxx.

◆ convertWayptVecToNasal()

static naRef convertWayptVecToNasal ( naContext c,
const WayptVec & wps )
static

Definition at line 1358 of file NasalFlightPlan.cxx.

◆ f_airway_contains()

static naRef f_airway_contains ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2250 of file NasalFlightPlan.cxx.

◆ f_airway_viaWaypoints()

static naRef f_airway_viaWaypoints ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2269 of file NasalFlightPlan.cxx.

◆ f_airwaySearch()

static naRef f_airwaySearch ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1367 of file NasalFlightPlan.cxx.

◆ f_createDiscontinuity()

static naRef f_createDiscontinuity ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1614 of file NasalFlightPlan.cxx.

◆ f_createFlightplan()

static naRef f_createFlightplan ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1099 of file NasalFlightPlan.cxx.

◆ f_createViaFromTo()

static naRef f_createViaFromTo ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1551 of file NasalFlightPlan.cxx.

◆ f_createViaTo()

static naRef f_createViaTo ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1493 of file NasalFlightPlan.cxx.

◆ f_createWP()

static naRef f_createWP ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1438 of file NasalFlightPlan.cxx.

◆ f_createWPFrom()

static naRef f_createWPFrom ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1463 of file NasalFlightPlan.cxx.

◆ f_findAirway()

static naRef f_findAirway ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1398 of file NasalFlightPlan.cxx.

◆ f_flightplan()

static naRef f_flightplan ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1129 of file NasalFlightPlan.cxx.

◆ f_flightplan_activate()

static naRef f_flightplan_activate ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1881 of file NasalFlightPlan.cxx.

◆ f_flightplan_appendWP()

static naRef f_flightplan_appendWP ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1692 of file NasalFlightPlan.cxx.

◆ f_flightplan_clearAll()

static naRef f_flightplan_clearAll ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1801 of file NasalFlightPlan.cxx.

◆ f_flightplan_clearLegs()

static naRef f_flightplan_clearLegs ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1790 of file NasalFlightPlan.cxx.

◆ f_flightplan_clearWPType()

static naRef f_flightplan_clearWPType ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1813 of file NasalFlightPlan.cxx.

◆ f_flightplan_clone()

static naRef f_flightplan_clone ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1833 of file NasalFlightPlan.cxx.

◆ f_flightplan_computeDuration()

static naRef f_flightplan_computeDuration ( naContext c,
naRef me,
int ,
naRef *  )
static

Definition at line 1973 of file NasalFlightPlan.cxx.

◆ f_flightplan_currentWP()

static naRef f_flightplan_currentWP ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1640 of file NasalFlightPlan.cxx.

◆ f_flightplan_deleteWP()

static naRef f_flightplan_deleteWP ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1774 of file NasalFlightPlan.cxx.

◆ f_flightplan_finish()

static naRef f_flightplan_finish ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1868 of file NasalFlightPlan.cxx.

◆ f_flightplan_getWP()

static naRef f_flightplan_getWP ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1619 of file NasalFlightPlan.cxx.

◆ f_flightplan_indexOfWp()

static naRef f_flightplan_indexOfWp ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1897 of file NasalFlightPlan.cxx.

◆ f_flightplan_insertWaypoints()

static naRef f_flightplan_insertWaypoints ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1739 of file NasalFlightPlan.cxx.

◆ f_flightplan_insertWP()

static naRef f_flightplan_insertWP ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1705 of file NasalFlightPlan.cxx.

◆ f_flightplan_insertWPAfter()

static naRef f_flightplan_insertWPAfter ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1722 of file NasalFlightPlan.cxx.

◆ f_flightplan_nextWP()

static naRef f_flightplan_nextWP ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1659 of file NasalFlightPlan.cxx.

◆ f_flightplan_numRemainingWaypoints()

static naRef f_flightplan_numRemainingWaypoints ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1677 of file NasalFlightPlan.cxx.

◆ f_flightplan_numWaypoints()

static naRef f_flightplan_numWaypoints ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1668 of file NasalFlightPlan.cxx.

◆ f_flightplan_parseICAORoute()

static naRef f_flightplan_parseICAORoute ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1948 of file NasalFlightPlan.cxx.

◆ f_flightplan_pathGeod()

static naRef f_flightplan_pathGeod ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1844 of file NasalFlightPlan.cxx.

◆ f_flightplan_save()

static naRef f_flightplan_save ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1927 of file NasalFlightPlan.cxx.

◆ f_flightplan_toICAORoute()

static naRef f_flightplan_toICAORoute ( naContext c,
naRef me,
int ,
naRef *  )
static

Definition at line 1963 of file NasalFlightPlan.cxx.

◆ f_fpLeg_airport()

static naRef f_fpLeg_airport ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 506 of file NasalFlightPlan.cxx.

◆ f_fpLeg_navaid()

static naRef f_fpLeg_navaid ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 493 of file NasalFlightPlan.cxx.

◆ f_fpLeg_runway()

static naRef f_fpLeg_runway ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 519 of file NasalFlightPlan.cxx.

◆ f_leg_altitude()

static naRef f_leg_altitude ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2078 of file NasalFlightPlan.cxx.

◆ f_leg_courseAndDistanceFrom()

static naRef f_leg_courseAndDistanceFrom ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2115 of file NasalFlightPlan.cxx.

◆ f_leg_path()

static naRef f_leg_path ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2136 of file NasalFlightPlan.cxx.

◆ f_leg_setAltitude()

static naRef f_leg_setAltitude ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2019 of file NasalFlightPlan.cxx.

◆ f_leg_setSpeed()

static naRef f_leg_setSpeed ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1984 of file NasalFlightPlan.cxx.

◆ f_leg_speed()

static naRef f_leg_speed ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2100 of file NasalFlightPlan.cxx.

◆ f_procedure_route()

static naRef f_procedure_route ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2214 of file NasalFlightPlan.cxx.

◆ f_procedure_transition()

static naRef f_procedure_transition ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 2158 of file NasalFlightPlan.cxx.

◆ f_registerFPDelegate()

static naRef f_registerFPDelegate ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1287 of file NasalFlightPlan.cxx.

◆ f_unregisterFPDelegate()

static naRef f_unregisterFPDelegate ( naContext c,
naRef me,
int argc,
naRef * args )
static

Definition at line 1311 of file NasalFlightPlan.cxx.

◆ flightplanGhost()

static FlightPlan * flightplanGhost ( naRef r)
static

Definition at line 193 of file NasalFlightPlan.cxx.

◆ flightplanGhostGetMember()

static const char * flightplanGhostGetMember ( naContext c,
void * g,
naRef field,
naRef * out )
static

Definition at line 615 of file NasalFlightPlan.cxx.

◆ flightplanGhostSetMember()

static void flightplanGhostSetMember ( naContext c,
void * g,
naRef field,
naRef value )
static

Definition at line 691 of file NasalFlightPlan.cxx.

◆ fpLegGhost()

FlightPlan::Leg * fpLegGhost ( naRef r)

Definition at line 179 of file NasalFlightPlan.cxx.

◆ ghostForAirway()

naRef ghostForAirway ( naContext c,
const Airway * awy )

Definition at line 259 of file NasalFlightPlan.cxx.

◆ ghostForFlightPlan()

naRef ghostForFlightPlan ( naContext c,
const FlightPlan * fp )

Definition at line 239 of file NasalFlightPlan.cxx.

◆ ghostForLeg()

naRef ghostForLeg ( naContext c,
const FlightPlan::Leg * leg )

Definition at line 229 of file NasalFlightPlan.cxx.

◆ ghostForProcedure()

naRef ghostForProcedure ( naContext c,
const Procedure * proc )

Definition at line 249 of file NasalFlightPlan.cxx.

◆ ghostForWaypt()

naRef ghostForWaypt ( naContext c,
const Waypt * wpt )

Definition at line 219 of file NasalFlightPlan.cxx.

◆ hashset()

static void hashset ( naContext c,
naRef hash,
const char * key,
naRef val )
static

Definition at line 78 of file NasalFlightPlan.cxx.

◆ initNasalFlightPlan()

naRef initNasalFlightPlan ( naRef globals,
naContext c )

Definition at line 2331 of file NasalFlightPlan.cxx.

◆ legGhostDestroy()

static void legGhostDestroy ( void * g)
static

Definition at line 171 of file NasalFlightPlan.cxx.

◆ legGhostGetMember()

static const char * legGhostGetMember ( naContext c,
void * g,
naRef field,
naRef * out )
static

Definition at line 531 of file NasalFlightPlan.cxx.

◆ legGhostSetMember()

static void legGhostSetMember ( naContext c,
void * g,
naRef field,
naRef value )
static

Definition at line 589 of file NasalFlightPlan.cxx.

◆ procedureGhost()

Procedure * procedureGhost ( naRef r)

Definition at line 186 of file NasalFlightPlan.cxx.

◆ procedureGhostGetMember()

static const char * procedureGhostGetMember ( naContext c,
void * g,
naRef field,
naRef * out )
static

Definition at line 1022 of file NasalFlightPlan.cxx.

◆ procedureRadioType()

static naRef procedureRadioType ( naContext c,
ProcedureType ty )
static

Definition at line 1010 of file NasalFlightPlan.cxx.

◆ procedureTpType()

static naRef procedureTpType ( naContext c,
ProcedureType ty )
static

Definition at line 993 of file NasalFlightPlan.cxx.

◆ routeBaseGhostDestroy()

static void routeBaseGhostDestroy ( void * g)
static

Definition at line 207 of file NasalFlightPlan.cxx.

◆ routeRestrictionFromArg()

static RouteRestriction routeRestrictionFromArg ( naRef arg)
static

Definition at line 440 of file NasalFlightPlan.cxx.

◆ routeRestrictionToNasal()

naRef routeRestrictionToNasal ( naContext c,
RouteRestriction rr )

Definition at line 475 of file NasalFlightPlan.cxx.

◆ routeUnitsFromArg()

static RouteUnits routeUnitsFromArg ( naRef arg)
static

Definition at line 458 of file NasalFlightPlan.cxx.

◆ shutdownNasalFlightPlan()

void shutdownNasalFlightPlan ( )

Definition at line 1279 of file NasalFlightPlan.cxx.

◆ stringToNasal()

static naRef stringToNasal ( naContext c,
const std::string & s )
static

Definition at line 85 of file NasalFlightPlan.cxx.

◆ waypointAirport()

static naRef waypointAirport ( naContext c,
Waypt * wpt )
static

Definition at line 282 of file NasalFlightPlan.cxx.

◆ waypointCommonGetMember()

static const char * waypointCommonGetMember ( naContext c,
Waypt * wpt,
const char * fieldName,
naRef * out )
static

Definition at line 307 of file NasalFlightPlan.cxx.

◆ waypointCommonSetMember()

static bool waypointCommonSetMember ( naContext c,
Waypt * wpt,
const char * fieldName,
naRef value )
static

Definition at line 394 of file NasalFlightPlan.cxx.

◆ waypointGhostSetMember()

static void waypointGhostSetMember ( naContext c,
void * g,
naRef field,
naRef value )
static

Definition at line 582 of file NasalFlightPlan.cxx.

◆ waypointNavaid()

static naRef waypointNavaid ( naContext c,
Waypt * wpt )
static

Definition at line 270 of file NasalFlightPlan.cxx.

◆ waypointRunway()

static naRef waypointRunway ( naContext c,
Waypt * wpt )
static

Definition at line 296 of file NasalFlightPlan.cxx.

◆ wayptFlagFromString()

static WayptFlag wayptFlagFromString ( const char * s)
static

Definition at line 103 of file NasalFlightPlan.cxx.

◆ wayptFlagToNasal()

static naRef wayptFlagToNasal ( naContext c,
unsigned int flags )
static

Definition at line 114 of file NasalFlightPlan.cxx.

◆ wayptFromArg()

static WayptRef wayptFromArg ( naRef arg)
static

Definition at line 1335 of file NasalFlightPlan.cxx.

◆ wayptGhost()

Waypt * wayptGhost ( naRef r)

Definition at line 151 of file NasalFlightPlan.cxx.

◆ wayptGhostDestroy()

static void wayptGhostDestroy ( void * g)
static

Definition at line 164 of file NasalFlightPlan.cxx.

◆ wayptGhostGetMember()

static const char * wayptGhostGetMember ( naContext c,
void * g,
naRef field,
naRef * out )
static

Definition at line 433 of file NasalFlightPlan.cxx.

Variable Documentation

◆ AirwayGhostType

naGhostType AirwayGhostType
static
Initial value:
"airway",
0}
static void routeBaseGhostDestroy(void *g)
static const char * airwayGhostGetMember(naContext c, void *g, naRef field, naRef *out)

Definition at line 73 of file NasalFlightPlan.cxx.

◆ airwayPrototype

naRef airwayPrototype
static

Definition at line 217 of file NasalFlightPlan.cxx.

◆ FlightPlanGhostType

naGhostType FlightPlanGhostType
static
Initial value:
"flightplan",
static void flightplanGhostSetMember(naContext c, void *g, naRef field, naRef value)
static const char * flightplanGhostGetMember(naContext c, void *g, naRef field, naRef *out)

Definition at line 61 of file NasalFlightPlan.cxx.

◆ flightplanPrototype

naRef flightplanPrototype
static

Definition at line 214 of file NasalFlightPlan.cxx.

◆ FPLegGhostType

naGhostType FPLegGhostType
static
Initial value:
"flightplan-leg",
static void legGhostSetMember(naContext c, void *g, naRef field, naRef value)
static const char * legGhostGetMember(naContext c, void *g, naRef field, naRef *out)
static void legGhostDestroy(void *g)

Definition at line 53 of file NasalFlightPlan.cxx.

◆ fpLegPrototype

naRef fpLegPrototype
static

Definition at line 215 of file NasalFlightPlan.cxx.

◆ func

naCFunction func

Definition at line 2315 of file NasalFlightPlan.cxx.

◆ [struct]

struct { ... } funcs[]
Initial value:
= {
{"flightplan", f_flightplan},
{"createFlightplan", f_createFlightplan},
{"registerFlightPlanDelegate", f_registerFPDelegate},
{"unregisterFlightPlanDelegate", f_unregisterFPDelegate},
{"createWP", f_createWP},
{"createWPFrom", f_createWPFrom},
{"createViaTo", f_createViaTo},
{"createViaFromTo", f_createViaFromTo},
{"createDiscontinuity", f_createDiscontinuity},
{"airwaysRoute", f_airwaySearch},
{"airway", f_findAirway},
{nullptr, nullptr}}
static naRef f_createDiscontinuity(naContext c, naRef me, int argc, naRef *args)
static naRef f_createWP(naContext c, naRef me, int argc, naRef *args)
static naRef f_flightplan(naContext c, naRef me, int argc, naRef *args)
static naRef f_airwaySearch(naContext c, naRef me, int argc, naRef *args)
static naRef f_createWPFrom(naContext c, naRef me, int argc, naRef *args)
static naRef f_registerFPDelegate(naContext c, naRef me, int argc, naRef *args)
static naRef f_createViaFromTo(naContext c, naRef me, int argc, naRef *args)
static naRef f_findAirway(naContext c, naRef me, int argc, naRef *args)
static naRef f_createViaTo(naContext c, naRef me, int argc, naRef *args)
static naRef f_unregisterFPDelegate(naContext c, naRef me, int argc, naRef *args)
static naRef f_createFlightplan(naContext c, naRef me, int argc, naRef *args)

◆ name

const char* name

Definition at line 2314 of file NasalFlightPlan.cxx.

◆ ProcedureGhostType

naGhostType ProcedureGhostType
static
Initial value:
"procedure",
0}
static const char * procedureGhostGetMember(naContext c, void *g, naRef field, naRef *out)

Definition at line 67 of file NasalFlightPlan.cxx.

◆ procedurePrototype

naRef procedurePrototype
static

Definition at line 216 of file NasalFlightPlan.cxx.

◆ static_nasalDelegateFactories

std::vector<FlightPlan::DelegateFactoryRef> static_nasalDelegateFactories
static

Definition at line 1277 of file NasalFlightPlan.cxx.

◆ WayptGhostType

naGhostType WayptGhostType
static
Initial value:
"waypoint",
static void waypointGhostSetMember(naContext c, void *g, naRef field, naRef value)
static void wayptGhostDestroy(void *g)
static const char * wayptGhostGetMember(naContext c, void *g, naRef field, naRef *out)

Definition at line 45 of file NasalFlightPlan.cxx.