IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2010, 4:33:05 PM (16 years ago)
Author:
Paul Price
Message:

Adding first cut at bgtool, to implement background restoration pipeline.

Location:
branches/pap/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ippTools/src

    • Property svn:ignore
      •  

        old new  
        3939warptool
        4040staticskytool
         41
         42bgtool
  • branches/pap/ippTools/src/pxtools.c

    r28109 r28199  
    4848}
    4949
     50bool pxIsValidCleanedState(const char *state)
     51{
     52    PS_ASSERT_PTR_NON_NULL(state, false);
     53
     54    if (!strcmp(state, "cleaned")) return true;
     55    if (!strcmp(state, "purged")) return true;
     56    if (!strcmp(state, "scrubbed")) return true;
     57    return false;
     58}
     59
    5060psString pxMergeCodeVersions(psString version1, psString version2)
    5161{
     
    211221
    212222// change the value for tableName.columName from 'full' to 'cleaned' if necessary
    213 bool pxSetStateCleaned(const psString tableName, const psString columnName, psArray *rows)
     223bool pxSetStateCleaned(const char *tableName, const char *columnName, psArray *rows)
    214224{
    215225    for (long i = 0; i < psArrayLength(rows); i++) {
    216226        psMetadata *row = rows->data[i];
    217         psString state = psMetadataLookupStr(NULL, row, columnName);
     227        const char *state = psMetadataLookupStr(NULL, row, columnName);
    218228        if (!state) {
    219229            psError(PS_ERR_PROGRAMMING, false, "%s not found in row %ld of table %s",
Note: See TracChangeset for help on using the changeset viewer.