IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5484


Ignore:
Timestamp:
Nov 7, 2005, 12:31:41 PM (21 years ago)
Author:
Paul Price
Message:

Added psMetadataCopy.

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r5468 r5484  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.177 2005-11-04 19:04:32 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.178 2005-11-07 22:31:36 price Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    821821  The functionality will be handled by \code{psFitsWriteImage,
    822822  psFitsWriteTable}.
    823 \end{itemize}
     823\item Added \code{psMetadataCopy}.
     824\end{itemize}
  • trunk/doc/pslib/psLibSDRS.tex

    r5468 r5484  
    1 %%% $Id: psLibSDRS.tex,v 1.353 2005-11-04 19:04:36 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.354 2005-11-07 22:31:41 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    28322832\end{prototype}
    28332833
     2834There will be occasions when we want to perform a deep copy of a
     2835\code{psMetadata}, for example, to generate a new and independent FITS
     2836header.
     2837\begin{prototype}
     2838psMetadata *psMetadataCopy(psMetadata *out, const psMetadata *in);
     2839\end{prototype}
     2840\code{psMetadataCopy} shall create a new copy of all
     2841\code{psMetadataItem}s in the \code{in} metadata, and place them in
     2842the \code{out} metadata, or a new \code{psMetadata} if \code{out} is
     2843\code{NULL}.  Now, it is not feasible (at this time) to be able to
     2844copy every type that we might put on a \code{psMetadata}.  Therefore,
     2845\code{psMetadataCopy} shall copy only the numerical types and strings.
     2846Other pointer types may simply have the pointer copied (with the
     2847reference counter incremented appropriately), with the total number of
     2848such copies (if positive) reported in a warning at the end of the
     2849function.
     2850
    28342851\subsubsection{Configuration files}
    28352852\label{sec:configspec}
Note: See TracChangeset for help on using the changeset viewer.