IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 5, 2004, 3:06:27 PM (22 years ago)
Author:
harman
Message:

Changes for metadata IO

File:
1 edited

Legend:

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

    r1844 r1970  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-09-21 23:27:55 $
     13*  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-10-06 01:06:27 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2121#include <stdarg.h>
    2222#include <stdio.h>
    23 #include <fitsio.h>
    2423
    2524#include "psHash.h"
     
    4039    PS_META_F64,                       ///< Double-precision float data.
    4140    PS_META_STR,                       ///< String data (Stored in as void *).
     41    PS_META_VEC,                       ///< Vector data (Stored in as void *).
    4242    PS_META_IMG,                       ///< Image data (Stored in as void *).
    4343    PS_META_JPEG,                      ///< JPEG data (Stored in as void *).
     
    8484psMetadata;
    8585
    86 /*****************************************************************************/
    87 
    88 /* FUNCTION PROTOTYPES                                                       */
    89 
    90 /*****************************************************************************/
    91 
    9286/** Create a metadata item.
    9387 *
     
    248242);
    249243
    250 /** Print metadata item to file.
    251  *
    252  *  Metadata items may be printed to an open file descriptor based on a
    253  *  provided format. The format is a sprintf format statement with exactly
    254  *  one % formatting command. If the metadata item type is a numeric type,
    255  *  this formatting command must also be numeric, and the type conversion
    256  *  performed to the value to match the format type. If the metadata type is
    257  *  a string, the fromatting command must also be for a string. If the
    258  *  metadata type is any other data type, printing is not allowed.
    259  *
    260  * @return psMetadataItem* : Pointer metadata item.
    261  */
    262 void psMetadataItemPrint(
    263     FILE * fd,                         ///< Pointer to file to write metadata item.
    264     const char *format,                ///< Format to print metadata item.
    265     const psMetadataItem* restrict metadataItem ///< Metadata item to print.
    266 );
    267 
    268 /** Read metadata header.
    269  *
    270  *  Read a metadata header from file. If the file is not found, an error is
    271  *  reported. This file is currently unimplemented.
    272  *
    273  *  @return psMetadata* : Pointer metadata.
    274  */
    275 psMetadata* psMetadataReadHeader(
    276     psMetadata* output,                ///< Resulting metadata from read.
    277     char *extName,                     ///< File name extension string.
    278     int extNum,                        ///< File name extension number. Starts at 1.
    279     char *fileName                     ///< Name of file to read.
    280 );
    281244
    282245/// @}
Note: See TracChangeset for help on using the changeset viewer.