Jim Wilson writes:
Is there a way to copy a block of properties (ie an equivelent to
cp -ax dir1 dir2)? IIRC this was discussed at one time, and I'm
wondering if it has been implemented yet.
See simgear/misc/props_io:
/**
* Copy properties from one node to another.
*/
bool
Norman Vine writes:
Jim Wilson writes:
Is there a way to copy a block of properties
#include simgear/misc/props_io.hxx
copyProperties (const SGPropertyNode *in, SGPropertyNode *out)
But AFAIK this requires that the 'out' nodes exist
i.e. this copies but does not construct
Jim Wilson writes:
Is there a way to copy a block of properties
#include simgear/misc/props_io.hxx
copyProperties (const SGPropertyNode *in, SGPropertyNode *out)
But AFAIK this requires that the 'out' nodes exist
i.e. this copies but does not construct the nodes
I think the easiest way to