IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2004, 9:09:18 AM (22 years ago)
Author:
harman
Message:

Added new functions in SDRS 10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psMetadata.h

    r2607 r2648  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-12-03 23:14:34 $
     13*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-12-07 19:08:58 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5656typedef struct psMetadata
    5757{
    58     psList* restrict list;             ///< the metadata in linked-list
    59     psHash* restrict table;            ///< the metadata in a hash table
     58    psList*  list;                     ///< Metadata in linked-list
     59    psHash*  table;                    ///< Metadata in a hash table
    6060}
    6161psMetadata;
     
    148148 */
    149149psBool psMetadataAddItem(
    150     psMetadata* restrict md,           ///< Metadata collection to insert metadat item.
    151     psMetadataItem* restrict item,     ///< Metadata item to be added.
    152     psS32 location                     ///< Location to be added.
     150    psMetadata*  md,          ///< Metadata collection to insert metadat item.
     151    psMetadataItem*  item,    ///< Metadata item to be added.
     152    psS32 location            ///< Location to be added.
    153153);
    154154
     
    160160 */
    161161psBool psMetadataAdd(
    162     psMetadata* restrict md,           ///< Metadata collection to insert metadat item.
    163     psS32 where,                       ///< Location to be added.
    164     const char *name,                  ///< Name of metadata item.
    165     psElemType pType,                  ///< Primitive type.
    166     psMetadataType type,               ///< Type of metadata item.
    167     const char *comment,               ///< Comment for metadata item.
    168     ...                                ///< Arguments for name formatting and metadata item data.
     162    psMetadata* md,           ///< Metadata collection to insert metadat item.
     163    psS32 where,              ///< Location to be added.
     164    const char *name,         ///< Name of metadata item.
     165    psElemType pType,         ///< Primitive type.
     166    psMetadataType type,      ///< Type of metadata item.
     167    const char *comment,      ///< Comment for metadata item.
     168    ...                       ///< Arguments for name formatting and metadata item data.
    169169);
    170170
     
    180180 */
    181181psBool psMetadataRemove(
    182     psMetadata* restrict md,           ///< Metadata collection to insert metadat item.
    183     psS32 where,                       ///< Location to be removed.
    184     const char *restrict key           ///< Name of metadata key.
     182    psMetadata*  md,           ///< Metadata collection to remove metadata item.
     183    psS32 where,               ///< Location to be removed.
     184    const char * key           ///< Name of metadata key.
    185185);
    186186
     
    194194 */
    195195psMetadataItem* psMetadataLookup(
    196     psMetadata* restrict md,           ///< Metadata collection to insert metadata item.
    197     const char *restrict key           ///< Name of metadata key.
     196    psMetadata * md,           ///< Metadata collection to lookup metadata item.
     197    const char * key           ///< Name of metadata key.
     198);
     199
     200/** Find an item in the metadata collection based on key name and return its double precision value.
     201 *
     202 *  Items may be found in the metadata by providing a key. If the key is
     203 *  non-unique, the value of the first item is returned. If the item is not found, zero is
     204 *  returned.
     205 *
     206 * @return psF64 : Value of metadata item.
     207 */
     208psF64 psMetadataLookupF64(
     209    psMetadata *md,            ///< Metadata collection to lookup metadata item.
     210    const char *key            ///< Name of metadata key.
     211);
     212
     213/** Find an item in the metadata collection based on key name and return its integer value.
     214 *
     215 *  Items may be found in the metadata by providing a key. If the key is
     216 *  non-unique, the value of the first item is returned. If the item is not found, zero is
     217 *  returned.
     218 *
     219 * @return psS32 : Value of metadata item.
     220 */
     221psS32 psMetadataLookupS32(
     222    psMetadata *md,            ///< Metadata collection to lookup metadata item.
     223    const char *key            ///< Name of metadata key.
     224);
     225
     226/** Find an item in the metadata collection based on key name and return its integer value.
     227 *
     228 *  Items may be found in the metadata by providing a key. If the key is
     229 *  non-unique, the value of the first item is returned. If the item is not found, zero is
     230 *  returned.
     231 *
     232 * @return void* : Value of metadata item.
     233 */
     234void* psMetadataLookupPtr(
     235    psMetadata* md,            ///< Metadata collection to lookup metadata item.
     236    const char *key            ///< Name of metadata key.
    198237);
    199238
     
    206245 */
    207246psMetadataItem* psMetadataGet(
    208     psMetadata* restrict md,           ///< Metadata collection to insert metadat item.
    209     psS32 where                        ///< Location to be retrieved.
     247    psMetadata* md,           ///< Metadata collection to insert metadat item.
     248    psS32 where                ///< Location to be retrieved.
    210249);
    211250
     
    218257 */
    219258psBool psMetadataSetIterator(
    220     psMetadata* restrict md,           ///< Metadata collection to iterate.
    221     psS32 where                        ///< Location of iterator.
     259    psMetadata* md,           ///< Metadata collection to iterate.
     260    psS32 where                ///< Location of iterator.
    222261);
    223262
     
    229268 */
    230269psMetadataItem* psMetadataGetNext(
    231     psMetadata* restrict md,           ///< Metadata collection to iterate.
    232     const char *restrict match,        ///< Beginning of key name.
    233     psS32 which                        ///< Iterator to be used.
     270    psMetadata* md,           ///< Metadata collection to iterate.
     271    const char * match,        ///< Beginning of key name.
     272    psS32 which                ///< Iterator to be used.
    234273);
    235274
     
    241280 */
    242281psMetadataItem* psMetadataGetPrevious(
    243     psMetadata* restrict md,           ///< Metadata collection to iterate.
    244     const char *restrict match,        ///< Beginning of key name.
    245     psS32 which                        ///< Iterator to be used.
     282    psMetadata *md,            ///< Metadata collection to iterate.
     283    const char *match,         ///< Beginning of key name.
     284    psS32 which                ///< Iterator to be used.
    246285);
    247286
Note: See TracChangeset for help on using the changeset viewer.