User:Bugman/subsystems: Difference between revisions
Jump to navigation
Jump to search
(→Script: Subsystem class names can now be output.) |
(→All subsystems: Added a new script result.) |
||
Line 2,336: | Line 2,336: | ||
/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(); | ||
}} | |||
==== Subsystem instantiation ==== | |||
{{collapsible script | |||
| type = Grep output | |||
| title = Searching for all subsystem instantiations. | |||
| lang = c | |||
| script = | |||
$ ./find_subsystems.py --classes {{!}} sort {{!}} xargs -I{{obr}}{{cbr}} grep "new.*{{obr}}{{cbr}}" -rI src | |||
Finding all primary classes in: /flightgear/src/flightgear-simgear | |||
Finding all primary groups in: /flightgear/src/flightgear-simgear | |||
Finding all secondary classes in: /flightgear/src/flightgear-simgear | |||
Finding all secondary groups in: /flightgear/src/flightgear-simgear | |||
Finding all tertiary classes in: /flightgear/src/flightgear-simgear | |||
Finding all tertiary groups in: /flightgear/src/flightgear-simgear | |||
Finding all quaternary classes in: /flightgear/src/flightgear-simgear | |||
Finding all quaternary groups in: /flightgear/src/flightgear-simgear | |||
Finding all primary classes in: /flightgear/src/flightgear-flightgear | |||
Finding all primary groups in: /flightgear/src/flightgear-flightgear | |||
Finding all secondary classes in: /flightgear/src/flightgear-flightgear | |||
Skipping: 'src/FDM/SP/AISim.hpp: : public FGInterface' | |||
Finding all secondary groups in: /flightgear/src/flightgear-flightgear | |||
Finding all tertiary classes in: /flightgear/src/flightgear-flightgear | |||
Finding all tertiary groups in: /flightgear/src/flightgear-flightgear | |||
Finding all quaternary classes in: /flightgear/src/flightgear-flightgear | |||
Finding all quaternary groups in: /flightgear/src/flightgear-flightgear | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new ADF( node ), 0.15 ); | |||
src/Cockpit/cockpitDisplayManager.cxx: set_subsystem( id, new agRadar( node ) ); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<flightgear::AirportDynamicsManager>(); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new AirspeedIndicator( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new Altimeter( node, "altimeter" ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new Altimeter( node, "encoder" ), 0.15 ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new RadarAltimeter( node ) ); | |||
src/Environment/terrainsampler.cxx: set_subsystem( areaSubsystemName(i), new AreaSampler( areaNodes[i] ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new AttitudeIndicator( node ) ); | |||
src/Autopilot/autopilotgroup.cxx: Autopilot* ap = new Autopilot(apNode, config); | |||
src/Autopilot/autopilotgroup.cxx: return new FGXMLAutopilotGroupImplementation(nodeName); | |||
src/AIModel/submodel.cxx: sm->x_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->y_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->z_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->yaw_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->pitch_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->x_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->y_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->z_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->yaw_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->pitch_offset = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->azimuth_error = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->elevation_error = new FGXMLAutopilot::InputValue(*prop_root, b ? *b : n); | |||
src/AIModel/submodel.cxx: sm->cd_randomness = new FGXMLAutopilot::InputValue(*prop_root, *b); | |||
src/AIModel/submodel.cxx: sm->life_randomness = new FGXMLAutopilot::InputValue(*prop_root, *b); | |||
src/Main/fg_init.cxx: globals->add_subsystem("Canvas", new CanvasMgr, SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_subsystem("Canvas", new CanvasMgr, SGSubsystemMgr::DISPLAY); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new Clock( node ), 0.25 ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("cockpit-displays", new flightgear::CockpitDisplayManager, SGSubsystemMgr::DISPLAY); | |||
src/Instrumentation/commradio.cxx: return new CommRadioImpl(rootNode); | |||
src/Instrumentation/commradio.cxx: return new CommRadioImpl(rootNode); | |||
src/Autopilot/autopilot.cxx: return new StateMachineComponent(cfg, prop_root); | |||
src/Autopilot/autopilot.cxx: componentForge["pid-controller"] = new CreateAndConfigureFunctor<PIDController,Component>(); | |||
src/Autopilot/autopilot.cxx: componentForge["pi-simple-controller"] = new CreateAndConfigureFunctor<PISimpleController,Component>(); | |||
src/Autopilot/autopilot.cxx: componentForge["predict-simple"] = new CreateAndConfigureFunctor<Predictor,Component>(); | |||
src/Autopilot/autopilot.cxx: componentForge["filter"] = new CreateAndConfigureFunctor<DigitalFilter,Component>(); | |||
src/Autopilot/autopilot.cxx: componentForge["logic"] = new CreateAndConfigureFunctor<Logic,Component>(); | |||
src/Autopilot/autopilot.cxx: componentForge["flipflop"] = new CreateAndConfigureFunctor<FlipFlop,Component>(); | |||
src/GUI/QQuickDrawable.cxx: d->qmlComponent = new QQmlComponent(d->qmlEngine, url); | |||
src/Autopilot/digitalfilter.cxx: return new DigitalFilterType(); | |||
src/Autopilot/autopilot.cxx: componentForge["filter"] = new CreateAndConfigureFunctor<DigitalFilter,Component>(); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new DME( node ), 1.0 ); | |||
src/Instrumentation/dme.cxx: _audioIdent = new DMEAudioIdent( temp.str() ); | |||
src/Instrumentation/rnav_waypt_controller.cxx: return new DMEInterceptCtl(aRNAV, aWpt); | |||
src/Navaids/route.cxx: r = new DMEIntercept(aOwner); | |||
src/Navaids/LevelDXML.cxx: wp = new DMEIntercept(owner, _wayptName, pos, _courseOrHeading, _dmeDistance); | |||
src/FDM/JSBSim/FGFDMExec.cpp: // Populate that childData element with a new FDMExec object | |||
src/FDM/JSBSim/FGFDMExec.cpp: child->exec = new FGFDMExec(Root, FDMctr); | |||
src/FDM/JSBSim/JSBSim.cpp: FDMExec = new JSBSim::FGFDMExec(); | |||
src/FDM/JSBSim/JSBSim.cpp: trimmer = new JSBSim::FGTrim( FDMExec ); | |||
src/FDM/JSBSim/initialization/FGTrim.h: FGFDMExec* FDMExec = new FGFDMExec(); | |||
src/FDM/JSBSim/initialization/FGTrim.h: FGInitialCondition* fgic = new FGInitialCondition(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: FGOutputTextFile* OutputTextFile = new FGOutputTextFile(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: FGOutputTextFile* OutputTextFile = new FGOutputTextFile(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGOutputSocket(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGOutputFG(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGUDPOutputSocket(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGOutputTextFile(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGOutputTextFile(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGOutputSocket(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGOutputFG(FDMExec); | |||
src/FDM/JSBSim/models/FGOutput.cpp: Output = new FGUDPOutputSocket(FDMExec); | |||
src/FDM/JSBSim/models/FGGroundReactions.cpp: lGear[idx] = new FGLGear(contact_element, FDMExec, num++, in); | |||
src/FDM/JSBSim/models/FGExternalReactions.cpp: Forces.push_back(new FGExternalForce(FDMExec)); | |||
src/FDM/JSBSim/models/FGExternalReactions.cpp: Forces.push_back(new FGExternalForce(FDMExec)); | |||
src/FDM/JSBSim/models/FGInput.cpp: Input = new FGInputSocket(FDMExec); | |||
src/FDM/JSBSim/models/FGInput.cpp: Input = new FGUDPInputSocket(FDMExec); | |||
src/FDM/JSBSim/models/FGPropulsion.cpp: Tanks.push_back(new FGTank(FDMExec, tank_element, numTanks)); | |||
src/FDM/JSBSim/models/FGPropulsion.cpp: Engines.push_back(new FGPiston(FDMExec, element, numEngines, in)); | |||
src/FDM/JSBSim/models/FGPropulsion.cpp: Engines.push_back(new FGTurbine(FDMExec, element, numEngines, in)); | |||
src/FDM/JSBSim/models/FGPropulsion.cpp: Engines.push_back(new FGTurboProp(FDMExec, element, numEngines, in)); | |||
src/FDM/JSBSim/models/FGPropulsion.cpp: Engines.push_back(new FGRocket(FDMExec, element, numEngines, in)); | |||
src/FDM/JSBSim/models/FGPropulsion.cpp: Engines.push_back(new FGElectric(FDMExec, element, numEngines, in)); | |||
src/FDM/JSBSim/models/FGBuoyantForces.cpp: Cells.push_back(new FGGasCell(FDMExec, gas_cell_element, Cells.size(), in)); | |||
src/FDM/JSBSim/JSBSim.cxx: fdmex = new FGFDMExec( PropertyManager ); | |||
src/FDM/JSBSim/FGFDMExec.h: fdmex = new FGFDMExec( ... ); | |||
src/FDM/JSBSim/FGFDMExec.h: FDMExec = new JSBSim::FGFDMExec(); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<Ephemeris>(); | |||
src/Environment/ephemeris.cxx: _impl.reset(new SGEphemeris(ephem_data_path.local8BitStr())); | |||
src/Main/fg_init.cxx: globals->add_subsystem("flight", new FDMShell, SGSubsystemMgr::FDM); | |||
src/FDM/fdm_shell.cxx: _impl = new FGACMS( dt ); | |||
src/FDM/fdm_shell.cxx: _impl = new FGADA( dt ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("ai-model", new FGAIManager, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGAircraftModel>(SGSubsystemMgr::DISPLAY); | |||
src/FDM/fdm_shell.cxx:// _impl = new FGAISim( dt ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("ATC", new FGATCManager, SGSubsystemMgr::POST_FDM); | |||
src/FDM/fdm_shell.cxx: _impl = new FGBalloonSim( dt ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("fgcom", new FGCom); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGControls>(SGSubsystemMgr::GENERAL); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGDNSClient>(); | |||
src/Systems/system_mgr.cxx: new FGElectricalSystem( node ) ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("environment", new FGEnvironmentMgr); | |||
src/Instrumentation/testgps.cxx: // FGEnvironmentMgr* envMgr = new FGEnvironmentMgr; | |||
src/FDM/fdm_shell.cxx: _impl = new FGExternalNet( dt, host, port1, port2, port3 ); | |||
src/FDM/fdm_shell.cxx: // /* old */ _impl = new FGExternalPipe( dt, pipe_path ); | |||
src/FDM/fdm_shell.cxx: _impl = new FGExternalPipe( dt, pipe_path, pipe_protocol ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("history", new FGFlightHistory); | |||
src/Input/FGHIDEventInput.cxx: d(new FGHIDEventInputPrivate) | |||
src/Input/input.cxx: set_subsystem( "input-event-hid", new FGHIDEventInput() ); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGHTTPClient>(); | |||
src/GUI/QtLauncher.cxx: FGHTTPClient* http = globals->add_new_subsystem<FGHTTPClient>(); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGInput>(SGSubsystemMgr::GENERAL); | |||
src/FDM/JSBSim/FGFDMExec.cpp: Models[eInput] = new FGInput(this); | |||
src/FDM/JSBSim/models/FGInput.cpp: // are not intended to create new properties. For that reason, FGInput | |||
src/FDM/JSBSim/models/FGInput.cpp: Input = new FGInputSocket(FDMExec); | |||
src/Input/FGEventInput.cxx: return new FGInputEvent( device, node ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("instrumentation", new FGInstrumentMgr, SGSubsystemMgr::FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("prop-interpolator", new FGInterpolator, SGSubsystemMgr::INIT); | |||
src/Main/fg_init.cxx: globals->add_subsystem( "io", new FGIO ); | |||
src/Input/input.cxx: set_subsystem( "input-joystick", new FGJoystickInput() ); | |||
src/FDM/fdm_shell.cxx: _impl = new FGJSBsim( dt ); | |||
src/Input/input.cxx: set_subsystem( "input-keyboard", new FGKeyboardInput() ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new FGKR_87( node ) ); | |||
src/FDM/fdm_shell.cxx: _impl = new FGLaRCsim( dt ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("lighting", new FGLight, SGSubsystemMgr::DISPLAY); | |||
src/Viewer/renderer.cxx: lightSource->setUpdateCallback(new FGLightSourceUpdateCallback); | |||
src/Viewer/renderer.cxx: sunLight->setUpdateCallback(new FGLightSourceUpdateCallback(true)); | |||
src/Viewer/renderer.cxx: lightModel->setUpdateCallback(new FGLightModelUpdateCallback); | |||
src/Main/fg_init.cxx: globals->add_subsystem("logger", new FGLogger); | |||
src/Input/FGMacOSXEventInput.cxx: d(new FGMacOSXEventInputPrivate) | |||
src/FDM/fdm_shell.cxx: _impl = new FGMagicCarpet( dt ); | |||
src/Environment/environment_mgr.cxx: set_subsystem("magvar", new FGMagVarManager); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new FGMarkerBeacon( node ), 0.2 ); | |||
src/Navaids/testnavs.cxx: FGMarkerBeacons *current_beacons = new FGMarkerBeacons; | |||
src/Navaids/NavDataCache.cxx: return new FGMarkerBeaconRecord(rowId, ty, runway, pos); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGModelMgr>(SGSubsystemMgr::DISPLAY); | |||
src/Input/input.cxx: set_subsystem( FGMouseInput::staticSubsystemClassId(), new FGMouseInput() ); | |||
src/Input/FGMouseInput.cxx: d.reset(new FGMouseInputPrivate()); | |||
src/Main/fg_init.cxx: globals->add_subsystem("mp", new FGMultiplayMgr, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: FGNasalSys* nasal = globals->add_new_subsystem<FGNasalSys>(SGSubsystemMgr::INIT); | |||
src/Instrumentation/newnavradio.cxx: return new FGNavRadio( rootNode ); | |||
src/FDM/fdm_shell.cxx: _impl = new FGNullFDM( dt ); | |||
src/FDM/fdm_shell.cxx: _impl = new FGNullFDM( dt ); | |||
src/Model/panelnode.cxx: userData->setPickCallback(new FGPanelPickCallback(panel)); | |||
src/Model/panelnode.cxx: FGPanelNode* drawable = new FGPanelNode; | |||
src/Model/panelnode.cxx: ps->setUpdateCallback(new FGPanelSwitchCallback(drawable)); | |||
src/Model/panelnode.cxx: FGPanelNode* drawable = new FGPanelNode(n); | |||
src/Cockpit/panel_io.cxx: FGPanelAction * action = new FGPanelAction(button, x, y, w, h, repeatable); | |||
src/Cockpit/panel_io.cxx: FGPanelTransformation * t = new FGPanelTransformation; | |||
src/Cockpit/panel_io.cxx: FGPanel * panel = new FGPanel(); | |||
src/Environment/environment_mgr.cxx: set_subsystem("precipitation", new FGPrecipitationMgr); | |||
src/Main/fg_init.cxx: globals->add_subsystem("properties", new FGProperties); | |||
src/Main/fg_init.cxx: globals->add_subsystem("replay", new FGReplay); | |||
src/Environment/environment_mgr.cxx: set_subsystem("ridgelift", new FGRidgeLift); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGRouteMgr>(); | |||
src/Instrumentation/testgps.cxx: FGRouteMgr* rm = new FGRouteMgr; | |||
src/Main/main.cxx: globals->add_new_subsystem<FGScenery>(SGSubsystemMgr::DISPLAY); | |||
src/Viewer/fgviewer.cxx: FGScenery* scenery = globals->add_new_subsystem<FGScenery>(); | |||
src/Viewer/renderer.cxx: sw->setUpdateCallback(new FGScenerySwitchCallback); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGSoundManager>(SGSubsystemMgr::SOUND); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGSoundManager>(SGSubsystemMgr::SOUND); | |||
src/Main/fg_init.cxx: globals->add_subsystem("submodel-mgr", new FGSubmodelMgr, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("systems", new FGSystemMgr, SGSubsystemMgr::FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("traffic-manager", new FGTrafficManager, SGSubsystemMgr::POST_FDM); | |||
src/FDM/fdm_shell.cxx: _impl = new FGUFO( dt ); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGViewMgr>(SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_subsystem("voice", new FGVoiceMgr, SGSubsystemMgr::DISPLAY); | |||
src/Autopilot/autopilotgroup.cxx: return new FGXMLAutopilotGroupImplementation(nodeName); | |||
src/Autopilot/autopilotgroup.cxx: return new FGXMLAutopilotGroupImplementation(nodeName); | |||
src/Autopilot/autopilot.cxx: componentForge["flipflop"] = new CreateAndConfigureFunctor<FlipFlop,Component>(); | |||
src/Autopilot/flipflop.cxx: componentForge["RS"] = new CreateAndConfigureFunctor<RSFlipFlopImplementation,FlipFlopImplementation>(); | |||
src/Autopilot/flipflop.cxx: componentForge["SR"] = new CreateAndConfigureFunctor<SRFlipFlopImplementation,FlipFlopImplementation>(); | |||
src/Autopilot/flipflop.cxx: componentForge["JK"] = new CreateAndConfigureFunctor<JKFlipFlopImplementation,FlipFlopImplementation>(); | |||
src/Autopilot/flipflop.cxx: componentForge["D"] = new CreateAndConfigureFunctor<DFlipFlopImplementation, FlipFlopImplementation>(); | |||
src/Autopilot/flipflop.cxx: componentForge["T"] = new CreateAndConfigureFunctor<TFlipFlopImplementation, FlipFlopImplementation>(); | |||
src/Autopilot/flipflop.cxx: componentForge["monostable"] = new CreateAndConfigureFunctor<MonoFlopImplementation, FlipFlopImplementation>(); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem("gps[0]", new GPS(nd, true /* default GPS mode */)); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new GPS( node, true /* default GPS mode */ ) ); | |||
src/Instrumentation/KLN89/kln89_page_fpl.cxx: GPSWaypoint* wp = new GPSWaypoint; | |||
src/Instrumentation/KLN89/kln89_page_fpl.cxx: GPSWaypoint* wp = new GPSWaypoint; | |||
src/Instrumentation/KLN89/kln89_page_fpl.cxx: GPSWaypoint* wp = new GPSWaypoint; | |||
src/Instrumentation/KLN89/kln89.cxx: GPSFlightPlan* fp = new GPSFlightPlan; | |||
src/Instrumentation/KLN89/kln89_page_apt.cxx: GPSWaypoint* wp = new GPSWaypoint; | |||
src/Instrumentation/KLN89/kln89_page_apt.cxx: wp = new GPSWaypoint; | |||
src/Instrumentation/KLN89/kln89_page_apt.cxx: GPSWaypoint* wp = new GPSWaypoint; | |||
src/Instrumentation/KLN89/kln89_page_apt.cxx: wp = new GPSWaypoint; | |||
src/Instrumentation/dclgps.cxx: return new GPSWaypoint(aPos->ident(), | |||
src/Instrumentation/dclgps.cxx: _approachFP = new GPSFlightPlan; | |||
src/Instrumentation/dclgps.cxx: wp = new GPSWaypoint; | |||
src/Instrumentation/dclgps.cxx: wp = new GPSWaypoint; | |||
src/Instrumentation/dclgps.cxx: fp = new GPSFlightPlan; | |||
src/Instrumentation/dclgps.cxx: wp = new GPSWaypoint; | |||
src/Instrumentation/dclgps.cxx: fp = new GPSFlightPlan; | |||
src/Instrumentation/dclgps.cxx: if(fp == NULL) fp = new GPSFlightPlan; | |||
src/Instrumentation/dclgps.cxx: GPSWaypoint* wp = new GPSWaypoint; | |||
src/Instrumentation/testgps.cxx: GPS* gps = new GPS(nd); | |||
src/Cockpit/cockpitDisplayManager.cxx: set_subsystem( id, new GroundRadar( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new GSDI( node ) ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("CanvasGUI", new GUIMgr, SGSubsystemMgr::DISPLAY); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new HeadingIndicator( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new HeadingIndicatorFG( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new HeadingIndicatorDG( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new HeadingIndicatorDG( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new HeadingIndicatorFG( node ) ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("hud", new HUD, SGSubsystemMgr::DISPLAY); | |||
src/Viewer/renderer.cxx: virtual osg::Object* cloneType() const { return new SGHUDDrawable; } | |||
src/Viewer/renderer.cxx: virtual osg::Object* clone(const osg::CopyOp&) const { return new SGHUDDrawable; } | |||
src/Viewer/renderer.cxx: geode->addDrawable(new SGHUDDrawable); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new InstVerticalSpeedIndicator( node ) ); | |||
src/Instrumentation/KLN89/kln89_page_act.cxx: _aptPage = new KLN89AptPage(parent); | |||
src/Instrumentation/KLN89/kln89_page_act.cxx: _vorPage = new KLN89VorPage(parent); | |||
src/Instrumentation/KLN89/kln89_page_act.cxx: _ndbPage = new KLN89NDBPage(parent); | |||
src/Instrumentation/KLN89/kln89_page_act.cxx: _intPage = new KLN89IntPage(parent); | |||
src/Instrumentation/KLN89/kln89_page_act.cxx: _usrPage = new KLN89UsrPage(parent); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* apt_page = new KLN89AptPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* vor_page = new KLN89VorPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* ndb_page = new KLN89NDBPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* int_page = new KLN89IntPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* usr_page = new KLN89UsrPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* act_page = new KLN89ActPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* nav_page = new KLN89NavPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* fpl_page = new KLN89FplPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* cal_page = new KLN89CalPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* set_page = new KLN89SetPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: KLN89Page* oth_page = new KLN89OthPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: _alt_page = new KLN89AltPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: _dir_page = new KLN89DirPage(this); | |||
src/Instrumentation/KLN89/kln89.cxx: _nrst_page = new KLN89NrstPage(this); | |||
src/Instrumentation/dclgps.hxx:// up between current FG code and new KLN89-specific code and removed. | |||
src/Instrumentation/dclgps.cxx:// up between current FG code and new KLN89-specific code and removed. | |||
src/Cockpit/panel_io.cxx: gps = new KLN89(instrument); | |||
src/Environment/environment_ctrl.cxx: return new LayerInterpolateControllerImplementation( rootNode ); | |||
src/Environment/environment_ctrl.cxx: return new LayerInterpolateControllerImplementation( rootNode ); | |||
src/Autopilot/autopilot.cxx: componentForge["logic"] = new CreateAndConfigureFunctor<Logic,Component>(); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new MagCompass( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new MasterReferenceGyro( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new MK_VIII( node ), 0.2); | |||
src/Network/http/httpd.cxx: return new MongooseHttpd(configNode); | |||
src/Cockpit/cockpitDisplayManager.cxx: set_subsystem( id, new NavDisplay( node ) ); | |||
src/Instrumentation/newnavradio.cxx: return new NavRadioImpl( rootNode ); | |||
src/Instrumentation/newnavradio.cxx: return new FGNavRadio( rootNode ); | |||
src/Instrumentation/newnavradio.cxx: return new NavRadioImpl( rootNode ); | |||
src/Main/fg_init.cxx: globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT); | |||
src/Environment/realwx_ctrl.cxx: return new NoaaMetarRealWxController( rootNode ); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<PerformanceDB>(SGSubsystemMgr::POST_FDM); | |||
src/Autopilot/autopilot.cxx: componentForge["pid-controller"] = new CreateAndConfigureFunctor<PIDController,Component>(); | |||
src/Autopilot/autopilot.cxx: componentForge["pi-simple-controller"] = new CreateAndConfigureFunctor<PISimpleController,Component>(); | |||
src/Systems/system_mgr.cxx: new PitotSystem( node ) ); | |||
src/Autopilot/autopilot.cxx: componentForge["predict-simple"] = new CreateAndConfigureFunctor<Predictor,Component>(); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new RadarAltimeter( node ) ); | |||
src/Environment/realwx_ctrl.cxx: return new NoaaMetarRealWxController( rootNode ); | |||
src/Main/globals.cxx: event_mgr( new SGEventMgr ), | |||
src/Main/fg_init.cxx: new SGPerformanceMonitor(globals->get_subsystem_mgr(), | |||
src/Main/main.cxx: globals->add_new_subsystem<TimeManager>(SGSubsystemMgr::INIT); | |||
src/Main/main.cxx: globals->add_new_subsystem<FGScenery>(SGSubsystemMgr::DISPLAY); | |||
src/Main/globals.cxx: subsystem_mgr( new SGSubsystemMgr ), | |||
src/Main/globals.hxx: T* add_new_subsystem (SGSubsystemMgr::GroupType | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGSoundManager>(SGSubsystemMgr::SOUND); | |||
src/Main/fg_init.cxx: globals->add_subsystem("prop-interpolator", new FGInterpolator, SGSubsystemMgr::INIT); | |||
src/Main/fg_init.cxx: globals->add_subsystem("flight", new FDMShell, SGSubsystemMgr::FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("systems", new FGSystemMgr, SGSubsystemMgr::FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("instrumentation", new FGInstrumentMgr, SGSubsystemMgr::FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("hud", new HUD, SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_subsystem("cockpit-displays", new flightgear::CockpitDisplayManager, SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT); | |||
src/Main/fg_init.cxx: globals->add_subsystem("Canvas", new CanvasMgr, SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_subsystem("CanvasGUI", new GUIMgr, SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<PerformanceDB>(SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("ATC", new FGATCManager, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("mp", new FGMultiplayMgr, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("ai-model", new FGAIManager, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("submodel-mgr", new FGSubmodelMgr, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_subsystem("traffic-manager", new FGTrafficManager, SGSubsystemMgr::POST_FDM); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGControls>(SGSubsystemMgr::GENERAL); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGInput>(SGSubsystemMgr::GENERAL); | |||
src/Main/fg_init.cxx: globals->add_subsystem("voice", new FGVoiceMgr, SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_subsystem("lighting", new FGLight, SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGAircraftModel>(SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGModelMgr>(SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGViewMgr>(SGSubsystemMgr::DISPLAY); | |||
src/Main/fg_init.cxx: FGNasalSys* nasal = globals->add_new_subsystem<FGNasalSys>(SGSubsystemMgr::INIT); | |||
src/Main/main.cxx: simgear::SGTerraSync* terra_sync = new simgear::SGTerraSync(); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new SlipSkidBall( node ), 0.03 ); | |||
src/Autopilot/autopilot.cxx: return new StateMachineComponent(cfg, prop_root); | |||
src/Systems/system_mgr.cxx: new StaticSystem( node ) ); | |||
src/Main/fg_init.cxx: FGTACANList *channellist = new FGTACANList; | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new TACAN( node ), 0.2 ); | |||
src/Navaids/navdb.cxx: FGTACANRecord *r = new FGTACANRecord; | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new TCAS( node ), 0.2); | |||
src/Environment/terrainsampler.cxx: return new TerrainSamplerImplementation( rootNode ); | |||
src/Environment/terrainsampler.cxx: return new TerrainSamplerImplementation( rootNode ); | |||
src/Main/main.cxx: globals->add_new_subsystem<TimeManager>(SGSubsystemMgr::INIT); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new Transponder( node ), 0.2 ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new TurnIndicator( node ) ); | |||
src/Systems/system_mgr.cxx: new VacuumSystem( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new VerticalSpeedIndicator( node ) ); | |||
src/Instrumentation/instrument_mgr.cxx: set_subsystem( id, new InstVerticalSpeedIndicator( node ) ); | |||
src/Main/fg_init.cxx: globals->add_new_subsystem<FGViewMgr>(SGSubsystemMgr::DISPLAY); | |||
src/Viewer/CameraGroup.hxx: viewInverse( new osg::Uniform( "fg_ViewMatrixInverse",osg::Matrixf() ) ), | |||
src/Viewer/CameraGroup.hxx: view( new osg::Uniform( "fg_ViewMatrix",osg::Matrixf() ) ), | |||
src/Viewer/fgviewer.cxx: viewer.addEventHandler(new osgViewer::HelpHandler); | |||
src/Viewer/fgviewer.cxx: viewer.addEventHandler(new osgViewer::StatsHandler); | |||
src/Viewer/fgviewer.cxx: // viewer.addEventHandler(new osgViewer::ThreadingHandler); | |||
src/Viewer/fgviewer.cxx: viewer.addEventHandler(new osgViewer::LODScaleHandler); | |||
src/Viewer/fgviewer.cxx: viewer.addEventHandler(new osgViewer::ScreenCaptureHandler); | |||
src/Viewer/view.cxx: v = new View ( FG_LOOKAT, from_model, from_model_index, | |||
src/Viewer/view.cxx: v = new View ( FG_LOOKFROM, from_model, from_model_index, | |||
src/Viewer/renderer.cxx: camera->setViewport( new osg::Viewport ); | |||
src/Viewer/renderer.cxx: camera->setViewport(new Viewport); | |||
src/Viewer/renderer.cxx: camera->setViewport( new osg::Viewport ); | |||
src/Viewer/renderer.cxx: camera->setViewport(new Viewport); | |||
src/Viewer/fg_os_osgviewer.cxx: viewer = new osgViewer::Viewer; | |||
src/Viewer/CameraGroup.cxx: camera->setViewport(new Viewport); | |||
src/Viewer/CameraGroup.cxx: info->viewportListener = new CameraViewportListener(info, viewportNode, window->gc->getTraits()); | |||
src/Viewer/CameraGroup.cxx: camera->setViewport(new Viewport); | |||
src/Viewer/CameraGroup.cxx: result->viewportListener = new CameraViewportListener(result, viewportNode, | |||
src/Viewer/WindowBuilder.cxx: traits->inheritedWindowData = new osgViewer::GraphicsWindowCocoa::WindowData(flags); | |||
src/Viewer/PUICamera.cxx: _resizeCullCallback = new UpdateViewportAndFBOAfterTextureResizeCallback; | |||
src/GUI/LauncherMainWindow.cxx: m_viewCommandLinePage = new ViewCommandLinePage; | |||
src/Cockpit/cockpitDisplayManager.cxx: set_subsystem( id, new wxRadarBg ( node ) ); | |||
src/FDM/fdm_shell.cxx: _impl = new YASim( dt ); | |||
src/FDM/YASim/Airplane.cpp: // For new YASim, the solver drag factor is only applied to | |||
}} | }} | ||
Revision as of 13:23, 6 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.
Subsystem instantiation
Grep output: Searching for all 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.