User:Bugman/subsystems: Difference between revisions
Jump to navigation
Jump to search
(→All subsystems: Updated the output to match the newest code changes.) |
(→All subsystems: Improved the grep command for finding subsystem instantiations.) |
||
Line 2,441: | Line 2,441: | ||
{{collapsible script | {{collapsible script | ||
| type = Grep output | | type = Grep output | ||
| title = Searching for all subsystem instantiations. | | title = Searching for all direct subsystem instantiations. | ||
| lang = c | | lang = c | ||
| script = | | script = | ||
$ ./find_subsystems.py --classes | $ ./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:138: componentForge["pi-simple-controller"] = new CreateAndConfigureFunctor<PISimpleController,Component>(); | |||
src/Autopilot/autopilot.cxx:139: componentForge["predict-simple"] = new CreateAndConfigureFunctor<Predictor,Component>(); | |||
src/Autopilot/autopilot.cxx:140: componentForge["filter"] = new CreateAndConfigureFunctor<DigitalFilter,Component>(); | |||
src/Autopilot/autopilot.cxx:141: componentForge["logic"] = new CreateAndConfigureFunctor<Logic,Component>(); | |||
src/Autopilot/autopilot.cxx:142: componentForge["flipflop"] = new CreateAndConfigureFunctor<FlipFlop,Component>(); | |||
src/Autopilot/autopilot.cxx:90: return new StateMachineComponent(cfg, prop_root); | |||
src/Autopilot/autopilotgroup.cxx:228: return new FGXMLAutopilotGroupImplementation(nodeName); | |||
src/Autopilot/autopilotgroup.cxx:80: Autopilot* ap = new Autopilot(apNode, config); | |||
src/Cockpit/cockpitDisplayManager.cxx:105: set_subsystem( id, new wxRadarBg ( node ) ); | |||
src/Cockpit/cockpitDisplayManager.cxx:108: set_subsystem( id, new GroundRadar( node ) ); | |||
src/Cockpit/cockpitDisplayManager.cxx:111: set_subsystem( id, new agRadar( node ) ); | |||
src/Cockpit/cockpitDisplayManager.cxx:114: set_subsystem( id, new NavDisplay( node ) ); | |||
src/Cockpit/panel_io.cxx:658: FGPanel * panel = new FGPanel(); | |||
src/Cockpit/panel_io.cxx:784: gps = new KLN89(instrument); | |||
src/Environment/environment_ctrl.cxx:356: return new LayerInterpolateControllerImplementation( rootNode ); | |||
src/Environment/environment_mgr.cxx:101: set_subsystem("precipitation", new FGPrecipitationMgr); | |||
src/Environment/environment_mgr.cxx:106: set_subsystem("ridgelift", new FGRidgeLift); | |||
src/ | src/Environment/environment_mgr.cxx:108: set_subsystem("magvar", new FGMagVarManager); | ||
src/ | src/Environment/realwx_ctrl.cxx:505: return new NoaaMetarRealWxController( rootNode ); | ||
src/ | src/Environment/terrainsampler.cxx:381: set_subsystem( areaSubsystemName(i), new AreaSampler( areaNodes[i] ) ); | ||
src/ | src/Environment/terrainsampler.cxx:431: return new TerrainSamplerImplementation( rootNode ); | ||
src/ | src/FDM/fdm_shell.cxx:285: _impl = new FGUFO( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:289: _impl = new FGNullFDM( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:322: _impl = new FGExternalNet( dt, host, port1, port2, port3 ); | ||
src/ | src/FDM/fdm_shell.cxx:325: // /* old */ _impl = new FGExternalPipe( dt, pipe_path ); | ||
src/ | src/FDM/fdm_shell.cxx:339: _impl = new FGExternalPipe( dt, pipe_path, pipe_protocol ); | ||
src/ | src/FDM/fdm_shell.cxx:341: _impl = new FGNullFDM( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:345: _impl = new FGLaRCsim( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:352: _impl = new FGJSBsim( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:359: _impl = new FGADA( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:361: _impl = new FGACMS( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:363: _impl = new FGBalloonSim( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:365: _impl = new FGMagicCarpet( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:367:// _impl = new FGAISim( dt ); | ||
src/ | src/FDM/fdm_shell.cxx:377: _impl = new YASim( dt ); | ||
src/ | src/FDM/JSBSim/FGFDMExec.cpp:238: Models[eInput] = new FGInput(this); | ||
src/ | src/FDM/JSBSim/models/FGInput.cpp:84: // are not intended to create new properties. For that reason, FGInput | ||
src/ | src/FDM/YASim/Airplane.cpp:802: // For new YASim, the solver drag factor is only applied to | ||
src/ | src/GUI/QtLauncher.cxx:409: FGHTTPClient* http = globals->add_new_subsystem<FGHTTPClient>(); | ||
src/ | src/Input/input.cxx:68: set_subsystem( FGMouseInput::staticSubsystemClassId(), new FGMouseInput() ); | ||
src/ | src/Input/input.cxx:74: set_subsystem( "input-keyboard", new FGKeyboardInput() ); | ||
src/ | src/Input/input.cxx:81: set_subsystem( "input-joystick", new FGJoystickInput() ); | ||
src/ | src/Input/input.cxx:97: set_subsystem( "input-event-hid", new FGHIDEventInput() ); | ||
src/ | src/Instrumentation/commradio.cxx:733: return new CommRadioImpl(rootNode); | ||
src/ | src/Instrumentation/dclgps.cxx:4:// up between current FG code and new KLN89-specific code and removed. | ||
src/ | src/Instrumentation/dclgps.hxx:4:// up between current FG code and new KLN89-specific code and removed. | ||
src/ | src/Instrumentation/instrument_mgr.cxx:125: set_subsystem( id, new ADF( node ), 0.15 ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:128: set_subsystem( id, new AirspeedIndicator( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:131: set_subsystem( id, new Altimeter( node, "altimeter" ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:134: set_subsystem( id, new AttitudeIndicator( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:137: set_subsystem( id, new Clock( node ), 0.25 ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:140: set_subsystem( id, new DME( node ), 1.0 ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:143: set_subsystem( id, new Altimeter( node, "encoder" ), 0.15 ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:150: set_subsystem( id, new GPS( node, true /* default GPS mode */ ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:153: set_subsystem( id, new GSDI( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:156: set_subsystem( id, new HeadingIndicator( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:159: set_subsystem( id, new HeadingIndicatorFG( node ) ); | ||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new | src/Instrumentation/instrument_mgr.cxx:162: set_subsystem( id, new HeadingIndicatorDG( node ) ); | ||
src/Instrumentation/ | src/Instrumentation/instrument_mgr.cxx:165: set_subsystem( id, new FGKR_87( node ) ); | ||
src/Instrumentation/ | src/Instrumentation/instrument_mgr.cxx:168: set_subsystem( id, new MagCompass( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:171: set_subsystem( id, new FGMarkerBeacon( node ), 0.2 ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:180: set_subsystem( id, new SlipSkidBall( node ), 0.03 ); | ||
src/ | 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/ | src/Instrumentation/instrument_mgr.cxx:195: set_subsystem( id, new VerticalSpeedIndicator( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:198: set_subsystem( id, new InstVerticalSpeedIndicator( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:201: set_subsystem( id, new TACAN( node ), 0.2 ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:204: set_subsystem( id, new MK_VIII( node ), 0.2); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:207: set_subsystem( id, new MasterReferenceGyro( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:219: set_subsystem( id, new RadarAltimeter( node ) ); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:222: set_subsystem( id, new TCAS( node ), 0.2); | ||
src/ | src/Instrumentation/instrument_mgr.cxx:97: set_subsystem("gps[0]", new GPS(nd, true /* default GPS mode */)); | ||
src/ | src/Instrumentation/newnavradio.cxx:981: return new NavRadioImpl( rootNode ); | ||
src/ | src/Instrumentation/newnavradio.cxx:983: return new FGNavRadio( rootNode ); | ||
src/ | src/Instrumentation/testgps.cxx:115: FGRouteMgr* rm = new FGRouteMgr; | ||
src/ | src/Instrumentation/testgps.cxx:118: // FGEnvironmentMgr* envMgr = new FGEnvironmentMgr; | ||
src/ | src/Instrumentation/testgps.cxx:127: GPS* gps = new GPS(nd); | ||
src/ | src/Main/fg_init.cxx:778: globals->add_new_subsystem<FGSoundManager>(SGSubsystemMgr::SOUND); | ||
src/ | src/Main/fg_init.cxx:791: globals->add_subsystem("prop-interpolator", new FGInterpolator, SGSubsystemMgr::INIT); | ||
src/ | src/Main/fg_init.cxx:797: globals->add_subsystem("properties", new FGProperties); | ||
src/ | src/Main/fg_init.cxx:803: globals->add_new_subsystem<flightgear::AirportDynamicsManager>(); | ||
src/ | src/Main/fg_init.cxx:809: new SGPerformanceMonitor(globals->get_subsystem_mgr(), | ||
src/ | src/Main/fg_init.cxx:825: globals->add_new_subsystem<FGHTTPClient>(); | ||
src/ | src/Main/fg_init.cxx:827: globals->add_new_subsystem<FGDNSClient>(); | ||
src/ | src/Main/fg_init.cxx:833: globals->add_subsystem("flight", new FDMShell, SGSubsystemMgr::FDM); | ||
src/ | src/Main/fg_init.cxx:840: globals->add_subsystem("environment", new FGEnvironmentMgr); | ||
src/ | src/Main/fg_init.cxx:841: globals->add_new_subsystem<Ephemeris>(); | ||
src/ | src/Main/fg_init.cxx:848: globals->add_subsystem("systems", new FGSystemMgr, SGSubsystemMgr::FDM); | ||
src/ | src/Main/fg_init.cxx:849: globals->add_subsystem("instrumentation", new FGInstrumentMgr, SGSubsystemMgr::FDM); | ||
src/ | src/Main/fg_init.cxx:850: globals->add_subsystem("hud", new HUD, SGSubsystemMgr::DISPLAY); | ||
src/ | src/Main/fg_init.cxx:851: globals->add_subsystem("cockpit-displays", new flightgear::CockpitDisplayManager, SGSubsystemMgr::DISPLAY); | ||
src/ | 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: globals->add_new_subsystem< | src/Main/fg_init.cxx:870: globals->add_subsystem("logger", new FGLogger); | ||
src/ | src/Main/fg_init.cxx:876: globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT); | ||
src/Main/fg_init.cxx: globals->add_subsystem(" | src/Main/fg_init.cxx:889: globals->add_subsystem("Canvas", new CanvasMgr, SGSubsystemMgr::DISPLAY); | ||
src/ | src/Main/fg_init.cxx:890: globals->add_subsystem("CanvasGUI", new GUIMgr, SGSubsystemMgr::DISPLAY); | ||
src/ | src/Main/fg_init.cxx:896: globals->add_new_subsystem<PerformanceDB>(SGSubsystemMgr::POST_FDM); | ||
src/Main/fg_init.cxx: globals->add_subsystem(" | src/Main/fg_init.cxx:897: globals->add_subsystem("ATC", new FGATCManager, SGSubsystemMgr::POST_FDM); | ||
src/ | src/Main/fg_init.cxx:903: globals->add_subsystem("mp", new FGMultiplayMgr, SGSubsystemMgr::POST_FDM); | ||
src/Main/fg_init.cxx: globals->add_subsystem(" | src/Main/fg_init.cxx:909: globals->add_subsystem("ai-model", new FGAIManager, SGSubsystemMgr::POST_FDM); | ||
src/ | src/Main/fg_init.cxx:910: globals->add_subsystem("submodel-mgr", new FGSubmodelMgr, SGSubsystemMgr::POST_FDM); | ||
src/Main/fg_init.cxx: globals->add_subsystem(" | src/Main/fg_init.cxx:916: globals->add_subsystem("traffic-manager", new FGTrafficManager, SGSubsystemMgr::POST_FDM); | ||
src/Main/fg_init.cxx: globals-> | src/Main/fg_init.cxx:931: globals->add_new_subsystem<FGControls>(SGSubsystemMgr::GENERAL); | ||
src/Main/fg_init.cxx: globals-> | 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: globals->add_subsystem(" | src/Main/fg_init.cxx:944: globals->add_subsystem("history", new FGFlightHistory); | ||
src/ | src/Main/fg_init.cxx:950: globals->add_subsystem("voice", new FGVoiceMgr, SGSubsystemMgr::DISPLAY); | ||
src/ | src/Main/fg_init.cxx:957: globals->add_subsystem("fgcom", new FGCom); | ||
src/ | src/Main/fg_init.cxx:991: FGNasalSys* nasal = globals->add_new_subsystem<FGNasalSys>(SGSubsystemMgr::INIT); | ||
src/ | src/Main/globals.cxx:154: subsystem_mgr( new SGSubsystemMgr ), | ||
src/Main/fg_init.cxx: globals->add_subsystem(" | src/Main/globals.cxx:155: event_mgr( new SGEventMgr ), | ||
src/ | src/Main/globals.hxx:185: T* add_new_subsystem (SGSubsystemMgr::GroupType | ||
src/ | src/Main/main.cxx:158: simgear::SGTerraSync* terra_sync = new simgear::SGTerraSync(); | ||
src/Main/fg_init.cxx: | src/Main/main.cxx:281: globals->add_new_subsystem<TimeManager>(SGSubsystemMgr::INIT); | ||
src/ | src/Main/main.cxx:316: globals->add_new_subsystem<FGScenery>(SGSubsystemMgr::DISPLAY); | ||
src/Main/fg_init.cxx: globals-> | src/Network/http/httpd.cxx:646: return new MongooseHttpd(configNode); | ||
src/ | src/Systems/system_mgr.cxx:77: new FGElectricalSystem( node ) ); | ||
src/ | src/Systems/system_mgr.cxx:80: new PitotSystem( node ) ); | ||
src/Systems/system_mgr.cxx:83: new StaticSystem( node ) ); | |||
src/ | src/Systems/system_mgr.cxx:86: new VacuumSystem( node ) ); | ||
src/Main/ | src/Viewer/fgviewer.cxx:212: FGScenery* scenery = globals->add_new_subsystem<FGScenery>(); | ||
src/Main/ | src/Viewer/view.cxx:170: v = new View ( FG_LOOKAT, from_model, from_model_index, | ||
src/Main/ | src/Viewer/view.cxx:182: v = new View ( FG_LOOKFROM, from_model, from_model_index, | ||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
src/ | |||
}} | }} | ||
Revision as of 08:35, 7 May 2018
Tracking down subsystems
Script
The following script is for finding all FlightGear dependencies:
Python script: The find_subsystems.py script for finding all subsystems within the flightgear and simgear C++ code bases.
All subsystems
The result is:
Text output: A listing of all flightgear and simgear subsystems and subsystem groups.
XML output: A listing of all flightgear and simgear subsystems and subsystem groups.
File listing output: The declaration and implementation files for all flightgear and simgear subsystems and subsystem groups.
Flightgear subsystem declaration file listing output: The declaration files for all flightgear subsystems (excluding simgear sources and excluding subsystem groups).
Flightgear subsystem implementation file listing output: The implementation files for all flightgear subsystems (excluding simgear sources and excluding subsystem groups).
Grep for a subsystem dependency (SGSky): Searching for SGSky dependencies for all subsystems.
Grep output: Searching for all direct subsystem instantiations.
Refactoring
To check that all subsystems on a branch have been updated or refactored:
Python script: Python script verifying if all subsystems have been updated.