IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6714


Ignore:
Timestamp:
Mar 27, 2006, 4:17:08 PM (20 years ago)
Author:
magnier
Message:

added PS_META_NO_REPLACE concept

Location:
branches/rel10_ifa/psLib/src/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psLib/src/types/psMetadata.c

    r6549 r6714  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.99.4.3 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-03-09 02:00:21 $
     14 *  @version $Revision: 1.99.4.4 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-03-28 02:17:08 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    528528        } else {
    529529            // default is to error on duplicate entry.
     530            if ((flags & PS_META_NO_REPLACE) != 0) {
     531                return true;
     532            }
    530533            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    531534                    PS_ERRORTEXT_psMetadata_DUPLICATE_NOT_ALLOWED);
  • branches/rel10_ifa/psLib/src/types/psMetadata.h

    r6433 r6714  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.74.4.1 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2006-02-16 08:13:16 $
     13*  @version $Revision: 1.74.4.2 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2006-03-28 02:17:08 $
    1515*
    1616*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5959    PS_META_DEFAULT = 0,               ///< default behaviour (duplicate entry is an error)
    6060    PS_META_REPLACE = 0x1000000,       ///< allow entry to be replaced
    61     PS_META_DUPLICATE_OK = 0x2000000,  ///< allow duplicate entries
    62     PS_META_NULL = 0x4000000           ///< psMetadataItem.data is a NULL value
     61    PS_META_NO_REPLACE = 0x2000000,    ///< duplicate entry is silently skipped
     62    PS_META_DUPLICATE_OK = 0x4000000,  ///< allow duplicate entries
     63    PS_META_NULL = 0x8000000           ///< psMetadataItem.data is a NULL value
    6364} psMetadataFlags;
    6465
Note: See TracChangeset for help on using the changeset viewer.