ehofman 37ac409586 Melchior FRANZ:
fgLoadFlight() loads a property file ("fgfs.sav") to a new property tree,
and then copies that over to the main tree. copyProperties() didn't know
how to handle type SGPropertyNode::ALIAS and hence threw an exception that
made fgfs abort.

The attached patch adds support for ALIAS to copyProperties(): aliased
nodes are created in the target tree if necessary, and then linked like in
the source tree. It seemed useful to add an optional argument to
props.[ch]xx/getType() that would indeed return the property type "ALIAS"
for aliased nodes, and not the type of the node that it refers to. The patch
also fixes a bug in writeNode() that caused extra lines after alias entries.

If there's resistance to the change to getType() (David?) I can easily use
isAlias(). This just makes copyProperties() a tad uglier, but I can live with
it. It's useful for scanning a tree, though, if an alias node can be treated
exactly like all other nodes, without automatic redirection.
2004-12-19 10:19:14 +00:00
2004-12-19 10:19:14 +00:00
2004-04-04 14:24:06 +00:00
2002-09-03 02:52:39 +00:00
2000-02-09 19:27:02 +00:00
2004-12-15 16:45:57 +00:00
2004-12-15 16:34:14 +00:00
2003-06-11 18:55:36 +00:00
2004-10-12 14:35:42 +00:00
2004-12-15 16:34:14 +00:00
2001-12-17 16:52:20 +00:00
2002-09-02 22:18:31 +00:00
2002-05-10 13:31:44 +00:00
2000-03-29 00:00:46 +00:00
2002-09-07 02:58:19 +00:00

[ Nothing here at this time. ]
Description
No description provided
Readme 14 MiB
Languages
C++ 85.5%
C 13.1%
CMake 1.4%