IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4869


Ignore:
Timestamp:
Aug 24, 2005, 11:57:49 AM (21 years ago)
Author:
Paul Price
Message:

Split psMetadataRemove into two functions

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

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

    r4860 r4869  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.164 2005-08-24 01:38:16 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.165 2005-08-24 21:57:49 price Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    770770  psXMLDocToFD} to bool (bug 499).
    771771\item Clarified behaviour of \code{psLogSetDestination} and \code{psTraceSetDestination}.
    772 \end{itemize}
    773 
     772\item Split \code{psMetadataRemove} into \code{psMetadataRemoveKey} and \code{psMetadataRemoveIndex}.
     773\end{itemize}
     774
  • trunk/doc/pslib/psLibSDRS.tex

    r4860 r4869  
    1 %%% $Id: psLibSDRS.tex,v 1.326 2005-08-24 01:38:16 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.327 2005-08-24 21:57:49 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    27512751
    27522752Items may be removed from the metadata by specifying a key or a
    2753 location in the list.  If the value of \code{name} is \code{NULL}, the
    2754 value of \code{location} is used.  If the value of \code{name} is not
    2755 \code{NULL}, then \code{location} must be set to
    2756 \code{PS_LIST_UNKNOWN}.  If the key matches a metadata item, the item
    2757 is removed from the metadata and \code{true} is returned; otherwise,
    2758 \code{false} is returned.  If the key is not unique, then \emph{all}
    2759 items corresponding to the key are removed, and \code{true} is
    2760 returned.
    2761 %
    2762 \begin{prototype}
    2763 bool psMetadataRemove(psMetadata *md, long location, const char *key);
     2753location in the list.  For \code{psMetadataRemoveKey}, if the key
     2754matches a metadata item, the item is removed from the metadata and
     2755\code{true} is returned; otherwise, \code{false} is returned.  If the
     2756key is not unique, then \emph{all} items corresponding to the key are
     2757removed, and \code{true} is returned.  For
     2758\code{psMetadataRemoveIndex}, the metadata item at the specified
     2759\code{location} is removed, if valid, and \code{true} is returned;
     2760otherwise the function returns \code{false}.
     2761%
     2762\begin{prototype}
     2763bool psMetadataRemoveKey(psMetadata *md, const char *key);
     2764bool psMetadataRemoveIndex(psMetadata *md, int location);
    27642765\end{prototype}
    27652766
Note: See TracChangeset for help on using the changeset viewer.