IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30098


Ignore:
Timestamp:
Dec 17, 2010, 9:50:23 AM (15 years ago)
Author:
eugene
Message:

add function to set the filerule count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psphot/src/psphotOutput.c

    r30006 r30098  
    1515    psFree (name);
    1616    return num;
     17}
     18
     19// convert filerule to filerule.NUM and look up in the config->arguments metadata
     20bool psphotFileruleCountSet(const pmConfig *config, const char *filerule, int num) {
     21
     22    psString name = NULL;
     23    psStringAppend(&name, "%s.NUM", filerule);
     24
     25    bool status = psMetadataAddS32(config->arguments, PS_LIST_TAIL, name, PS_META_REPLACE, "", num);
     26    psFree (name);
     27
     28    return status;
    1729}
    1830
Note: See TracChangeset for help on using the changeset viewer.