Property browser: Difference between revisions

Jump to navigation Jump to search
m
Line 56: Line 56:


{{FGCquote
{{FGCquote
|1= props.globals.getNode("/sim/aircraft").getAttribute("references") does now return the reference counter -- the number of co-owners of the shared pointer. This is really only useful for debugging. And here's again a summary of all the attribute names: children ... returns number of children (faster than sie(n.getChildren()!) listeners ... return number of attached listeners references ... returns number of co-owners (+ 2 for own consumption) tied ... returns whether a node is "tied" (in which case listeners might not get triggered) alias ... whether the node is an alias to another node read ... whether the node is read-protected write ... whether the node is write-protected archive ... whether the "archive" flag is set, which makes the node saved with "Save Flight" in the menu trace-read ... whether the node is being traced for read operations trace-write ... whether the node is being traced for write operations userarchive ... whether the node will be saved to ~/.fgfs/autosave.xml on exit
|1= <pre>props.globals.getNode("/sim/aircraft").getAttribute("references")
 
does now return the reference counter -- the number of co-owners
of the shared pointer. This is really only useful for debugging.
And here's again a summary of all the attribute names:
 
children   ... returns number of children (faster than size(n.getChildren()!)
listeners   ... return number of attached listeners
references ... returns number of co-owners (+ 2 for own consumption)
tied       ... returns whether a node is "tied" (in which case listeners
                might not get triggered)
alias       ... whether the node is an alias to another node
read       ... whether the node is read-protected
write       ... whether the node is write-protected
archive     ... whether the "archive" flag is set, which makes the
                node saved with "Save Flight" in the menu
trace-read ... whether the node is being traced for read operations
trace-write ... whether the node is being traced for write operations
userarchive ... whether the node will be saved to ~/.fgfs/autosave.xml
                on exit
</pre>
|2= {{cite web
|2= {{cite web
   | url    = http://sourceforge.net/p/flightgear/mailman/message/15645291/
   | url    = http://sourceforge.net/p/flightgear/mailman/message/15645291/

Navigation menu