IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2006, 12:00:34 PM (20 years ago)
Author:
jhoblitt
Message:

change psMetadataConfigParse() to operate on strings instead of files
add psMetadataConfigRead()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r8769 r8770  
    1 %%% $Id: psLibSDRS.tex,v 1.427 2006-09-07 21:50:57 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.428 2006-09-07 22:00:34 jhoblitt Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    30753075
    30763076\begin{prototype}
    3077 psMetadata *psMetadataConfigParse(psMetadata *md, unsigned int *nFail, const char *filename, bool overwrite);
    3078 psMetadata *psMetadataConfigParseStr(psMetadata *md, unsigned int *nFail, const char *str, bool overwrite);
     3077psMetadata *psMetadataConfigParse(psMetadata *md, unsigned int *nFail, const char *str, bool overwrite);
     3078psMetadata *psMetadataConfigRead(psMetadata *md, unsigned int *nFail, const char *filename, bool overwrite);
    30793079\end{prototype}
    30803080
    30813081Given a metadata container, \code{md}, and the name of a configuration
    3082 file, \code{filename}, \code{psMetadataConfigParse} shall parse the
    3083 configuration file, placing the contained key/type/value/comment quads
     3082file, \code{str}, \code{psMetadataConfigParse} shall parse the
     3083configuration fstring, placing the contained key/type/value/comment quads
    30843084into the metadata, and returning a pointer to the metadata structure.
    30853085The number of lines that failed to parse is returned in \code{nFail}.
     
    30883088If the metadata container is \code{NULL}, it shall be allocated. 
    30893089
    3090 \code{psMetadataConfigParseStr} is identical in behavor as
    3091 \code{psMetadataConfigParse} except that it parses from a string (\code{str})
    3092 instead of from a file.
    3093 
    3094 On error, the function shall return \code{NULL}.
     3090\code{psMetadataConfigRead} is identical in behavor to
     3091\code{psMetadataConfigParse} except that it parses from a file
     3092(\code{filename}) instead of from a string.
     3093
     3094On error, these functions shall return \code{NULL}.
    30953095
    30963096It is also useful to be able to convert a \code{psMetadata} structure into the
Note: See TracChangeset for help on using the changeset viewer.