next up previous 207
Next: ndgCountProv - Return the number of ancestors in a provenance structure
Up: Routines for accessing NDF Provenance
Previous: ndgBegpv - Begin an NDF provenance block


ndgCopyProv - Copy a Provenance structure, optionally removing any hidden ancestors

Description:
This function produces a deep copy of the supplied Provenance structure, and then optionally uses ndgRemoveProv to remove any hidden ancestors from the copy. A pointer to the copy is returned.

Invocation:
NdgProvenance $*$ndgCopyProv( NdgProvenance $*$prov, int cleanse, int $*$status )

Arguments:

prov
A pointer to the provenance information to be Copied.
cleanse
If non-zero, then any ancestors which have been hidden using ndgHideProv are removed from the returned Provenance structure (see ndgRemoveProv).
status
The global status.

Returned Value:

A pointer to the new Provenance structure, which should be freed
using ndgFreeProv when no longer needed.



next up previous 207
Next: ndgCountProv - Return the number of ancestors in a provenance structure
Up: Routines for accessing NDF Provenance
Previous: ndgBegpv - Begin an NDF provenance block

NDG [1ex
Starlink User Note 2
D.S. Berry
M.B. Taylor
22nd October 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils