Changeset 1639
- Timestamp:
- Aug 27, 2004, 11:41:17 AM (22 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
archive/pslib/include/psMetadata.h (modified) (1 diff)
-
doc/pslib/ChangeLogSDRS.tex (modified) (1 diff)
-
doc/pslib/psLibSDRS.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMetadata.h
r1600 r1639 99 99 100 100 /// reset the iterator to the start of the list 101 void psMetadataSetIterator(psMetadata *md ///< metadata to set iterator for 102 ); 101 void psMetadataSetIterator(psMetadata *md, ///< metadata to set iterator for 102 int which, ///< Which iterator to set 103 int where ///< Where to set iterator 104 ); 103 105 104 106 /// get the next item in the sequence -
trunk/doc/pslib/ChangeLogSDRS.tex
r1636 r1639 256 256 dimension. 257 257 \item Added \code{psLibVersion} (bug 156). 258 \item Added specification of iterator (\code{which}) to 259 \code{psMetadataSetIterator}. 258 260 \end{itemize} -
trunk/doc/pslib/psLibSDRS.tex
r1636 r1639 1 %%% $Id: psLibSDRS.tex,v 1.8 8 2004-08-27 20:51:33price Exp $1 %%% $Id: psLibSDRS.tex,v 1.89 2004-08-27 21:38:46 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 3415 3415 \end{verbatim} 3416 3416 3417 The metadata may be iterated over by (re-)setting the iterator to a3418 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 value3424 \code{which} specifies the iterator to be used. In setting the3417 The metadata may be iterated over by (re-)setting a particular 3418 iterator, \code{which}, to a location in the \code{psMetadata} list, 3419 and getting the previous or next item. \code{psMetadataGetNext} has 3420 the ability to match the beginning of a key, e.g., if the user only 3421 wants to iterate through \code{IPP.machines.sky} and doesn't want to 3422 bother with \code{IPP.machines.detector}. The iterator should iterate 3423 over every item of metadata --- even those that are non-unique. The 3424 value \code{which} specifies the iterator to be used. In setting the 3425 3425 iterator, the position of the iterator is defined by \code{where}, 3426 3426 which follows the conventions of the \code{psList} iterators. 3427 3427 \begin{verbatim} 3428 void psMetadataSetIterator(psMetadata *md, int wh ere);3428 void psMetadataSetIterator(psMetadata *md, int which, int where); 3429 3429 psMetadataItem *psMetadataGetNext(psMetadata *md, const char *match, int which); 3430 3430 psMetadataItem *psMetadataGetPrevious(psMetadata *md, const char *match, int which);
Note:
See TracChangeset
for help on using the changeset viewer.
