Changeset 3930
- Timestamp:
- May 13, 2005, 12:07:26 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r3927 r3930 1 %%% $Id: psLibSDRS.tex,v 1.21 5 2005-05-13 21:48:05price Exp $1 %%% $Id: psLibSDRS.tex,v 1.216 2005-05-13 22:07:26 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 1374 1374 \begin{verbatim} 1375 1375 psVector *psVectorAlloc(int nalloc, psElemType type); 1376 psVector *psVectorRealloc( constpsVector *vector, int nalloc);1376 psVector *psVectorRealloc(psVector *vector, int nalloc); 1377 1377 \end{verbatim} 1378 1378 % … … 3996 3996 3997 3997 The metadata list component may be iterated over by using a 3998 \code{psListIterator} in a fashion equivalent to the usage for 3999 \code{psList}. The iterator may be set to a location in the 4000 \code{psMetadata} list, and the user may get the previous or next item 4001 in the list relative to that location. \code{psMetadataGetNext} has 4002 the ability to match the key using a POSIX regex, e.g., if the user 4003 only wants to iterate through \code{IPP.machines.sky} and doesn't want 4004 to bother with \code{IPP.machines.detector}. The iterator should 4005 iterate over every item in the metadata list, even those that are 4006 contained in a \code{PS_META_LIST}. The value \code{iterator} 4007 specifies the iterator to be used. In setting the iterator, the 4008 position of the iterator is defined by \code{location}, which follows 4009 the conventions of the \code{psList} iterators. 4010 \begin{verbatim} 4011 psListIterator *psMetadataIteratorAlloc(psMetadata *md, int location, const char *regex); 4012 bool psMetadataIteratorSet(psListIterator *iterator, int location); 4013 psMetadataItem *psMetadataGetAndIncrement(psListIterator *iterator); 4014 psMetadataItem *psMetadataGetAndDecrement(psListIterator *iterator); 3998 \code{psMetadataIterator} in a fashion equivalent to the 3999 \code{psListIterator}: 4000 \begin{verbatim} 4001 typedef struct { 4002 psListIterator* iter; ///< iterator for the psMetadata's psList 4003 regex_t* regex; ///< the subsetting regular expression 4004 } psMetadataIterator; 4005 \end{verbatim} 4006 4007 The iterator may be set to a location in the \code{psMetadata} list, 4008 and the user may get the previous or next item in the list relative to 4009 that location. \code{psMetadataGetNext} has the ability to match the 4010 key using a POSIX \code{regex}, e.g., if the user only wants to 4011 iterate through \code{IPP.machines.sky} and doesn't want to bother 4012 with \code{IPP.machines.detector}. The iterator should iterate over 4013 every item in the metadata list, even those that are contained in a 4014 \code{PS_META_LIST}. The value \code{iterator} specifies the iterator 4015 to be used. In setting the iterator, the position of the iterator is 4016 defined by \code{location}, which follows the conventions of the 4017 \code{psList} iterators. 4018 \begin{verbatim} 4019 psMetadataIterator *psMetadataIteratorAlloc(psMetadata *md, int location, const char *regex); 4020 bool psMetadataIteratorSet(psMetadataIterator *iterator, int location); 4021 psMetadataItem *psMetadataGetAndIncrement(psMetadataIterator *iterator); 4022 psMetadataItem *psMetadataGetAndDecrement(psMetadataIterator *iterator); 4015 4023 \end{verbatim} 4016 4024
Note:
See TracChangeset
for help on using the changeset viewer.
