IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 20, 2015, 12:45:53 PM (11 years ago)
Author:
bills
Message:

add set_ to the arguments to the add and update modes which is current
ippTools practice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pstamptool.c

    r38157 r38158  
    17271727    PS_ASSERT_PTR_NON_NULL(config, false);
    17281728
    1729     PXOPT_LOOKUP_STR(domainName,      config->args, "-domain",  true, false);
    1730     PXOPT_LOOKUP_S32(accessLevel,     config->args, "-accessLevel", true, false);
    1731     PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-defaultProduct",  false, false);
    1732     PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-defaultLabel",  false, false);
     1729    PXOPT_LOOKUP_STR(domainName,      config->args, "-set_domain",  true, false);
     1730    PXOPT_LOOKUP_S32(accessLevel,     config->args, "-set_accessLevel", true, false);
     1731    PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-set_defaultProduct",  false, false);
     1732    PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-set_defaultLabel",  false, false);
    17331733
    17341734    if (!pstampUserDomainInsert(config->dbh,
     
    17491749
    17501750    PXOPT_LOOKUP_STR(domainName,      config->args, "-domain",  true, false);
    1751     PXOPT_LOOKUP_S32(accessLevel,     config->args, "-accessLevel", false, false);
    1752     PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-defaultProduct",  false, false);
    1753     PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-defaultLabel",  false, false);
     1751    PXOPT_LOOKUP_S32(accessLevel,     config->args, "-set_accessLevel", false, false);
     1752    PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-set_defaultProduct",  false, false);
     1753    PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-set_defaultLabel",  false, false);
    17541754
    17551755    if (!accessLevel && !defaultProduct && !defaultLabel) {
     
    18581858    PS_ASSERT_PTR_NON_NULL(config, false);
    18591859
    1860     PXOPT_LOOKUP_STR(userName,        config->args, "-user",  true, false);
    1861     PXOPT_LOOKUP_STR(domainName,      config->args, "-domain",  true, false);
    1862     PXOPT_LOOKUP_S32(accessLevel,     config->args, "-accessLevel", false, false);
    1863     PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-defaultProduct",  false, false);
    1864     PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-defaultLabel",  false, false);
     1860    PXOPT_LOOKUP_STR(userName,        config->args, "-set_user",  true, false);
     1861    PXOPT_LOOKUP_STR(domainName,      config->args, "-set_domain",  true, false);
     1862    PXOPT_LOOKUP_S32(accessLevel,     config->args, "-set_accessLevel", false, false);
     1863    PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-set_defaultProduct",  false, false);
     1864    PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-set_defaultLabel",  false, false);
    18651865
    18661866    if (!pstampUserInsert(config->dbh,
     
    18831883    PXOPT_LOOKUP_STR(userName,        config->args, "-user",  true, false);
    18841884    PXOPT_LOOKUP_STR(domainName,      config->args, "-domain",  true, false);
    1885     PXOPT_LOOKUP_S32(accessLevel,     config->args, "-accessLevel", false, false);
    1886     PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-defaultProduct",  false, false);
    1887     PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-defaultLabel",  false, false);
     1885    PXOPT_LOOKUP_S32(accessLevel,     config->args, "-set_accessLevel", false, false);
     1886    PXOPT_LOOKUP_STR(defaultProduct,  config->args, "-set_defaultProduct",  false, false);
     1887    PXOPT_LOOKUP_STR(defaultLabel,    config->args, "-set_defaultLabel",  false, false);
    18881888
    18891889    if (!accessLevel && !defaultProduct && !defaultLabel) {
     
    19961996    PS_ASSERT_PTR_NON_NULL(config, false);
    19971997
    1998     PXOPT_LOOKUP_S64(proj_id,         config->args, "-proj_id", false, false);
    1999     PXOPT_LOOKUP_STR(project_name,    config->args, "-project_name",  false, false);
    2000     PXOPT_LOOKUP_S32(accessLevel,     config->args, "-accessLevel", true, false);
    2001     PXOPT_LOOKUP_F32(mjd_min,         config->args, "-mjd_min", false, false);
    2002     PXOPT_LOOKUP_F32(mjd_max,         config->args, "-mjd_max", false, false);
     1998    PXOPT_LOOKUP_S64(proj_id,         config->args, "-set_proj_id", false, false);
     1999    PXOPT_LOOKUP_STR(project_name,    config->args, "-set_project_name",  false, false);
     2000    PXOPT_LOOKUP_S32(accessLevel,     config->args, "-set_accessLevel", true, false);
     2001    PXOPT_LOOKUP_F32(mjd_min,         config->args, "-set_mjd_min", false, false);
     2002    PXOPT_LOOKUP_F32(mjd_max,         config->args, "-set_mjd_max", false, false);
    20032003
    20042004    if (proj_id) {
Note: See TracChangeset for help on using the changeset viewer.