IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1639


Ignore:
Timestamp:
Aug 27, 2004, 11:41:17 AM (22 years ago)
Author:
Paul Price
Message:

Adding specification of iterator for psMetadataSetIterator.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psMetadata.h

    r1600 r1639  
    9999
    100100/// reset the iterator to the start of the list
    101 void psMetadataSetIterator(psMetadata *md ///< metadata to set iterator for
    102     );
     101void psMetadataSetIterator(psMetadata *md, ///< metadata to set iterator for
     102                           int which,   ///< Which iterator to set
     103                           int where    ///< Where to set iterator
     104                           );
    103105
    104106/// get the next item in the sequence
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r1636 r1639  
    256256  dimension.
    257257\item Added \code{psLibVersion} (bug 156).
     258\item Added specification of iterator (\code{which}) to
     259  \code{psMetadataSetIterator}.
    258260\end{itemize}
  • trunk/doc/pslib/psLibSDRS.tex

    r1636 r1639  
    1 %%% $Id: psLibSDRS.tex,v 1.88 2004-08-27 20:51:33 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.89 2004-08-27 21:38:46 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    34153415\end{verbatim}
    34163416
    3417 The metadata may be iterated over by (re-)setting the iterator to a
    3418 location in the \code{psMetadata} list, and getting the previous or
    3419 next item.  \code{psMetadataGetNext} has the ability to match the
    3420 beginning of a key, e.g., if the user only wants to iterate through
    3421 \code{IPP.machines.sky} and doesn't want to bother with
    3422 \code{IPP.machines.detector}.  The iterator should iterate over every
    3423 item of metadata --- even those that are non-unique.  The value
    3424 \code{which} specifies the iterator to be used.  In setting the
     3417The metadata may be iterated over by (re-)setting a particular
     3418iterator, \code{which}, to a location in the \code{psMetadata} list,
     3419and getting the previous or next item.  \code{psMetadataGetNext} has
     3420the ability to match the beginning of a key, e.g., if the user only
     3421wants to iterate through \code{IPP.machines.sky} and doesn't want to
     3422bother with \code{IPP.machines.detector}.  The iterator should iterate
     3423over every item of metadata --- even those that are non-unique.  The
     3424value \code{which} specifies the iterator to be used.  In setting the
    34253425iterator, the position of the iterator is defined by \code{where},
    34263426which follows the conventions of the \code{psList} iterators.
    34273427\begin{verbatim}
    3428 void psMetadataSetIterator(psMetadata *md, int where);
     3428void psMetadataSetIterator(psMetadata *md, int which, int where);
    34293429psMetadataItem *psMetadataGetNext(psMetadata *md, const char *match, int which);
    34303430psMetadataItem *psMetadataGetPrevious(psMetadata *md, const char *match, int which);
Note: See TracChangeset for help on using the changeset viewer.