]> git.mxchange.org Git - flightgear.git/commit
setAttribute("archive", 1) sets this attribute to "true", and
authormfranz <mfranz>
Wed, 4 Apr 2007 14:42:38 +0000 (14:42 +0000)
committermfranz <mfranz>
Wed, 4 Apr 2007 14:42:38 +0000 (14:42 +0000)
commitb5f53c349f5ee455dd221377f8e7a065fe83c858
tree641bae3dadd12391223b6f6df2e97ab4e6d21794
parent2621ba7a474a4a9456f033f469c66a3a3d7d483c
setAttribute("archive", 1) sets this attribute to "true", and
getAttribute("archive") returns 1 if the attribute is set, and 0 otherwise.

Allow to query and to set all properties by not specifying an attribute
string:  getAttribute() returns all attributes bit coded in an integer,
and setAttribute(attr) sets all attributes. No assumptions may be made
about the meaning of the bits -- they can be changed in future fgfs releases.
The only valid use is to compare or set attribute numbers obtained in the
same fgfs run. This is meant for allowing full copies of property branches.
Also add getAttribute query strings "children" for the number of children,
and "alias".
src/Scripting/nasal-props.cxx