Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "User:Bugman/subsystems"

From FlightGear wiki
Jump to: navigation, search
(All subsystems: Update for the subsystem implementation file listing output.)
(Tracking down subsystems: Update for the grep output.)
 
Line 2,435: Line 2,435:
 
/flightgear/src/flightgear-flightgear/src/Environment/environment_mgr.hxx:class SGSky;
 
/flightgear/src/flightgear-flightgear/src/Environment/environment_mgr.hxx:class SGSky;
 
/flightgear/src/flightgear-flightgear/src/Environment/environment_mgr.hxx:    SGSky* _sky;
 
/flightgear/src/flightgear-flightgear/src/Environment/environment_mgr.hxx:    SGSky* _sky;
/flightgear/src/flightgear-flightgear/src/Environment/precipitation_mgr.cxx:        {"SGSky", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}
 
 
/flightgear/src/flightgear-flightgear/src/Environment/precipitation_mgr.cxx:    SGSky* thesky = globals->get_renderer()->getSky();
 
/flightgear/src/flightgear-flightgear/src/Environment/precipitation_mgr.cxx:    SGSky* thesky = globals->get_renderer()->getSky();
/flightgear/src/flightgear-flightgear/src/Scenery/scenery.cxx:        {"SGSky", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}
+
/flightgear/src/flightgear-flightgear/src/Environment/precipitation_mgr.cxx:    {"SGSky", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}{{cbr}});
 +
/flightgear/src/flightgear-flightgear/src/Scenery/scenery.cxx:        {"SGSky", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}{{cbr}});
 
/flightgear/src/flightgear-flightgear/src/Time/light.cxx:    SGSky* thesky = globals->get_renderer()->getSky();
 
/flightgear/src/flightgear-flightgear/src/Time/light.cxx:    SGSky* thesky = globals->get_renderer()->getSky();
 
/flightgear/src/flightgear-flightgear/src/Time/light.cxx:    SGSky* thesky = globals->get_renderer()->getSky();
 
/flightgear/src/flightgear-flightgear/src/Time/light.cxx:    SGSky* thesky = globals->get_renderer()->getSky();
/flightgear/src/flightgear-flightgear/src/Time/light.hxx:            {"SGSky", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}
 
 
}}
 
}}
  
Line 2,449: Line 2,448:
 
| script =  
 
| script =  
 
$ ./find_subsystems.py --classes 2> /dev/null {{!}} xargs -I{} grep -nrI "new.*\<{}\>" src {{!}} sort -u
 
$ ./find_subsystems.py --classes 2> /dev/null {{!}} xargs -I{} grep -nrI "new.*\<{}\>" src {{!}} sort -u
src/Autopilot/autopilot.cxx:137:      componentForge["pid-controller"]      = new CreateAndConfigureFunctor<PIDController,Component>();
+
src/Autopilot/autopilot.cxx:134:      componentForge["pid-controller"]      = new CreateAndConfigureFunctor<PIDController,Component>();
src/Autopilot/autopilot.cxx:138:      componentForge["pi-simple-controller"] = new CreateAndConfigureFunctor<PISimpleController,Component>();
+
src/Autopilot/autopilot.cxx:135:      componentForge["pi-simple-controller"] = new CreateAndConfigureFunctor<PISimpleController,Component>();
src/Autopilot/autopilot.cxx:139:      componentForge["predict-simple"]      = new CreateAndConfigureFunctor<Predictor,Component>();
+
src/Autopilot/autopilot.cxx:136:      componentForge["predict-simple"]      = new CreateAndConfigureFunctor<Predictor,Component>();
src/Autopilot/autopilot.cxx:140:      componentForge["filter"]              = new CreateAndConfigureFunctor<DigitalFilter,Component>();
+
src/Autopilot/autopilot.cxx:137:      componentForge["filter"]              = new CreateAndConfigureFunctor<DigitalFilter,Component>();
src/Autopilot/autopilot.cxx:141:      componentForge["logic"]                = new CreateAndConfigureFunctor<Logic,Component>();
+
src/Autopilot/autopilot.cxx:138:      componentForge["logic"]                = new CreateAndConfigureFunctor<Logic,Component>();
src/Autopilot/autopilot.cxx:142:      componentForge["flipflop"]            = new CreateAndConfigureFunctor<FlipFlop,Component>();
+
src/Autopilot/autopilot.cxx:139:      componentForge["flipflop"]            = new CreateAndConfigureFunctor<FlipFlop,Component>();
src/Autopilot/autopilot.cxx:90:    return new StateMachineComponent(cfg, prop_root);
+
src/Autopilot/autopilot.cxx:87:    return new StateMachineComponent(cfg, prop_root);
src/Autopilot/autopilotgroup.cxx:228:  return new FGXMLAutopilotGroupImplementation(nodeName);
+
src/Autopilot/autopilotgroup.cxx:229:  return new FGXMLAutopilotGroupImplementation(nodeName);
src/Autopilot/autopilotgroup.cxx:80:  Autopilot* ap = new Autopilot(apNode, config);
+
src/Autopilot/autopilotgroup.cxx:82:  Autopilot* ap = new Autopilot(apNode, config);
src/Cockpit/cockpitDisplayManager.cxx:105:            set_subsystem( id, new wxRadarBg ( node ) );
+
src/Cockpit/cockpitDisplayManager.cxx:100:            set_subsystem( id, new wxRadarBg ( node ) );
src/Cockpit/cockpitDisplayManager.cxx:108:            set_subsystem( id, new GroundRadar( node ) );
+
src/Cockpit/cockpitDisplayManager.cxx:103:            set_subsystem( id, new GroundRadar( node ) );
src/Cockpit/cockpitDisplayManager.cxx:111:            set_subsystem( id, new agRadar( node ) );
+
src/Cockpit/cockpitDisplayManager.cxx:106:            set_subsystem( id, new agRadar( node ) );
src/Cockpit/cockpitDisplayManager.cxx:114:            set_subsystem( id, new NavDisplay( node ) );
+
src/Cockpit/cockpitDisplayManager.cxx:109:            set_subsystem( id, new NavDisplay( node ) );
src/Cockpit/panel_io.cxx:658:  FGPanel * panel = new FGPanel();
+
src/Cockpit/panel_io.cxx:657:  FGPanel * panel = new FGPanel();
src/Cockpit/panel_io.cxx:784:                    gps = new KLN89(instrument);
+
src/Environment/environment_ctrl.cxx:349:    return new LayerInterpolateControllerImplementation( rootNode );
src/Environment/environment_ctrl.cxx:356:    return new LayerInterpolateControllerImplementation( rootNode );
+
src/Environment/environment_mgr.cxx:93:  set_subsystem("precipitation", new FGPrecipitationMgr);
src/Environment/environment_mgr.cxx:101:  set_subsystem("precipitation", new FGPrecipitationMgr);
+
src/Environment/environment_mgr.cxx:96:  set_subsystem("ridgelift", new FGRidgeLift);
src/Environment/environment_mgr.cxx:106:  set_subsystem("ridgelift", new FGRidgeLift);
+
src/Environment/environment_mgr.cxx:98:  set_subsystem("magvar", new FGMagVarManager);
src/Environment/environment_mgr.cxx:108:  set_subsystem("magvar", new FGMagVarManager);
+
src/Environment/realwx_ctrl.cxx:515:  return new NoaaMetarRealWxController( rootNode );
src/Environment/realwx_ctrl.cxx:505:  return new NoaaMetarRealWxController( rootNode );
+
 
src/Environment/terrainsampler.cxx:381:        set_subsystem( areaSubsystemName(i), new AreaSampler( areaNodes[i] ) );
 
src/Environment/terrainsampler.cxx:381:        set_subsystem( areaSubsystemName(i), new AreaSampler( areaNodes[i] ) );
src/Environment/terrainsampler.cxx:431:    return new TerrainSamplerImplementation( rootNode );
+
src/Environment/terrainsampler.cxx:430:    return new TerrainSamplerImplementation( rootNode );
src/FDM/fdm_shell.cxx:285:    _impl = new FGUFO( dt );
+
src/FDM/fdm_shell.cxx:278:    _impl = new FGUFO( dt );
src/FDM/fdm_shell.cxx:289:    _impl = new FGNullFDM( dt );
+
src/FDM/fdm_shell.cxx:282:    _impl = new FGNullFDM( dt );
src/FDM/fdm_shell.cxx:322:    _impl = new FGExternalNet( dt, host, port1, port2, port3 );
+
src/FDM/fdm_shell.cxx:315:    _impl = new FGExternalNet( dt, host, port1, port2, port3 );
src/FDM/fdm_shell.cxx:325:    // /* old */ _impl = new FGExternalPipe( dt, pipe_path );
+
src/FDM/fdm_shell.cxx:318:    // /* old */ _impl = new FGExternalPipe( dt, pipe_path );
src/FDM/fdm_shell.cxx:339:    _impl = new FGExternalPipe( dt, pipe_path, pipe_protocol );
+
src/FDM/fdm_shell.cxx:332:    _impl = new FGExternalPipe( dt, pipe_path, pipe_protocol );
src/FDM/fdm_shell.cxx:341:    _impl = new FGNullFDM( dt );
+
src/FDM/fdm_shell.cxx:334:    _impl = new FGNullFDM( dt );
src/FDM/fdm_shell.cxx:345:        _impl = new FGLaRCsim( dt );
+
src/FDM/fdm_shell.cxx:338:        _impl = new FGLaRCsim( dt );
src/FDM/fdm_shell.cxx:352:        _impl = new FGJSBsim( dt );
+
src/FDM/fdm_shell.cxx:345:        _impl = new FGJSBsim( dt );
src/FDM/fdm_shell.cxx:359:        _impl = new FGADA( dt );
+
src/FDM/fdm_shell.cxx:352:        _impl = new FGADA( dt );
src/FDM/fdm_shell.cxx:361:        _impl = new FGACMS( dt );
+
src/FDM/fdm_shell.cxx:354:        _impl = new FGACMS( dt );
src/FDM/fdm_shell.cxx:363:        _impl = new FGBalloonSim( dt );
+
src/FDM/fdm_shell.cxx:356:        _impl = new FGBalloonSim( dt );
src/FDM/fdm_shell.cxx:365:        _impl = new FGMagicCarpet( dt );
+
src/FDM/fdm_shell.cxx:358:        _impl = new FGMagicCarpet( dt );
src/FDM/fdm_shell.cxx:367://      _impl = new FGAISim( dt );
+
src/FDM/fdm_shell.cxx:360://      _impl = new FGAISim( dt );
src/FDM/fdm_shell.cxx:377:        _impl = new YASim( dt );
+
src/FDM/fdm_shell.cxx:370:        _impl = new YASim( dt );
src/FDM/JSBSim/FGFDMExec.cpp:238:  Models[eInput]            = new FGInput(this);
+
src/FDM/JSBSim/FGFDMExec.cpp:230:  Models[eInput]            = new FGInput(this);
src/FDM/JSBSim/models/FGInput.cpp:84:  // are not intended to create new properties. For that reason, FGInput
+
src/FDM/JSBSim/models/FGInput.cpp:79:  // are not intended to create new properties. For that reason, FGInput
 
src/FDM/YASim/Airplane.cpp:802:                // For new YASim, the solver drag factor is only applied to
 
src/FDM/YASim/Airplane.cpp:802:                // For new YASim, the solver drag factor is only applied to
src/GUI/QtLauncher.cxx:409:    FGHTTPClient* http = globals->add_new_subsystem<FGHTTPClient>();
+
src/Input/input.cxx:65:    set_subsystem( FGMouseInput::staticSubsystemClassId(), new FGMouseInput() );
src/Input/input.cxx:68:    set_subsystem( FGMouseInput::staticSubsystemClassId(), new FGMouseInput() );
+
src/Input/input.cxx:71:    set_subsystem( "input-keyboard", new FGKeyboardInput() );
src/Input/input.cxx:74:    set_subsystem( "input-keyboard", new FGKeyboardInput() );
+
src/Input/input.cxx:78:    set_subsystem( "input-joystick", new FGJoystickInput() );
src/Input/input.cxx:81:    set_subsystem( "input-joystick", new FGJoystickInput() );
+
src/Input/input.cxx:94:    set_subsystem( "input-event-hid", new FGHIDEventInput() );
src/Input/input.cxx:97:    set_subsystem( "input-event-hid", new FGHIDEventInput() );
+
src/Main/fg_init.cxx:812:    mgr->add("performance-mon", new SGPerformanceMonitor(mgr, fgGetNode("/sim/performance-monitor", true)));
src/Instrumentation/commradio.cxx:733:  return new CommRadioImpl(rootNode);
+
src/Main/globals.cxx:147:    subsystem_mgr( new SGSubsystemMgr ),
src/Instrumentation/dclgps.cxx:4:// up between current FG code and new KLN89-specific code and removed.
+
src/Main/globals.cxx:148:    event_mgr( new SGEventMgr ),
src/Instrumentation/dclgps.hxx:4:// up between current FG code and new KLN89-specific code and removed.
+
src/Network/http/httpd.cxx:642:  return new MongooseHttpd(configNode);
src/Instrumentation/instrument_mgr.cxx:125:            set_subsystem( id, new ADF( node ), 0.15 );
+
src/Instrumentation/instrument_mgr.cxx:128:            set_subsystem( id, new AirspeedIndicator( node ) );
+
src/Instrumentation/instrument_mgr.cxx:131:            set_subsystem( id, new Altimeter( node, "altimeter" ) );
+
src/Instrumentation/instrument_mgr.cxx:134:            set_subsystem( id, new AttitudeIndicator( node ) );
+
src/Instrumentation/instrument_mgr.cxx:137:            set_subsystem( id, new Clock( node ), 0.25 );
+
src/Instrumentation/instrument_mgr.cxx:140:            set_subsystem( id, new DME( node ), 1.0 );
+
src/Instrumentation/instrument_mgr.cxx:143:            set_subsystem( id, new Altimeter( node, "encoder" ), 0.15 );
+
src/Instrumentation/instrument_mgr.cxx:150:            set_subsystem( id, new GPS( node, true /* default GPS mode */ ) );
+
src/Instrumentation/instrument_mgr.cxx:153:            set_subsystem( id, new GSDI( node ) );
+
src/Instrumentation/instrument_mgr.cxx:156:            set_subsystem( id, new HeadingIndicator( node ) );
+
src/Instrumentation/instrument_mgr.cxx:159:            set_subsystem( id, new HeadingIndicatorFG( node ) );
+
src/Instrumentation/instrument_mgr.cxx:162:            set_subsystem( id, new HeadingIndicatorDG( node ) );
+
src/Instrumentation/instrument_mgr.cxx:165:            set_subsystem( id, new FGKR_87( node ) );
+
src/Instrumentation/instrument_mgr.cxx:168:            set_subsystem( id, new MagCompass( node ) );
+
src/Instrumentation/instrument_mgr.cxx:171:            set_subsystem( id, new FGMarkerBeacon( node ), 0.2 );
+
src/Instrumentation/instrument_mgr.cxx:180:            set_subsystem( id, new SlipSkidBall( node ), 0.03 );
+
src/Instrumentation/instrument_mgr.cxx:189:            set_subsystem( id, new Transponder( node ), 0.2 );
+
src/Instrumentation/instrument_mgr.cxx:192:            set_subsystem( id, new TurnIndicator( node ) );
+
src/Instrumentation/instrument_mgr.cxx:195:            set_subsystem( id, new VerticalSpeedIndicator( node ) );
+
src/Instrumentation/instrument_mgr.cxx:198:            set_subsystem( id, new InstVerticalSpeedIndicator( node ) );
+
src/Instrumentation/instrument_mgr.cxx:201:            set_subsystem( id, new TACAN( node ), 0.2 );
+
src/Instrumentation/instrument_mgr.cxx:204:            set_subsystem( id, new MK_VIII( node ), 0.2);
+
src/Instrumentation/instrument_mgr.cxx:207:            set_subsystem( id, new MasterReferenceGyro( node ) );
+
src/Instrumentation/instrument_mgr.cxx:219:            set_subsystem( id, new RadarAltimeter( node ) );
+
src/Instrumentation/instrument_mgr.cxx:222:            set_subsystem( id, new TCAS( node ), 0.2);
+
src/Instrumentation/instrument_mgr.cxx:97:    set_subsystem("gps[0]", new GPS(nd, true /* default GPS mode */));
+
src/Instrumentation/newnavradio.cxx:981:        return new NavRadioImpl( rootNode );
+
src/Instrumentation/newnavradio.cxx:983:    return new FGNavRadio( rootNode );
+
src/Instrumentation/testgps.cxx:115:  FGRouteMgr* rm = new FGRouteMgr;
+
src/Instrumentation/testgps.cxx:118: // FGEnvironmentMgr* envMgr = new FGEnvironmentMgr;
+
src/Instrumentation/testgps.cxx:127:  GPS* gps = new GPS(nd);
+
src/Main/fg_init.cxx:778:    globals->add_new_subsystem<FGSoundManager>(SGSubsystemMgr::SOUND);
+
src/Main/fg_init.cxx:791:    globals->add_subsystem("prop-interpolator", new FGInterpolator, SGSubsystemMgr::INIT);
+
src/Main/fg_init.cxx:797:    globals->add_subsystem("properties", new FGProperties);
+
src/Main/fg_init.cxx:803:    globals->add_new_subsystem<flightgear::AirportDynamicsManager>();
+
src/Main/fg_init.cxx:809:            new SGPerformanceMonitor(globals->get_subsystem_mgr(),
+
src/Main/fg_init.cxx:825:        globals->add_new_subsystem<FGHTTPClient>();
+
src/Main/fg_init.cxx:827:    globals->add_new_subsystem<FGDNSClient>();
+
src/Main/fg_init.cxx:833:    globals->add_subsystem("flight", new FDMShell, SGSubsystemMgr::FDM);
+
src/Main/fg_init.cxx:840:    globals->add_subsystem("environment", new FGEnvironmentMgr);
+
src/Main/fg_init.cxx:841:    globals->add_new_subsystem<Ephemeris>();
+
src/Main/fg_init.cxx:848:    globals->add_subsystem("systems", new FGSystemMgr, SGSubsystemMgr::FDM);
+
src/Main/fg_init.cxx:849:    globals->add_subsystem("instrumentation", new FGInstrumentMgr, SGSubsystemMgr::FDM);
+
src/Main/fg_init.cxx:850:    globals->add_subsystem("hud", new HUD, SGSubsystemMgr::DISPLAY);
+
src/Main/fg_init.cxx:851:    globals->add_subsystem("cockpit-displays", new flightgear::CockpitDisplayManager, SGSubsystemMgr::DISPLAY);
+
src/Main/fg_init.cxx:859:    globals->add_new_subsystem<FGRouteMgr>();
+
src/Main/fg_init.cxx:864:    globals->add_subsystem( "io", new FGIO );
+
src/Main/fg_init.cxx:870:    globals->add_subsystem("logger", new FGLogger);
+
src/Main/fg_init.cxx:876:    globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT);
+
src/Main/fg_init.cxx:889:    globals->add_subsystem("Canvas", new CanvasMgr, SGSubsystemMgr::DISPLAY);
+
src/Main/fg_init.cxx:890:    globals->add_subsystem("CanvasGUI", new GUIMgr, SGSubsystemMgr::DISPLAY);
+
src/Main/fg_init.cxx:896:    globals->add_new_subsystem<PerformanceDB>(SGSubsystemMgr::POST_FDM);
+
src/Main/fg_init.cxx:897:    globals->add_subsystem("ATC", new FGATCManager, SGSubsystemMgr::POST_FDM);
+
src/Main/fg_init.cxx:903:    globals->add_subsystem("mp", new FGMultiplayMgr, SGSubsystemMgr::POST_FDM);
+
src/Main/fg_init.cxx:909:    globals->add_subsystem("ai-model", new FGAIManager, SGSubsystemMgr::POST_FDM);
+
src/Main/fg_init.cxx:910:    globals->add_subsystem("submodel-mgr", new FGSubmodelMgr, SGSubsystemMgr::POST_FDM);
+
src/Main/fg_init.cxx:916:    globals->add_subsystem("traffic-manager", new FGTrafficManager, SGSubsystemMgr::POST_FDM);
+
src/Main/fg_init.cxx:931:    globals->add_new_subsystem<FGControls>(SGSubsystemMgr::GENERAL);
+
src/Main/fg_init.cxx:937:    globals->add_new_subsystem<FGInput>(SGSubsystemMgr::GENERAL);
+
src/Main/fg_init.cxx:943:    globals->add_subsystem("replay", new FGReplay);
+
src/Main/fg_init.cxx:944:    globals->add_subsystem("history", new FGFlightHistory);
+
src/Main/fg_init.cxx:950:    globals->add_subsystem("voice", new FGVoiceMgr, SGSubsystemMgr::DISPLAY);
+
src/Main/fg_init.cxx:957:    globals->add_subsystem("fgcom", new FGCom);
+
src/Main/fg_init.cxx:991:    FGNasalSys* nasal = globals->add_new_subsystem<FGNasalSys>(SGSubsystemMgr::INIT);
+
src/Main/globals.cxx:154:    subsystem_mgr( new SGSubsystemMgr ),
+
src/Main/globals.cxx:155:    event_mgr( new SGEventMgr ),
+
src/Main/globals.hxx:185:    T* add_new_subsystem (SGSubsystemMgr::GroupType
+
src/Main/main.cxx:158:    simgear::SGTerraSync* terra_sync = new simgear::SGTerraSync();
+
src/Main/main.cxx:281:        globals->add_new_subsystem<TimeManager>(SGSubsystemMgr::INIT);
+
src/Main/main.cxx:316:        globals->add_new_subsystem<FGScenery>(SGSubsystemMgr::DISPLAY);
+
src/Network/http/httpd.cxx:646:  return new MongooseHttpd(configNode);
+
 
src/Systems/system_mgr.cxx:77:                          new FGElectricalSystem( node ) );
 
src/Systems/system_mgr.cxx:77:                          new FGElectricalSystem( node ) );
 
src/Systems/system_mgr.cxx:80:                          new PitotSystem( node ) );
 
src/Systems/system_mgr.cxx:80:                          new PitotSystem( node ) );
 
src/Systems/system_mgr.cxx:83:                          new StaticSystem( node ) );
 
src/Systems/system_mgr.cxx:83:                          new StaticSystem( node ) );
 
src/Systems/system_mgr.cxx:86:                          new VacuumSystem( node ) );
 
src/Systems/system_mgr.cxx:86:                          new VacuumSystem( node ) );
src/Viewer/fgviewer.cxx:212:    FGScenery* scenery = globals->add_new_subsystem<FGScenery>();
 
 
src/Viewer/view.cxx:170:        v = new View ( FG_LOOKAT, from_model, from_model_index,
 
src/Viewer/view.cxx:170:        v = new View ( FG_LOOKAT, from_model, from_model_index,
 
src/Viewer/view.cxx:182:        v = new View ( FG_LOOKFROM, from_model, from_model_index,
 
src/Viewer/view.cxx:182:        v = new View ( FG_LOOKFROM, from_model, from_model_index,

Latest revision as of 09:44, 1 July 2019

Tracking down subsystems

Script

The following script is for finding all FlightGear dependencies:

All subsystems

The result is:

Refactoring

To check that all subsystems on a branch have been updated or refactored:

Automated test suite test creation

This script was used to generate the instanced and non-instanced subsystem system tests: