* Melchior FRANZ -- Sunday 21 October 2007:
> Try the attached Nasal script.

But before you do, change "refcount" to "references". I just committed
that to CVS to confuse everybody.  :-)

  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

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to