IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2005, 9:12:01 AM (21 years ago)
Author:
desonia
Message:

massive restructuring of codebase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/xml/psXML.h

    r4409 r4540  
    1 /** @file  psMetadataIO.h
     1/** @file  psXML.h
    22 *
    3  *  @brief Contains metadata input/output functions.
     3 *  @brief Contains XML functions.
    44 *
    5  *  This file defines functions to read and write metadata to/from an external file.
     5 *  This file defines functions to read metadata from an XML file.
    66 *
    7  *  @ingroup Metadata
     7 *  @ingroup XML
    88 *
    99 *  @author Ross Harman, MHPCC
    1010 *  @author Robert DeSonia, MHPCC
    1111 *
    12  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-28 20:17:52 $
     12 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-07-12 19:12:01 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1616 */
    17 #ifndef PS_METADATAIO_H
    18 #define PS_METADATAIO_H
     17#ifndef PS_XML_H
     18#define PS_XML_H
    1919
    20 /// @addtogroup Metadata
     20#include "psMetadata.h"
     21#include "psMetadataConfig.h"
     22
     23/// @addtogroup XML
    2124/// @{
    22 
    23 /** A metadata data structure used in parsing arrays.
    24  * 
    25  *  Contains array information and the metadata storage location.
    26 */
    27 typedef struct
    28 {
    29     psArray*    nonUniqueKeyArray;     ///< non-unique key names
    30     psArray*    typeArray;             ///< array of user defined types
    31     psArray*    templateArray;         ///< array of user type templates
    32     psMetadata* metadata;              ///< metadata container
    33     char*       name;                  ///< name of key
    34 }
    35 p_psParseLevelInfo;
    36 
    37 /** Allocates a p_psParseLevelInfo structure
    38  *   
    39  *  @return p_psParseLevelInfo* :   new p_psParseLevelInfo struct
    40  */
    41 p_psParseLevelInfo* p_psParseLevelInfoAlloc(void);
    42 
    43 /** Print metadata item to file.
    44  *
    45  *  Metadata items may be printed to an open file descriptor based on a
    46  *  provided format. The format is a sprintf format statement with exactly
    47  *  one % formatting command. If the metadata item type is a numeric type,
    48  *  this formatting command must also be numeric, and the type conversion
    49  *  performed to the value to match the format type. If the metadata type is
    50  *  a string, the fromatting command must also be for a string. If the
    51  *  metadata type is any other data type, printing is not allowed.
    52  *
    53  * @return psMetadataItem* : Pointer metadata item.
    54  */
    55 bool psMetadataItemPrint(
    56     FILE * fd,                         ///< Pointer to file to write metadata item.
    57     const char *format,                ///< Format to print metadata item.
    58     const psMetadataItem* item         ///< Metadata item to print.
    59 );
    60 
    61 /** Read metadata header.
    62  *
    63  *  Read a metadata header from file. If the file is not found, an error is
    64  *  reported.
    65  *
    66  *  @return psMetadata* : Pointer to resulting metadata.
    67  */
    68 psMetadata* psMetadataReadHeader(
    69     psMetadata* output,                ///< Resulting metadata from read.
    70     char *extName,                     ///< File name extension string.
    71     psS32 extNum,                      ///< File name extension number. Starts at 1.
    72     char *fileName                     ///< Name of file to read.
    73 );
    74 
    75 /** Read metadata configuration file.
    76  *
    77  *  Loads pre-defined settings by parsing a configuration file into a psMetadata structure.
    78  *
    79  *  @return psMetadata* : Resulting metadata from read.
    80  */
    81 psMetadata* psMetadataConfigParse(
    82     psMetadata* md,                    ///< Resulting metadata from read.
    83     unsigned int *nFail,               ///< Number of failed lines.
    84     const char *fileName,              ///< Name of file to read.
    85     bool overwrite                     ///< Allow overwrite of duplicate specifications.
    86 );
    87 
    88 /** Read XML metadata configuration file.
    89  *
    90  *  Loads pre-defined XML settings by parsing a configuration file into a psMetadata structure.
    91  *
    92  *  @return psMetadata* : Resulting metadata from read.
    93  */
    9425
    9526psMetadata*  psMetadataConfigParseXml(
     
    10233/// @}
    10334
    104 #endif // #ifndef PS_METADATAIO_H
     35#endif // #ifndef PS_XML_H
Note: See TracChangeset for help on using the changeset viewer.