Changeset 7304 for trunk/ippTools/src/dettool.c
- Timestamp:
- Jun 2, 2006, 11:58:39 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r7302 r7304 749 749 return false; 750 750 } 751 if (!det_id) { 752 psError(PS_ERR_UNKNOWN, true, "-det_id is required"); 753 return false; 754 } 751 755 psString class_id = psMetadataLookupStr(&status, config->args, "-class_id"); 752 756 if (!status) { … … 754 758 return false; 755 759 } 760 if (!class_id) { 761 psError(PS_ERR_UNKNOWN, true, "-class_id is required"); 762 return false; 763 } 756 764 psString uri = psMetadataLookupStr(&status, config->args, "-uri"); 757 765 if (!status) { … … 759 767 return false; 760 768 } 769 if (!uri) { 770 psError(PS_ERR_UNKNOWN, true, "-uri is required"); 771 return false; 772 } 773 psString stats = psMetadataLookupStr(&status, config->args, "-stats"); 774 if (!status) { 775 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats"); 776 return false; 777 } 778 if (!stats) { 779 psError(PS_ERR_UNKNOWN, true, "-stats is required"); 780 return false; 781 } 761 782 psString recipe = psMetadataLookupStr(&status, config->args, "-recipe"); 762 783 if (!status) { … … 764 785 return false; 765 786 } 766 psString stats = psMetadataLookupStr(&status, config->args, "-stats"); 767 if (!status) { 768 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats"); 787 if (!recipe) { 788 psError(PS_ERR_UNKNOWN, true, "-recipe is required"); 769 789 return false; 770 790 } … … 879 899 PS_ASSERT_PTR_NON_NULL(config, false); 880 900 901 // XXX det_id is requried as a simplification 902 bool status = false; 903 psString det_id = psMetadataLookupStr(&status, config->args, "-det_id"); 904 if (!status) { 905 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id"); 906 return false; 907 } 908 if (!det_id) { 909 psError(PS_ERR_UNKNOWN, true, "-det_id is required"); 910 return false; 911 } 912 881 913 // find all detStackedImfile for det_id 882 // XXX det_id is requried as a simplification883 914 psArray *stackedImfiles = 884 915 detStackedImfileSelectRowObjects(config->dbh, config->where, 0); … … 889 920 890 921 // find all class_ids for the det_id's associated detInputExps 891 // find detInputExps in det_id892 bool status = false;893 psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");894 if (!status) {895 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id");896 psFree(stackedImfiles);897 return false;898 }899 900 922 psArray *valid_class_ids = validDetInputClassIds(config, det_id); 901 923 if (!valid_class_ids) {
Note:
See TracChangeset
for help on using the changeset viewer.
