IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2005, 3:33:41 PM (21 years ago)
Author:
drobbin
Message:

psMetadataAddWhatever fxns now accept an int format parameter (bug504)

File:
1 edited

Legend:

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

    r4819 r4891  
    1010*  @author David Robbins, MHPCC
    1111*
    12 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-08-19 00:31:42 $
     12*  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-08-27 01:33:41 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    347347                    strncpy(content,
    348348                            (char*)cur_node->properties->next->next->children->content, MAXSTR);
    349                     psMetadataAddS32(meta, PS_LIST_TAIL, name, "",
     349                    psMetadataAddS32(meta, PS_LIST_TAIL, name, 0, "",
    350350                                     (int)strtol(content, NULL, 10));
    351351                    break;
     
    354354                    strncpy(content,
    355355                            (const char*)cur_node->properties->next->next->children->content, MAXSTR);
    356                     psMetadataAddF32(meta, PS_LIST_TAIL, name, "", strtof(content, NULL));
     356                    psMetadataAddF32(meta, PS_LIST_TAIL, name, 0, "", strtof(content, NULL));
    357357                    break;
    358358                case PS_DATA_F64:
     
    360360                    strncpy(content,
    361361                            (const char*)cur_node->properties->next->next->children->content, MAXSTR);
    362                     psMetadataAddF64(meta, PS_LIST_TAIL, name, "", strtod(content, NULL));
     362                    psMetadataAddF64(meta, PS_LIST_TAIL, name, 0, "", strtod(content, NULL));
    363363                    break;
    364364                case PS_DATA_STRING:
    365365                    strncpy(name, (const char*)cur_node->properties->children->content, MAXSTR);
    366                     psMetadataAddStr(meta, PS_LIST_TAIL, name, "",
     366                    psMetadataAddStr(meta, PS_LIST_TAIL, name, 0, "",
    367367                                     (const char*)cur_node->properties->next->next->children->content);
    368368                    break;
     
    382382                    psVector *vec = psVectorAlloc(strlen(content), elemType);
    383383                    storeValues(vec, content, elemType);
    384                     psMetadataAddVector(meta, PS_LIST_TAIL, name, "", vec);
     384                    psMetadataAddVector(meta, PS_LIST_TAIL, name, 0, "", vec);
    385385                    psFree(vec);
    386386                    break;
     
    390390                    psMetadata *temp = NULL;
    391391                    temp = xml2metadata(cur_node->children, nodeNum);
    392                     psMetadataAddMetadata(meta, PS_LIST_TAIL, name, "", temp);
     392                    psMetadataAddMetadata(meta, PS_LIST_TAIL, name, 0, "", temp);
    393393                    psFree(temp);
    394394                    break;
     
    401401                            !strncmp(content, "T", MAXSTR) ||
    402402                            !strncmp(content, "t", MAXSTR) ) {
    403                         psMetadataAddBool(meta, PS_LIST_TAIL, name, "", true);
     403                        psMetadataAddBool(meta, PS_LIST_TAIL, name, 0, "", true);
    404404                    } else if ( !strncmp(content, "false", MAXSTR) ||
    405405                                !strncmp(content, "FALSE", MAXSTR) ||
    406406                                !strncmp(content, "F", MAXSTR) ||
    407407                                !strncmp(content, "f", MAXSTR) ) {
    408                         psMetadataAddBool(meta, PS_LIST_TAIL, name, "", false);
     408                        psMetadataAddBool(meta, PS_LIST_TAIL, name, 0, "", false);
    409409                    } else {
    410410                        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
Note: See TracChangeset for help on using the changeset viewer.