Changeset 8306 for trunk/ippdb/src/ippdb.c
- Timestamp:
- Aug 11, 2006, 5:37:47 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/src/ippdb.c (modified) (31 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/src/ippdb.c
r8283 r8306 481 481 } 482 482 483 bool weatherInsertObjects(psDB *dbh, psArray *objects) 484 { 485 for (long i = 0; i < psArrayLength(objects); i++) { 486 if (!weatherInsertObject(dbh, objects->data[i])) { 487 return false; 488 } 489 } 490 491 return true; 492 } 493 483 494 weatherRow *weatherPopObject(psDB *dbh) 484 495 { … … 1029 1040 } 1030 1041 1042 bool skyp_transparencyInsertObjects(psDB *dbh, psArray *objects) 1043 { 1044 for (long i = 0; i < psArrayLength(objects); i++) { 1045 if (!skyp_transparencyInsertObject(dbh, objects->data[i])) { 1046 return false; 1047 } 1048 } 1049 1050 return true; 1051 } 1052 1031 1053 skyp_transparencyRow *skyp_transparencyPopObject(psDB *dbh) 1032 1054 { … … 1611 1633 } 1612 1634 1635 bool skyp_absorptionInsertObjects(psDB *dbh, psArray *objects) 1636 { 1637 for (long i = 0; i < psArrayLength(objects); i++) { 1638 if (!skyp_absorptionInsertObject(dbh, objects->data[i])) { 1639 return false; 1640 } 1641 } 1642 1643 return true; 1644 } 1645 1613 1646 skyp_absorptionRow *skyp_absorptionPopObject(psDB *dbh) 1614 1647 { … … 2166 2199 } 2167 2200 2201 bool skyp_emissionInsertObjects(psDB *dbh, psArray *objects) 2202 { 2203 for (long i = 0; i < psArrayLength(objects); i++) { 2204 if (!skyp_emissionInsertObject(dbh, objects->data[i])) { 2205 return false; 2206 } 2207 } 2208 2209 return true; 2210 } 2211 2168 2212 skyp_emissionRow *skyp_emissionPopObject(psDB *dbh) 2169 2213 { … … 2702 2746 } 2703 2747 2748 bool dimmInsertObjects(psDB *dbh, psArray *objects) 2749 { 2750 for (long i = 0; i < psArrayLength(objects); i++) { 2751 if (!dimmInsertObject(dbh, objects->data[i])) { 2752 return false; 2753 } 2754 } 2755 2756 return true; 2757 } 2758 2704 2759 dimmRow *dimmPopObject(psDB *dbh) 2705 2760 { … … 3232 3287 } 3233 3288 3289 bool skyp_irInsertObjects(psDB *dbh, psArray *objects) 3290 { 3291 for (long i = 0; i < psArrayLength(objects); i++) { 3292 if (!skyp_irInsertObject(dbh, objects->data[i])) { 3293 return false; 3294 } 3295 } 3296 3297 return true; 3298 } 3299 3234 3300 skyp_irRow *skyp_irPopObject(psDB *dbh) 3235 3301 { … … 3716 3782 } 3717 3783 3784 bool domeInsertObjects(psDB *dbh, psArray *objects) 3785 { 3786 for (long i = 0; i < psArrayLength(objects); i++) { 3787 if (!domeInsertObject(dbh, objects->data[i])) { 3788 return false; 3789 } 3790 } 3791 3792 return true; 3793 } 3794 3718 3795 domeRow *domePopObject(psDB *dbh) 3719 3796 { … … 4194 4271 } 4195 4272 4273 bool telescopeInsertObjects(psDB *dbh, psArray *objects) 4274 { 4275 for (long i = 0; i < psArrayLength(objects); i++) { 4276 if (!telescopeInsertObject(dbh, objects->data[i])) { 4277 return false; 4278 } 4279 } 4280 4281 return true; 4282 } 4283 4196 4284 telescopeRow *telescopePopObject(psDB *dbh) 4197 4285 { … … 4688 4776 } 4689 4777 4778 bool summitExpInsertObjects(psDB *dbh, psArray *objects) 4779 { 4780 for (long i = 0; i < psArrayLength(objects); i++) { 4781 if (!summitExpInsertObject(dbh, objects->data[i])) { 4782 return false; 4783 } 4784 } 4785 4786 return true; 4787 } 4788 4690 4789 summitExpRow *summitExpPopObject(psDB *dbh) 4691 4790 { … … 5181 5280 } 5182 5281 5282 bool pzPendingExpInsertObjects(psDB *dbh, psArray *objects) 5283 { 5284 for (long i = 0; i < psArrayLength(objects); i++) { 5285 if (!pzPendingExpInsertObject(dbh, objects->data[i])) { 5286 return false; 5287 } 5288 } 5289 5290 return true; 5291 } 5292 5183 5293 pzPendingExpRow *pzPendingExpPopObject(psDB *dbh) 5184 5294 { … … 5692 5802 } 5693 5803 5804 bool pzPendingImfileInsertObjects(psDB *dbh, psArray *objects) 5805 { 5806 for (long i = 0; i < psArrayLength(objects); i++) { 5807 if (!pzPendingImfileInsertObject(dbh, objects->data[i])) { 5808 return false; 5809 } 5810 } 5811 5812 return true; 5813 } 5814 5694 5815 pzPendingImfileRow *pzPendingImfilePopObject(psDB *dbh) 5695 5816 { … … 6197 6318 } 6198 6319 6320 bool newExpInsertObjects(psDB *dbh, psArray *objects) 6321 { 6322 for (long i = 0; i < psArrayLength(objects); i++) { 6323 if (!newExpInsertObject(dbh, objects->data[i])) { 6324 return false; 6325 } 6326 } 6327 6328 return true; 6329 } 6330 6199 6331 newExpRow *newExpPopObject(psDB *dbh) 6200 6332 { … … 6671 6803 { 6672 6804 return newImfileInsert(dbh, object->exp_id, object->class, object->class_id, object->uri); 6805 } 6806 6807 bool newImfileInsertObjects(psDB *dbh, psArray *objects) 6808 { 6809 for (long i = 0; i < psArrayLength(objects); i++) { 6810 if (!newImfileInsertObject(dbh, objects->data[i])) { 6811 return false; 6812 } 6813 } 6814 6815 return true; 6673 6816 } 6674 6817 … … 7357 7500 { 7358 7501 return rawDetrendExpInsert(dbh, object->exp_id, object->camera, object->telescope, object->exp_type, object->imfiles, object->filter, object->airmass, object->ra, object->decl, object->exp_time, object->bg, object->bg_stdev, object->bg_mean_stdev, object->alt, object->az, object->ccd_temp, object->posang); 7502 } 7503 7504 bool rawDetrendExpInsertObjects(psDB *dbh, psArray *objects) 7505 { 7506 for (long i = 0; i < psArrayLength(objects); i++) { 7507 if (!rawDetrendExpInsertObject(dbh, objects->data[i])) { 7508 return false; 7509 } 7510 } 7511 7512 return true; 7359 7513 } 7360 7514 … … 8201 8355 } 8202 8356 8357 bool rawScienceExpInsertObjects(psDB *dbh, psArray *objects) 8358 { 8359 for (long i = 0; i < psArrayLength(objects); i++) { 8360 if (!rawScienceExpInsertObject(dbh, objects->data[i])) { 8361 return false; 8362 } 8363 } 8364 8365 return true; 8366 } 8367 8203 8368 rawScienceExpRow *rawScienceExpPopObject(psDB *dbh) 8204 8369 { … … 9026 9191 } 9027 9192 9193 bool rawImfileInsertObjects(psDB *dbh, psArray *objects) 9194 { 9195 for (long i = 0; i < psArrayLength(objects); i++) { 9196 if (!rawImfileInsertObject(dbh, objects->data[i])) { 9197 return false; 9198 } 9199 } 9200 9201 return true; 9202 } 9203 9028 9204 rawImfileRow *rawImfilePopObject(psDB *dbh) 9029 9205 { … … 9615 9791 } 9616 9792 9793 bool p1PendingExpInsertObjects(psDB *dbh, psArray *objects) 9794 { 9795 for (long i = 0; i < psArrayLength(objects); i++) { 9796 if (!p1PendingExpInsertObject(dbh, objects->data[i])) { 9797 return false; 9798 } 9799 } 9800 9801 return true; 9802 } 9803 9617 9804 p1PendingExpRow *p1PendingExpPopObject(psDB *dbh) 9618 9805 { … … 10065 10252 } 10066 10253 10254 bool p2PendingExpInsertObjects(psDB *dbh, psArray *objects) 10255 { 10256 for (long i = 0; i < psArrayLength(objects); i++) { 10257 if (!p2PendingExpInsertObject(dbh, objects->data[i])) { 10258 return false; 10259 } 10260 } 10261 10262 return true; 10263 } 10264 10067 10265 p2PendingExpRow *p2PendingExpPopObject(psDB *dbh) 10068 10266 { … … 10563 10761 } 10564 10762 10763 bool p2PendingImfileInsertObjects(psDB *dbh, psArray *objects) 10764 { 10765 for (long i = 0; i < psArrayLength(objects); i++) { 10766 if (!p2PendingImfileInsertObject(dbh, objects->data[i])) { 10767 return false; 10768 } 10769 } 10770 10771 return true; 10772 } 10773 10565 10774 p2PendingImfileRow *p2PendingImfilePopObject(psDB *dbh) 10566 10775 { … … 11049 11258 } 11050 11259 11260 bool p2DoneExpInsertObjects(psDB *dbh, psArray *objects) 11261 { 11262 for (long i = 0; i < psArrayLength(objects); i++) { 11263 if (!p2DoneExpInsertObject(dbh, objects->data[i])) { 11264 return false; 11265 } 11266 } 11267 11268 return true; 11269 } 11270 11051 11271 p2DoneExpRow *p2DoneExpPopObject(psDB *dbh) 11052 11272 { … … 11547 11767 } 11548 11768 11769 bool p2DoneImfileInsertObjects(psDB *dbh, psArray *objects) 11770 { 11771 for (long i = 0; i < psArrayLength(objects); i++) { 11772 if (!p2DoneImfileInsertObject(dbh, objects->data[i])) { 11773 return false; 11774 } 11775 } 11776 11777 return true; 11778 } 11779 11549 11780 p2DoneImfileRow *p2DoneImfilePopObject(psDB *dbh) 11550 11781 { … … 12033 12264 } 12034 12265 12266 bool p3PendingExpInsertObjects(psDB *dbh, psArray *objects) 12267 { 12268 for (long i = 0; i < psArrayLength(objects); i++) { 12269 if (!p3PendingExpInsertObject(dbh, objects->data[i])) { 12270 return false; 12271 } 12272 } 12273 12274 return true; 12275 } 12276 12035 12277 p3PendingExpRow *p3PendingExpPopObject(psDB *dbh) 12036 12278 { … … 12460 12702 } 12461 12703 12704 bool detRunInsertObjects(psDB *dbh, psArray *objects) 12705 { 12706 for (long i = 0; i < psArrayLength(objects); i++) { 12707 if (!detRunInsertObject(dbh, objects->data[i])) { 12708 return false; 12709 } 12710 } 12711 12712 return true; 12713 } 12714 12462 12715 detRunRow *detRunPopObject(psDB *dbh) 12463 12716 { … … 12914 13167 } 12915 13168 13169 bool detInputExpInsertObjects(psDB *dbh, psArray *objects) 13170 { 13171 for (long i = 0; i < psArrayLength(objects); i++) { 13172 if (!detInputExpInsertObject(dbh, objects->data[i])) { 13173 return false; 13174 } 13175 } 13176 13177 return true; 13178 } 13179 12916 13180 detInputExpRow *detInputExpPopObject(psDB *dbh) 12917 13181 { … … 13407 13671 } 13408 13672 13673 bool detProcessedImfileInsertObjects(psDB *dbh, psArray *objects) 13674 { 13675 for (long i = 0; i < psArrayLength(objects); i++) { 13676 if (!detProcessedImfileInsertObject(dbh, objects->data[i])) { 13677 return false; 13678 } 13679 } 13680 13681 return true; 13682 } 13683 13409 13684 detProcessedImfileRow *detProcessedImfilePopObject(psDB *dbh) 13410 13685 { … … 13899 14174 } 13900 14175 14176 bool detStackedImfileInsertObjects(psDB *dbh, psArray *objects) 14177 { 14178 for (long i = 0; i < psArrayLength(objects); i++) { 14179 if (!detStackedImfileInsertObject(dbh, objects->data[i])) { 14180 return false; 14181 } 14182 } 14183 14184 return true; 14185 } 14186 13901 14187 detStackedImfileRow *detStackedImfilePopObject(psDB *dbh) 13902 14188 { … … 14391 14677 } 14392 14678 14679 bool detNormalizedImfileInsertObjects(psDB *dbh, psArray *objects) 14680 { 14681 for (long i = 0; i < psArrayLength(objects); i++) { 14682 if (!detNormalizedImfileInsertObject(dbh, objects->data[i])) { 14683 return false; 14684 } 14685 } 14686 14687 return true; 14688 } 14689 14393 14690 detNormalizedImfileRow *detNormalizedImfilePopObject(psDB *dbh) 14394 14691 { … … 14847 15144 } 14848 15145 15146 bool detMasterFrameInsertObjects(psDB *dbh, psArray *objects) 15147 { 15148 for (long i = 0; i < psArrayLength(objects); i++) { 15149 if (!detMasterFrameInsertObject(dbh, objects->data[i])) { 15150 return false; 15151 } 15152 } 15153 15154 return true; 15155 } 15156 14849 15157 detMasterFrameRow *detMasterFramePopObject(psDB *dbh) 14850 15158 { … … 15298 15606 } 15299 15607 15608 bool detMasterImfileInsertObjects(psDB *dbh, psArray *objects) 15609 { 15610 for (long i = 0; i < psArrayLength(objects); i++) { 15611 if (!detMasterImfileInsertObject(dbh, objects->data[i])) { 15612 return false; 15613 } 15614 } 15615 15616 return true; 15617 } 15618 15300 15619 detMasterImfileRow *detMasterImfilePopObject(psDB *dbh) 15301 15620 { … … 15832 16151 } 15833 16152 16153 bool detResidImfileAnalysisInsertObjects(psDB *dbh, psArray *objects) 16154 { 16155 for (long i = 0; i < psArrayLength(objects); i++) { 16156 if (!detResidImfileAnalysisInsertObject(dbh, objects->data[i])) { 16157 return false; 16158 } 16159 } 16160 16161 return true; 16162 } 16163 15834 16164 detResidImfileAnalysisRow *detResidImfileAnalysisPopObject(psDB *dbh) 15835 16165 { … … 16376 16706 } 16377 16707 16708 bool detResidExpAnalysisInsertObjects(psDB *dbh, psArray *objects) 16709 { 16710 for (long i = 0; i < psArrayLength(objects); i++) { 16711 if (!detResidExpAnalysisInsertObject(dbh, objects->data[i])) { 16712 return false; 16713 } 16714 } 16715 16716 return true; 16717 } 16718 16378 16719 detResidExpAnalysisRow *detResidExpAnalysisPopObject(psDB *dbh) 16379 16720 {
Note:
See TracChangeset
for help on using the changeset viewer.
