User:Callahanp: Difference between revisions

Jump to navigation Jump to search
m
Line 91: Line 91:
! Full Text of Call !! Called Function Location or Include File !! Notes
! Full Text of Call !! Called Function Location or Include File !! Notes
|-  
|-  
| from bootstrap.cxx <br/> fgMainInit( int argc, char **argv ) || Main/main.cxx || all the arguments from the command line are still there
| from bootstrap.cxx <br/> '''fgMainInit'''( int argc, char **argv ) || Main/main.cxx || all the arguments from the command line are still there
|-
|-
| sglog().setLogLevels( SG_ALL, SG_INFO )<br>sglog().setStartupLoggingEnabled(true); || /simgear/debug/logstream.cxx || Pretty obvious what this does. || '''What does sglog() actually return?'''
| sglog().setLogLevels( SG_ALL, SG_INFO )<br>sglog().setStartupLoggingEnabled(true); || /simgear/debug/logstream.cxx || Pretty obvious what this does. || '''What does sglog() actually return?'''
|-
|-
| new FGGlobals; || Main/FGGlobals.cxx || FGGlobals is a bucket for subsystem pointers and properties representing the sim's state.  It's constructor populates the values, including  the locale, the root node of the property tree, the subsystem, event, command and resource managers. It also adds resource providers for Aircraft, he Aircraft Directory and Add-ons. || Question: What is it that makes globals = new FGGlobals a global object.  Here it's a local variable isn't it? Wouldn't it go out of scope in things fgMainInit calls?
| new '''FGGlobals'''; || Main/FGGlobals.cxx || FGGlobals is a bucket for subsystem pointers and properties representing the sim's state.  It's constructor populates the values, including  the locale, the root node of the property tree, the subsystem, event, command and resource managers. It also adds resource providers for Aircraft, he Aircraft Directory and Add-ons. || Question: What is it that makes globals = new FGGlobals a global object.  Here it's a local variable isn't it? Wouldn't it go out of scope in things fgMainInit calls?
{{WIP}}
|}
|}
====Main/FGGlobals.cxx====
====Main/FGGlobals.cxx====


980

edits

Navigation menu