Changeset 16731
- Timestamp:
- Feb 28, 2008, 3:04:07 PM (18 years ago)
- Location:
- trunk/ippdb
- Files:
-
- 15 edited
-
Makefile.am (modified) (2 diffs)
-
configure.ac (modified) (1 diff)
-
src/ippdb.c (modified) (25 diffs)
-
src/ippdb.h (modified) (10 diffs)
-
tests/alloc.c (modified) (10 diffs)
-
tests/createtable.c (modified) (1 diff)
-
tests/dbcleanup.c (modified) (1 diff)
-
tests/dbsetup.c (modified) (1 diff)
-
tests/droptable.c (modified) (1 diff)
-
tests/insert.c (modified) (2 diffs)
-
tests/insertfits.c (modified) (1 diff)
-
tests/insertobject.c (modified) (3 diffs)
-
tests/metadatafromobject.c (modified) (5 diffs)
-
tests/objectfrommetadata.c (modified) (6 diffs)
-
tests/selectrowsfits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/Makefile.am
r16587 r16731 27 27 $(top_builddir)/docs/man/man3/camMaskRow.3 \ 28 28 $(top_builddir)/docs/man/man3/warpRunRow.3 \ 29 $(top_builddir)/docs/man/man3/warpInputExpRow.3 \30 29 $(top_builddir)/docs/man/man3/warpSkyCellMapRow.3 \ 31 30 $(top_builddir)/docs/man/man3/warpSkyfileRow.3 \ … … 65 64 66 65 67 docs/man/man3/ippdb.3 docs/man/man3/pzDataStoreRow.3 docs/man/man3/summitExpRow.3 docs/man/man3/summitImfileRow.3 docs/man/man3/pzDownloadExpRow.3 docs/man/man3/pzDownloadImfileRow.3 docs/man/man3/newExpRow.3 docs/man/man3/newImfileRow.3 docs/man/man3/rawExpRow.3 docs/man/man3/rawImfileRow.3 docs/man/man3/guidePendingExpRow.3 docs/man/man3/chipRunRow.3 docs/man/man3/chipProcessedImfileRow.3 docs/man/man3/chipMaskRow.3 docs/man/man3/camRunRow.3 docs/man/man3/camProcessedExpRow.3 docs/man/man3/camMaskRow.3 docs/man/man3/warpRunRow.3 docs/man/man3/warp InputExpRow.3 docs/man/man3/warpSkyCellMapRow.3 docs/man/man3/warpSkyfileRow.3 docs/man/man3/diffRunRow.3 docs/man/man3/diffInputSkyfileRow.3 docs/man/man3/diffSkyfileRow.3 docs/man/man3/stackRunRow.3 docs/man/man3/stackInputSkyfileRow.3 docs/man/man3/stackSumSkyfileRow.3 docs/man/man3/detRunRow.3 docs/man/man3/detInputExpRow.3 docs/man/man3/detProcessedImfileRow.3 docs/man/man3/detProcessedExpRow.3 docs/man/man3/detStackedImfileRow.3 docs/man/man3/detNormalizedStatImfileRow.3 docs/man/man3/detNormalizedImfileRow.3 docs/man/man3/detNormalizedExpRow.3 docs/man/man3/detResidImfileRow.3 docs/man/man3/detResidExpRow.3 docs/man/man3/detRunSummaryRow.3 docs/man/man3/detRegisteredImfileRow.3 docs/man/man3/detCorrectedExpRow.3 docs/man/man3/detCorrectedImfileRow.3 docs/man/man3/magicRunRow.3 docs/man/man3/magicInputSkyfileRow.3 docs/man/man3/magicTreeRow.3 docs/man/man3/magicNodeResultRow.3 docs/man/man3/magicMaskRow.3 docs/man/man3/magicSkyfileMaskRow.3 docs/man/man3/calDBRow.3 docs/man/man3/calRunRow.3 docs/man/man3/flatcorrRunRow.3 docs/man/man3/flatcorrExpRow.3 docs/man/man3/pstampDataStoreRow.3 docs/man/man3/pstampRequestRow.3 docs/man/man3/pstampJobRow.3:66 docs/man/man3/ippdb.3 docs/man/man3/pzDataStoreRow.3 docs/man/man3/summitExpRow.3 docs/man/man3/summitImfileRow.3 docs/man/man3/pzDownloadExpRow.3 docs/man/man3/pzDownloadImfileRow.3 docs/man/man3/newExpRow.3 docs/man/man3/newImfileRow.3 docs/man/man3/rawExpRow.3 docs/man/man3/rawImfileRow.3 docs/man/man3/guidePendingExpRow.3 docs/man/man3/chipRunRow.3 docs/man/man3/chipProcessedImfileRow.3 docs/man/man3/chipMaskRow.3 docs/man/man3/camRunRow.3 docs/man/man3/camProcessedExpRow.3 docs/man/man3/camMaskRow.3 docs/man/man3/warpRunRow.3 docs/man/man3/warpSkyCellMapRow.3 docs/man/man3/warpSkyfileRow.3 docs/man/man3/diffRunRow.3 docs/man/man3/diffInputSkyfileRow.3 docs/man/man3/diffSkyfileRow.3 docs/man/man3/stackRunRow.3 docs/man/man3/stackInputSkyfileRow.3 docs/man/man3/stackSumSkyfileRow.3 docs/man/man3/detRunRow.3 docs/man/man3/detInputExpRow.3 docs/man/man3/detProcessedImfileRow.3 docs/man/man3/detProcessedExpRow.3 docs/man/man3/detStackedImfileRow.3 docs/man/man3/detNormalizedStatImfileRow.3 docs/man/man3/detNormalizedImfileRow.3 docs/man/man3/detNormalizedExpRow.3 docs/man/man3/detResidImfileRow.3 docs/man/man3/detResidExpRow.3 docs/man/man3/detRunSummaryRow.3 docs/man/man3/detRegisteredImfileRow.3 docs/man/man3/detCorrectedExpRow.3 docs/man/man3/detCorrectedImfileRow.3 docs/man/man3/magicRunRow.3 docs/man/man3/magicInputSkyfileRow.3 docs/man/man3/magicTreeRow.3 docs/man/man3/magicNodeResultRow.3 docs/man/man3/magicMaskRow.3 docs/man/man3/magicSkyfileMaskRow.3 docs/man/man3/calDBRow.3 docs/man/man3/calRunRow.3 docs/man/man3/flatcorrRunRow.3 docs/man/man3/flatcorrExpRow.3 docs/man/man3/pstampDataStoreRow.3 docs/man/man3/pstampRequestRow.3 docs/man/man3/pstampJobRow.3: 68 67 $(DOXYGEN) 69 68 -
trunk/ippdb/configure.ac
r16587 r16731 7 7 AC_PREREQ(2.61) 8 8 9 AC_INIT([ippdb], [1.1.3 0], [pan-starrs.ifa.hawaii.edu])9 AC_INIT([ippdb], [1.1.31], [pan-starrs.ifa.hawaii.edu]) 10 10 AC_CONFIG_SRCDIR([ippdb.pc.in]) 11 11 -
trunk/ippdb/src/ippdb.c
r16616 r16731 48 48 #define CAMMASK_TABLE_NAME "camMask" 49 49 #define WARPRUN_TABLE_NAME "warpRun" 50 #define WARPINPUTEXP_TABLE_NAME "warpInputExp"51 50 #define WARPSKYCELLMAP_TABLE_NAME "warpSkyCellMap" 52 51 #define WARPSKYFILE_TABLE_NAME "warpSkyfile" … … 9504 9503 static void warpRunRowFree(warpRunRow *object); 9505 9504 9506 warpRunRow *warpRunRowAlloc(psS64 warp_id, const char *mode, const char *state, const char *workdir, const char *workdir_state, const char *dvodb, const char *tess_id, const char *end_stage, psTime* registered)9505 warpRunRow *warpRunRowAlloc(psS64 warp_id, psS64 cam_id, const char *mode, const char *state, const char *workdir, const char *workdir_state, const char *dvodb, const char *tess_id, const char *end_stage, psTime* registered, bool magiced) 9507 9506 { 9508 9507 warpRunRow *_object; … … 9512 9511 9513 9512 _object->warp_id = warp_id; 9513 _object->cam_id = cam_id; 9514 9514 _object->mode = psStringCopy(mode); 9515 9515 _object->state = psStringCopy(state); … … 9520 9520 _object->end_stage = psStringCopy(end_stage); 9521 9521 _object->registered = psTimeCopy(registered); 9522 _object->magiced = magiced; 9522 9523 9523 9524 return _object; … … 9544 9545 return false; 9545 9546 } 9547 if (!psMetadataAdd(md, PS_LIST_TAIL, "cam_id", PS_DATA_S64, "Key INDEX(warp_id, cam_id) fkey(cam_id) ref camProcessedExp(cam_id)", 0)) { 9548 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id"); 9549 psFree(md); 9550 return false; 9551 } 9546 9552 if (!psMetadataAdd(md, PS_LIST_TAIL, "mode", PS_DATA_STRING, "Key", "64")) { 9547 9553 psError(PS_ERR_UNKNOWN, false, "failed to add item mode"); … … 9584 9590 return false; 9585 9591 } 9592 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, "Key", 0)) { 9593 psError(PS_ERR_UNKNOWN, false, "failed to add item magiced"); 9594 psFree(md); 9595 return false; 9596 } 9586 9597 9587 9598 bool status = psDBCreateTable(dbh, WARPRUN_TABLE_NAME, md); … … 9597 9608 } 9598 9609 9599 bool warpRunInsert(psDB * dbh, psS64 warp_id, const char *mode, const char *state, const char *workdir, const char *workdir_state, const char *dvodb, const char *tess_id, const char *end_stage, psTime* registered)9610 bool warpRunInsert(psDB * dbh, psS64 warp_id, psS64 cam_id, const char *mode, const char *state, const char *workdir, const char *workdir_state, const char *dvodb, const char *tess_id, const char *end_stage, psTime* registered, bool magiced) 9600 9611 { 9601 9612 psMetadata *md = psMetadataAlloc(); … … 9605 9616 return false; 9606 9617 } 9618 if (!psMetadataAdd(md, PS_LIST_TAIL, "cam_id", PS_DATA_S64, NULL, cam_id)) { 9619 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id"); 9620 psFree(md); 9621 return false; 9622 } 9607 9623 if (!psMetadataAdd(md, PS_LIST_TAIL, "mode", PS_DATA_STRING, NULL, mode)) { 9608 9624 psError(PS_ERR_UNKNOWN, false, "failed to add item mode"); … … 9642 9658 if (!psMetadataAdd(md, PS_LIST_TAIL, "registered", PS_DATA_TIME, NULL, registered)) { 9643 9659 psError(PS_ERR_UNKNOWN, false, "failed to add item registered"); 9660 psFree(md); 9661 return false; 9662 } 9663 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, NULL, magiced)) { 9664 psError(PS_ERR_UNKNOWN, false, "failed to add item magiced"); 9644 9665 psFree(md); 9645 9666 return false; … … 9668 9689 bool warpRunInsertObject(psDB *dbh, warpRunRow *object) 9669 9690 { 9670 return warpRunInsert(dbh, object->warp_id, object-> mode, object->state, object->workdir, object->workdir_state, object->dvodb, object->tess_id, object->end_stage, object->registered);9691 return warpRunInsert(dbh, object->warp_id, object->cam_id, object->mode, object->state, object->workdir, object->workdir_state, object->dvodb, object->tess_id, object->end_stage, object->registered, object->magiced); 9671 9692 } 9672 9693 … … 9746 9767 return false; 9747 9768 } 9769 if (!psMetadataAdd(md, PS_LIST_TAIL, "cam_id", PS_DATA_S64, NULL, object->cam_id)) { 9770 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id"); 9771 psFree(md); 9772 return false; 9773 } 9748 9774 if (!psMetadataAdd(md, PS_LIST_TAIL, "mode", PS_DATA_STRING, NULL, object->mode)) { 9749 9775 psError(PS_ERR_UNKNOWN, false, "failed to add item mode"); … … 9786 9812 return false; 9787 9813 } 9814 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, NULL, object->magiced)) { 9815 psError(PS_ERR_UNKNOWN, false, "failed to add item magiced"); 9816 psFree(md); 9817 return false; 9818 } 9788 9819 9789 9820 … … 9800 9831 return false; 9801 9832 } 9833 psS64 cam_id = psMetadataLookupS64(&status, md, "cam_id"); 9834 if (!status) { 9835 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item cam_id"); 9836 return false; 9837 } 9802 9838 char* mode = psMetadataLookupPtr(&status, md, "mode"); 9803 9839 if (!status) { … … 9840 9876 return false; 9841 9877 } 9842 9843 return warpRunRowAlloc(warp_id, mode, state, workdir, workdir_state, dvodb, tess_id, end_stage, registered); 9878 bool magiced = psMetadataLookupBool(&status, md, "magiced"); 9879 if (!status) { 9880 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item magiced"); 9881 return false; 9882 } 9883 9884 return warpRunRowAlloc(warp_id, cam_id, mode, state, workdir, workdir_state, dvodb, tess_id, end_stage, registered, magiced); 9844 9885 } 9845 9886 psArray *warpRunSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit) … … 9957 9998 return true; 9958 9999 } 9959 static void warpInputExpRowFree(warpInputExpRow *object);9960 9961 warpInputExpRow *warpInputExpRowAlloc(psS64 warp_id, psS64 cam_id, bool magiced)9962 {9963 warpInputExpRow *_object;9964 9965 _object = psAlloc(sizeof(warpInputExpRow));9966 psMemSetDeallocator(_object, (psFreeFunc)warpInputExpRowFree);9967 9968 _object->warp_id = warp_id;9969 _object->cam_id = cam_id;9970 _object->magiced = magiced;9971 9972 return _object;9973 }9974 9975 static void warpInputExpRowFree(warpInputExpRow *object)9976 {9977 }9978 9979 bool warpInputExpCreateTable(psDB *dbh)9980 {9981 psMetadata *md = psMetadataAlloc();9982 if (!psMetadataAdd(md, PS_LIST_TAIL, "warp_id", PS_DATA_S64, "Primary Key fkey(warp_id) ref warpRun(warp_id)", 0)) {9983 psError(PS_ERR_UNKNOWN, false, "failed to add item warp_id");9984 psFree(md);9985 return false;9986 }9987 if (!psMetadataAdd(md, PS_LIST_TAIL, "cam_id", PS_DATA_S64, "Primary Key fkey(cam_id) ref camProcessedExp(cam_id)", 0)) {9988 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");9989 psFree(md);9990 return false;9991 }9992 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, "Key", 0)) {9993 psError(PS_ERR_UNKNOWN, false, "failed to add item magiced");9994 psFree(md);9995 return false;9996 }9997 9998 bool status = psDBCreateTable(dbh, WARPINPUTEXP_TABLE_NAME, md);9999 10000 psFree(md);10001 10002 return status;10003 }10004 10005 bool warpInputExpDropTable(psDB *dbh)10006 {10007 return psDBDropTable(dbh, WARPINPUTEXP_TABLE_NAME);10008 }10009 10010 bool warpInputExpInsert(psDB * dbh, psS64 warp_id, psS64 cam_id, bool magiced)10011 {10012 psMetadata *md = psMetadataAlloc();10013 if (!psMetadataAdd(md, PS_LIST_TAIL, "warp_id", PS_DATA_S64, NULL, warp_id)) {10014 psError(PS_ERR_UNKNOWN, false, "failed to add item warp_id");10015 psFree(md);10016 return false;10017 }10018 if (!psMetadataAdd(md, PS_LIST_TAIL, "cam_id", PS_DATA_S64, NULL, cam_id)) {10019 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");10020 psFree(md);10021 return false;10022 }10023 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, NULL, magiced)) {10024 psError(PS_ERR_UNKNOWN, false, "failed to add item magiced");10025 psFree(md);10026 return false;10027 }10028 10029 bool status = psDBInsertOneRow(dbh, WARPINPUTEXP_TABLE_NAME, md);10030 psFree(md);10031 10032 return status;10033 }10034 10035 long long warpInputExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit)10036 {10037 long long deleted = 0;10038 10039 long long count = psDBDeleteRows(dbh, WARPINPUTEXP_TABLE_NAME, where, limit);10040 if (count < 0) {10041 psError(PS_ERR_UNKNOWN, true, "failed to delete row from warpInputExp");10042 return count;10043 10044 deleted += count;10045 }10046 10047 return deleted;10048 }10049 bool warpInputExpInsertObject(psDB *dbh, warpInputExpRow *object)10050 {10051 return warpInputExpInsert(dbh, object->warp_id, object->cam_id, object->magiced);10052 }10053 10054 bool warpInputExpInsertObjects(psDB *dbh, psArray *objects)10055 {10056 for (long i = 0; i < psArrayLength(objects); i++) {10057 if (!warpInputExpInsertObject(dbh, objects->data[i])) {10058 return false;10059 }10060 }10061 10062 return true;10063 }10064 10065 bool warpInputExpInsertFits(psDB *dbh, const psFits *fits)10066 {10067 psArray *rowSet;10068 10069 // move to (the first?) extension named WARPINPUTEXP_TABLE_NAME10070 if (!psFitsMoveExtName(fits, WARPINPUTEXP_TABLE_NAME)) {10071 psError(PS_ERR_UNKNOWN, true, "failed to find FITS extension %s", WARPINPUTEXP_TABLE_NAME);10072 return false;10073 }10074 10075 // check HDU type10076 if (psFitsGetExtType(fits) != PS_FITS_TYPE_BINARY_TABLE) {10077 psError(PS_ERR_UNKNOWN, true, "FITS HDU type is not PS_FITS_TYPE_BINARY_TABLE");10078 return false;10079 }10080 10081 // read fits table10082 rowSet = psFitsReadTable(fits);10083 if (!rowSet) {10084 psError(PS_ERR_UNKNOWN, true, "FITS read error or FITS table is empty");10085 psFree(rowSet);10086 return false;10087 }10088 10089 if (!psDBInsertRows(dbh, WARPINPUTEXP_TABLE_NAME, rowSet)) {10090 psError(PS_ERR_UNKNOWN, false, "databse insert failed");10091 psFree(rowSet);10092 return false;10093 }10094 10095 psFree(rowSet);10096 10097 return true;10098 }10099 10100 bool warpInputExpSelectRowsFits(psDB *dbh, psFits *fits, const psMetadata *where, unsigned long long limit)10101 {10102 psArray *rowSet;10103 10104 rowSet = psDBSelectRows(dbh, WARPINPUTEXP_TABLE_NAME, where, limit);10105 if (!rowSet) {10106 return false;10107 }10108 10109 // output to fits10110 if (!psFitsWriteTable(fits, NULL, rowSet, WARPINPUTEXP_TABLE_NAME)) {10111 psError(PS_ERR_UNKNOWN, false, "FITS table write failed");10112 psFree(rowSet);10113 return false;10114 }10115 10116 psFree(rowSet);10117 10118 return true;10119 }10120 10121 psMetadata *warpInputExpMetadataFromObject(const warpInputExpRow *object)10122 {10123 psMetadata *md = psMetadataAlloc();10124 if (!psMetadataAdd(md, PS_LIST_TAIL, "warp_id", PS_DATA_S64, NULL, object->warp_id)) {10125 psError(PS_ERR_UNKNOWN, false, "failed to add item warp_id");10126 psFree(md);10127 return false;10128 }10129 if (!psMetadataAdd(md, PS_LIST_TAIL, "cam_id", PS_DATA_S64, NULL, object->cam_id)) {10130 psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");10131 psFree(md);10132 return false;10133 }10134 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, NULL, object->magiced)) {10135 psError(PS_ERR_UNKNOWN, false, "failed to add item magiced");10136 psFree(md);10137 return false;10138 }10139 10140 10141 return md;10142 }10143 10144 warpInputExpRow *warpInputExpObjectFromMetadata(psMetadata *md)10145 {10146 10147 bool status = false;10148 psS64 warp_id = psMetadataLookupS64(&status, md, "warp_id");10149 if (!status) {10150 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item warp_id");10151 return false;10152 }10153 psS64 cam_id = psMetadataLookupS64(&status, md, "cam_id");10154 if (!status) {10155 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item cam_id");10156 return false;10157 }10158 bool magiced = psMetadataLookupBool(&status, md, "magiced");10159 if (!status) {10160 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item magiced");10161 return false;10162 }10163 10164 return warpInputExpRowAlloc(warp_id, cam_id, magiced);10165 }10166 psArray *warpInputExpSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit)10167 {10168 psArray *rowSet;10169 psArray *returnSet;10170 psU64 i;10171 10172 rowSet = psDBSelectRows(dbh, WARPINPUTEXP_TABLE_NAME, where, limit);10173 if (!rowSet) {10174 return NULL;10175 }10176 10177 // convert psMetadata rows to row objects10178 10179 returnSet = psArrayAllocEmpty(rowSet->n);10180 10181 for (i = 0; i < rowSet->n; i++) {10182 warpInputExpRow *object = warpInputExpObjectFromMetadata(rowSet->data[i]);10183 if (!object) {10184 psFree(object);10185 psFree(returnSet);10186 psError(PS_ERR_UNKNOWN, false, "database error");10187 return NULL;10188 }10189 psArrayAdd(returnSet, 0, object);10190 psFree(object);10191 }10192 10193 psFree(rowSet);10194 10195 return returnSet;10196 }10197 bool warpInputExpDeleteObject(psDB *dbh, const warpInputExpRow *object)10198 {10199 psMetadata *where = warpInputExpMetadataFromObject(object);10200 long long count = psDBDeleteRows(dbh, WARPINPUTEXP_TABLE_NAME, where, 0);10201 psFree(where);10202 if (count < 0) {10203 psError(PS_ERR_UNKNOWN, true, "failed to delete row from warpInputExp");10204 return false;10205 }10206 if (count > 1) {10207 // XXX should this be a psAbort() instead? It is possible that10208 // having an object match multiple rows was by design.10209 psError(PS_ERR_UNKNOWN, true, "warpInputExpRow object matched more then one row. Check your database schema");10210 return false;10211 }10212 10213 return true;10214 }10215 long long warpInputExpDeleteRowObjects(psDB *dbh, const psArray *objects, unsigned long long limit)10216 {10217 long long deleted = 0;10218 10219 for (long long i = 0; i < objects->n; i++) {10220 warpInputExpRow *object = objects->data[i];10221 psMetadata *where = warpInputExpMetadataFromObject(object);10222 long long count = psDBDeleteRows(dbh, WARPINPUTEXP_TABLE_NAME, where, limit);10223 psFree(where);10224 if (count < 0) {10225 psError(PS_ERR_UNKNOWN, true, "failed to delete row from warpInputExp");10226 return count;10227 }10228 10229 deleted += count;10230 }10231 10232 return deleted;10233 }10234 bool warpInputExpPrintObjects(FILE *stream, psArray *objects, bool mdcf)10235 {10236 PS_ASSERT_PTR_NON_NULL(objects, false);10237 10238 psMetadata *output = psMetadataAlloc();10239 for (long i = 0; i < psArrayLength(objects); i++) {10240 psMetadata *md = warpInputExpMetadataFromObject(objects->data[i]);10241 if (!psMetadataAddMetadata(10242 output,10243 PS_LIST_TAIL,10244 WARPINPUTEXP_TABLE_NAME,10245 PS_META_DUPLICATE_OK,10246 NULL,10247 md10248 )) {10249 psError(PS_ERR_UNKNOWN, false, "failed to add metadata");10250 psFree(md);10251 psFree(output);10252 return false;10253 }10254 psFree(md);10255 }10256 10257 if (!ippdbPrintMetadataRaw(stream, output, mdcf)) {10258 psError(PS_ERR_UNKNOWN, false, "failed to print metadata");10259 psFree(output);10260 }10261 psFree(output);10262 10263 return true;10264 }10265 bool warpInputExpPrintObject(FILE *stream, warpInputExpRow *object, bool mdcf)10266 {10267 PS_ASSERT_PTR_NON_NULL(object, false);10268 10269 psMetadata *md = warpInputExpMetadataFromObject(object);10270 10271 if (!ippdbPrintMetadataRaw(stream, md, mdcf)) {10272 psError(PS_ERR_UNKNOWN, false, "failed to print metadata");10273 psFree(md);10274 }10275 10276 psFree(md);10277 10278 return true;10279 }10280 10000 static void warpSkyCellMapRowFree(warpSkyCellMapRow *object); 10281 10001 … … 10307 10027 { 10308 10028 psMetadata *md = psMetadataAlloc(); 10309 if (!psMetadataAdd(md, PS_LIST_TAIL, "warp_id", PS_DATA_S64, "Primary Key fkey(warp_id, cam_id) ref warp InputExp(warp_id, cam_id)", 0)) {10029 if (!psMetadataAdd(md, PS_LIST_TAIL, "warp_id", PS_DATA_S64, "Primary Key fkey(warp_id, cam_id) ref warpRun(warp_id, cam_id)", 0)) { 10310 10030 psError(PS_ERR_UNKNOWN, false, "failed to add item warp_id"); 10311 10031 psFree(md); … … 24078 23798 static void flatcorrRunRowFree(flatcorrRunRow *object); 24079 23799 24080 flatcorrRunRow *flatcorrRunRowAlloc(psS64 corr_id, const char *dvodb, const char *filter, const char *state, const char *workdir, const char *label, const char *stats )23800 flatcorrRunRow *flatcorrRunRowAlloc(psS64 corr_id, const char *dvodb, const char *filter, const char *state, const char *workdir, const char *label, const char *stats, const char *region) 24081 23801 { 24082 23802 flatcorrRunRow *_object; … … 24092 23812 _object->label = psStringCopy(label); 24093 23813 _object->stats = psStringCopy(stats); 23814 _object->region = psStringCopy(region); 24094 23815 24095 23816 return _object; … … 24104 23825 psFree(object->label); 24105 23826 psFree(object->stats); 23827 psFree(object->region); 24106 23828 } 24107 23829 … … 24144 23866 return false; 24145 23867 } 23868 if (!psMetadataAdd(md, PS_LIST_TAIL, "region", PS_DATA_STRING, NULL, "255")) { 23869 psError(PS_ERR_UNKNOWN, false, "failed to add item region"); 23870 psFree(md); 23871 return false; 23872 } 24146 23873 24147 23874 bool status = psDBCreateTable(dbh, FLATCORRRUN_TABLE_NAME, md); … … 24157 23884 } 24158 23885 24159 bool flatcorrRunInsert(psDB * dbh, psS64 corr_id, const char *dvodb, const char *filter, const char *state, const char *workdir, const char *label, const char *stats )23886 bool flatcorrRunInsert(psDB * dbh, psS64 corr_id, const char *dvodb, const char *filter, const char *state, const char *workdir, const char *label, const char *stats, const char *region) 24160 23887 { 24161 23888 psMetadata *md = psMetadataAlloc(); … … 24192 23919 if (!psMetadataAdd(md, PS_LIST_TAIL, "stats", PS_DATA_STRING, NULL, stats)) { 24193 23920 psError(PS_ERR_UNKNOWN, false, "failed to add item stats"); 23921 psFree(md); 23922 return false; 23923 } 23924 if (!psMetadataAdd(md, PS_LIST_TAIL, "region", PS_DATA_STRING, NULL, region)) { 23925 psError(PS_ERR_UNKNOWN, false, "failed to add item region"); 24194 23926 psFree(md); 24195 23927 return false; … … 24218 23950 bool flatcorrRunInsertObject(psDB *dbh, flatcorrRunRow *object) 24219 23951 { 24220 return flatcorrRunInsert(dbh, object->corr_id, object->dvodb, object->filter, object->state, object->workdir, object->label, object->stats );23952 return flatcorrRunInsert(dbh, object->corr_id, object->dvodb, object->filter, object->state, object->workdir, object->label, object->stats, object->region); 24221 23953 } 24222 23954 … … 24326 24058 return false; 24327 24059 } 24060 if (!psMetadataAdd(md, PS_LIST_TAIL, "region", PS_DATA_STRING, NULL, object->region)) { 24061 psError(PS_ERR_UNKNOWN, false, "failed to add item region"); 24062 psFree(md); 24063 return false; 24064 } 24328 24065 24329 24066 … … 24370 24107 return false; 24371 24108 } 24372 24373 return flatcorrRunRowAlloc(corr_id, dvodb, filter, state, workdir, label, stats); 24109 char* region = psMetadataLookupPtr(&status, md, "region"); 24110 if (!status) { 24111 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item region"); 24112 return false; 24113 } 24114 24115 return flatcorrRunRowAlloc(corr_id, dvodb, filter, state, workdir, label, stats, region); 24374 24116 } 24375 24117 psArray *flatcorrRunSelectRowObjects(psDB *dbh, const psMetadata *where, unsigned long long limit) -
trunk/ippdb/src/ippdb.h
r16616 r16731 3921 3921 typedef struct { 3922 3922 psS64 warp_id; 3923 psS64 cam_id; 3923 3924 char *mode; 3924 3925 char *state; … … 3929 3930 char *end_stage; 3930 3931 psTime* registered; 3932 bool magiced; 3931 3933 } warpRunRow; 3932 3934 … … 3938 3940 warpRunRow *warpRunRowAlloc( 3939 3941 psS64 warp_id, 3942 psS64 cam_id, 3940 3943 const char *mode, 3941 3944 const char *state, … … 3945 3948 const char *tess_id, 3946 3949 const char *end_stage, 3947 psTime* registered 3950 psTime* registered, 3951 bool magiced 3948 3952 ); 3949 3953 … … 3976 3980 psDB *dbh, ///< Database handle 3977 3981 psS64 warp_id, 3982 psS64 cam_id, 3978 3983 const char *mode, 3979 3984 const char *state, … … 3983 3988 const char *tess_id, 3984 3989 const char *end_stage, 3985 psTime* registered 3990 psTime* registered, 3991 bool magiced 3986 3992 ); 3987 3993 … … 4131 4137 FILE *stream, ///< a stream 4132 4138 warpRunRow *object, ///< an warpRunRow object 4133 bool mdcf ///< format as mdconfig or simple4134 );4135 /** warpInputExpRow data structure4136 *4137 * Structure for representing a single row of warpInputExp table data.4138 */4139 4140 typedef struct {4141 psS64 warp_id;4142 psS64 cam_id;4143 bool magiced;4144 } warpInputExpRow;4145 4146 /** Creates a new warpInputExpRow object4147 *4148 * @return A new warpInputExpRow object or NULL on failure.4149 */4150 4151 warpInputExpRow *warpInputExpRowAlloc(4152 psS64 warp_id,4153 psS64 cam_id,4154 bool magiced4155 );4156 4157 /** Creates a new warpInputExp table4158 *4159 * @return true on success4160 */4161 4162 bool warpInputExpCreateTable(4163 psDB *dbh ///< Database handle4164 );4165 4166 /** Deletes a warpInputExp table4167 *4168 * @return true on success4169 */4170 4171 bool warpInputExpDropTable(4172 psDB *dbh ///< Database handle4173 );4174 4175 /** Insert a single row into a table4176 *4177 * This function constructs and inserts a single row based on it's parameters.4178 *4179 * @return true on success4180 */4181 4182 bool warpInputExpInsert(4183 psDB *dbh, ///< Database handle4184 psS64 warp_id,4185 psS64 cam_id,4186 bool magiced4187 );4188 4189 /** Deletes up to limit rows from the database and returns the number of rows actually deleted.4190 *4191 * @return A The number of rows removed or a negative value on error4192 */4193 4194 long long warpInputExpDelete(4195 psDB *dbh, ///< Database handle4196 const psMetadata *where, ///< Row match criteria4197 unsigned long long limit ///< Maximum number of elements to delete4198 );4199 4200 /** Insert a single warpInputExpRow object into a table4201 *4202 * This function constructs and inserts a single row based on it's parameters.4203 *4204 * @return true on success4205 */4206 4207 bool warpInputExpInsertObject(4208 psDB *dbh, ///< Database handle4209 warpInputExpRow *object ///< warpInputExpRow object4210 );4211 4212 /** Insert an array of warpInputExpRow object into a table4213 *4214 * This function constructs and inserts multiple rows based on it's parameters.4215 *4216 * @return true on success4217 */4218 4219 bool warpInputExpInsertObjects(4220 psDB *dbh, ///< Database handle4221 psArray *objects ///< array of warpInputExpRow objects4222 );4223 4224 /** Insert data from a binary FITS table warpInputExpRow into the database4225 *4226 * This function expects a psFits object with a FITS table as the first4227 * extension. The table must have at least one row of data in it, that is of4228 * the appropriate format (number of columns and their type). All other4229 * extensions are ignored.4230 *4231 * @return true on success4232 */4233 4234 bool warpInputExpInsertFits(4235 psDB *dbh, ///< Database handle4236 const psFits *fits ///< psFits object4237 );4238 4239 /** Selects up to limit from the database and returns them in a binary FITS table4240 *4241 * This function assumes an empty psFits object and will create a FITS table4242 * as the first extension.4243 *4244 * See psDBSelectRows() for documentation on the format of where.4245 *4246 * @return true on success4247 */4248 4249 bool warpInputExpSelectRowsFits(4250 psDB *dbh, ///< Database handle4251 psFits *fits, ///< psFits object4252 const psMetadata *where, ///< Row match criteria4253 unsigned long long limit ///< Maximum number of elements to return4254 );4255 4256 /** Convert a warpInputExpRow into an equivalent psMetadata4257 *4258 * @return A psMetadata pointer or NULL on error4259 */4260 4261 psMetadata *warpInputExpMetadataFromObject(4262 const warpInputExpRow *object ///< fooRow to convert into a psMetadata4263 );4264 4265 /** Convert a psMetadata into an equivalent fooRow4266 *4267 * @return A warpInputExpRow pointer or NULL on error4268 */4269 4270 warpInputExpRow *warpInputExpObjectFromMetadata(4271 psMetadata *md ///< psMetadata to convert into a fooRow4272 );4273 /** Selects up to limit rows from the database and returns as warpInputExpRow objects in a psArray4274 *4275 * See psDBSelectRows() for documentation on the format of where.4276 *4277 * @return A psArray pointer or NULL on error4278 */4279 4280 psArray *warpInputExpSelectRowObjects(4281 psDB *dbh, ///< Database handle4282 const psMetadata *where, ///< Row match criteria4283 unsigned long long limit ///< Maximum number of elements to return4284 );4285 /** Deletes a row from the database coresponding to an warpInputExp4286 *4287 * Note that a 'where' search psMetadata is constructed from each object and4288 * used to find rows to delete.4289 *4290 * @return A The number of rows removed or a negative value on error4291 */4292 4293 bool warpInputExpDeleteObject(4294 psDB *dbh, ///< Database handle4295 const warpInputExpRow *object ///< Object to delete4296 );4297 /** Deletes up to limit rows from the database and returns the number of rows actually deleted.4298 *4299 * Note that a 'where' search psMetadata is constructed from each object and4300 * used to find rows to delete.4301 *4302 * @return A The number of rows removed or a negative value on error4303 */4304 4305 long long warpInputExpDeleteRowObjects(4306 psDB *dbh, ///< Database handle4307 const psArray *objects, ///< Array of objects to delete4308 unsigned long long limit ///< Maximum number of elements to delete4309 );4310 /** Formats and prints an array of warpInputExpRow objects4311 *4312 * When mdcf is set the formated output is in psMetadataConfig4313 * format, otherwise it is in a simple tabular format.4314 *4315 * @return true on success4316 */4317 4318 bool warpInputExpPrintObjects(4319 FILE *stream, ///< a stream4320 psArray *objects, ///< An array of warpInputExpRow objects4321 bool mdcf ///< format as mdconfig or simple4322 );4323 /** Formats and prints an warpInputExpRow object4324 *4325 * When mdcf is set the formated output is in psMetadataConfig4326 * format, otherwise it is in a simple tabular format.4327 *4328 * @return true on success4329 */4330 4331 bool warpInputExpPrintObject(4332 FILE *stream, ///< a stream4333 warpInputExpRow *object, ///< an warpInputExpRow object4334 4139 bool mdcf ///< format as mdconfig or simple 4335 4140 ); … … 10959 10764 char *label; 10960 10765 char *stats; 10766 char *region; 10961 10767 } flatcorrRunRow; 10962 10768 … … 10973 10779 const char *workdir, 10974 10780 const char *label, 10975 const char *stats 10781 const char *stats, 10782 const char *region 10976 10783 ); 10977 10784 … … 11009 10816 const char *workdir, 11010 10817 const char *label, 11011 const char *stats 10818 const char *stats, 10819 const char *region 11012 10820 ); 11013 10821 -
trunk/ippdb/tests/alloc.c
r16616 r16731 1172 1172 warpRunRow *object; 1173 1173 1174 object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");1174 object = warpRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", true ); 1175 1175 1176 1176 if (!object) { … … 1182 1182 exit(EXIT_FAILURE); 1183 1183 } 1184 if (!object->cam_id == -64) { 1185 psFree(object); 1186 exit(EXIT_FAILURE); 1187 } 1184 1188 if (strncmp(object->mode, "a string", MAX_STRING_LENGTH)) { 1185 1189 psFree(object); … … 1213 1217 exit(EXIT_FAILURE); 1214 1218 } 1215 1216 psFree(object); 1217 } 1218 1219 { 1220 warpInputExpRow *object; 1221 1222 object = warpInputExpRowAlloc(-64, -64, true ); 1219 if (!object->magiced == true) { 1220 psFree(object); 1221 exit(EXIT_FAILURE); 1222 } 1223 1224 psFree(object); 1225 } 1226 1227 { 1228 warpSkyCellMapRow *object; 1229 1230 object = warpSkyCellMapRowAlloc(-64, "a string", "a string", -64, "a string", -16 ); 1223 1231 1224 1232 if (!object) { … … 1230 1238 exit(EXIT_FAILURE); 1231 1239 } 1240 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) { 1241 psFree(object); 1242 exit(EXIT_FAILURE); 1243 } 1244 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1245 psFree(object); 1246 exit(EXIT_FAILURE); 1247 } 1232 1248 if (!object->cam_id == -64) { 1233 1249 psFree(object); 1234 1250 exit(EXIT_FAILURE); 1235 1251 } 1236 if (!object->magiced == true) { 1237 psFree(object); 1238 exit(EXIT_FAILURE); 1239 } 1240 1241 psFree(object); 1242 } 1243 1244 { 1245 warpSkyCellMapRow *object; 1246 1247 object = warpSkyCellMapRowAlloc(-64, "a string", "a string", -64, "a string", -16 ); 1252 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1253 psFree(object); 1254 exit(EXIT_FAILURE); 1255 } 1256 if (!object->fault == -16) { 1257 psFree(object); 1258 exit(EXIT_FAILURE); 1259 } 1260 1261 psFree(object); 1262 } 1263 1264 { 1265 warpSkyfileRow *object; 1266 1267 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, true, -16 ); 1248 1268 1249 1269 if (!object) { … … 1263 1283 exit(EXIT_FAILURE); 1264 1284 } 1265 if (!object->cam_id == -64) { 1285 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1286 psFree(object); 1287 exit(EXIT_FAILURE); 1288 } 1289 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1290 psFree(object); 1291 exit(EXIT_FAILURE); 1292 } 1293 if (!object->bg == 64.64) { 1294 psFree(object); 1295 exit(EXIT_FAILURE); 1296 } 1297 if (!object->bg_stdev == 64.64) { 1298 psFree(object); 1299 exit(EXIT_FAILURE); 1300 } 1301 if (!object->dtime_warp == 32.32) { 1302 psFree(object); 1303 exit(EXIT_FAILURE); 1304 } 1305 if (strncmp(object->hostname, "a string", MAX_STRING_LENGTH)) { 1306 psFree(object); 1307 exit(EXIT_FAILURE); 1308 } 1309 if (!object->good_frac == 32.32) { 1310 psFree(object); 1311 exit(EXIT_FAILURE); 1312 } 1313 if (!object->ignored == true) { 1314 psFree(object); 1315 exit(EXIT_FAILURE); 1316 } 1317 if (!object->fault == -16) { 1318 psFree(object); 1319 exit(EXIT_FAILURE); 1320 } 1321 1322 psFree(object); 1323 } 1324 1325 { 1326 diffRunRow *object; 1327 1328 object = diffRunRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" ); 1329 1330 if (!object) { 1331 exit(EXIT_FAILURE); 1332 } 1333 1334 if (!object->diff_id == -64) { 1335 psFree(object); 1336 exit(EXIT_FAILURE); 1337 } 1338 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 1339 psFree(object); 1340 exit(EXIT_FAILURE); 1341 } 1342 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 1343 psFree(object); 1344 exit(EXIT_FAILURE); 1345 } 1346 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 1347 psFree(object); 1348 exit(EXIT_FAILURE); 1349 } 1350 psFree(object); 1351 exit(EXIT_FAILURE); 1352 } 1353 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) { 1354 psFree(object); 1355 exit(EXIT_FAILURE); 1356 } 1357 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1358 psFree(object); 1359 exit(EXIT_FAILURE); 1360 } 1361 1362 psFree(object); 1363 } 1364 1365 { 1366 diffInputSkyfileRow *object; 1367 1368 object = diffInputSkyfileRowAlloc(-64, true, -64, -64, "a string", "a string", "a string" ); 1369 1370 if (!object) { 1371 exit(EXIT_FAILURE); 1372 } 1373 1374 if (!object->diff_id == -64) { 1375 psFree(object); 1376 exit(EXIT_FAILURE); 1377 } 1378 if (!object->template == true) { 1379 psFree(object); 1380 exit(EXIT_FAILURE); 1381 } 1382 if (!object->stack_id == -64) { 1383 psFree(object); 1384 exit(EXIT_FAILURE); 1385 } 1386 if (!object->warp_id == -64) { 1387 psFree(object); 1388 exit(EXIT_FAILURE); 1389 } 1390 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) { 1391 psFree(object); 1392 exit(EXIT_FAILURE); 1393 } 1394 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1395 psFree(object); 1396 exit(EXIT_FAILURE); 1397 } 1398 if (strncmp(object->kind, "a string", MAX_STRING_LENGTH)) { 1399 psFree(object); 1400 exit(EXIT_FAILURE); 1401 } 1402 1403 psFree(object); 1404 } 1405 1406 { 1407 diffSkyfileRow *object; 1408 1409 object = diffSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, -16 ); 1410 1411 if (!object) { 1412 exit(EXIT_FAILURE); 1413 } 1414 1415 if (!object->diff_id == -64) { 1416 psFree(object); 1417 exit(EXIT_FAILURE); 1418 } 1419 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1420 psFree(object); 1421 exit(EXIT_FAILURE); 1422 } 1423 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1424 psFree(object); 1425 exit(EXIT_FAILURE); 1426 } 1427 if (!object->bg == 64.64) { 1428 psFree(object); 1429 exit(EXIT_FAILURE); 1430 } 1431 if (!object->bg_stdev == 64.64) { 1432 psFree(object); 1433 exit(EXIT_FAILURE); 1434 } 1435 if (!object->dtime_diff == 32.32) { 1436 psFree(object); 1437 exit(EXIT_FAILURE); 1438 } 1439 if (strncmp(object->hostname, "a string", MAX_STRING_LENGTH)) { 1440 psFree(object); 1441 exit(EXIT_FAILURE); 1442 } 1443 if (!object->good_frac == 32.32) { 1444 psFree(object); 1445 exit(EXIT_FAILURE); 1446 } 1447 if (!object->fault == -16) { 1448 psFree(object); 1449 exit(EXIT_FAILURE); 1450 } 1451 1452 psFree(object); 1453 } 1454 1455 { 1456 stackRunRow *object; 1457 1458 object = stackRunRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" ); 1459 1460 if (!object) { 1461 exit(EXIT_FAILURE); 1462 } 1463 1464 if (!object->stack_id == -64) { 1465 psFree(object); 1466 exit(EXIT_FAILURE); 1467 } 1468 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 1469 psFree(object); 1470 exit(EXIT_FAILURE); 1471 } 1472 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 1473 psFree(object); 1474 exit(EXIT_FAILURE); 1475 } 1476 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 1477 psFree(object); 1478 exit(EXIT_FAILURE); 1479 } 1480 psFree(object); 1481 exit(EXIT_FAILURE); 1482 } 1483 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) { 1484 psFree(object); 1485 exit(EXIT_FAILURE); 1486 } 1487 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1488 psFree(object); 1489 exit(EXIT_FAILURE); 1490 } 1491 1492 psFree(object); 1493 } 1494 1495 { 1496 stackInputSkyfileRow *object; 1497 1498 object = stackInputSkyfileRowAlloc(-64, -64 ); 1499 1500 if (!object) { 1501 exit(EXIT_FAILURE); 1502 } 1503 1504 if (!object->stack_id == -64) { 1505 psFree(object); 1506 exit(EXIT_FAILURE); 1507 } 1508 if (!object->warp_id == -64) { 1509 psFree(object); 1510 exit(EXIT_FAILURE); 1511 } 1512 1513 psFree(object); 1514 } 1515 1516 { 1517 stackSumSkyfileRow *object; 1518 1519 object = stackSumSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, -16 ); 1520 1521 if (!object) { 1522 exit(EXIT_FAILURE); 1523 } 1524 1525 if (!object->stack_id == -64) { 1526 psFree(object); 1527 exit(EXIT_FAILURE); 1528 } 1529 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1530 psFree(object); 1531 exit(EXIT_FAILURE); 1532 } 1533 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1534 psFree(object); 1535 exit(EXIT_FAILURE); 1536 } 1537 if (!object->bg == 64.64) { 1538 psFree(object); 1539 exit(EXIT_FAILURE); 1540 } 1541 if (!object->bg_stdev == 64.64) { 1542 psFree(object); 1543 exit(EXIT_FAILURE); 1544 } 1545 if (!object->dtime_stack == 32.32) { 1546 psFree(object); 1547 exit(EXIT_FAILURE); 1548 } 1549 if (strncmp(object->hostname, "a string", MAX_STRING_LENGTH)) { 1550 psFree(object); 1551 exit(EXIT_FAILURE); 1552 } 1553 if (!object->good_frac == 32.32) { 1554 psFree(object); 1555 exit(EXIT_FAILURE); 1556 } 1557 if (!object->fault == -16) { 1558 psFree(object); 1559 exit(EXIT_FAILURE); 1560 } 1561 1562 psFree(object); 1563 } 1564 1565 { 1566 detRunRow *object; 1567 1568 object = detRunRowAlloc(-64, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32 ); 1569 1570 if (!object) { 1571 exit(EXIT_FAILURE); 1572 } 1573 1574 if (!object->det_id == -64) { 1575 psFree(object); 1576 exit(EXIT_FAILURE); 1577 } 1578 if (!object->iteration == -32) { 1579 psFree(object); 1580 exit(EXIT_FAILURE); 1581 } 1582 if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) { 1583 psFree(object); 1584 exit(EXIT_FAILURE); 1585 } 1586 if (strncmp(object->mode, "a string", MAX_STRING_LENGTH)) { 1587 psFree(object); 1588 exit(EXIT_FAILURE); 1589 } 1590 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 1591 psFree(object); 1592 exit(EXIT_FAILURE); 1593 } 1594 if (strncmp(object->filelevel, "a string", MAX_STRING_LENGTH)) { 1595 psFree(object); 1596 exit(EXIT_FAILURE); 1597 } 1598 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 1599 psFree(object); 1600 exit(EXIT_FAILURE); 1601 } 1602 if (strncmp(object->camera, "a string", MAX_STRING_LENGTH)) { 1603 psFree(object); 1604 exit(EXIT_FAILURE); 1605 } 1606 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 1607 psFree(object); 1608 exit(EXIT_FAILURE); 1609 } 1610 if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) { 1611 psFree(object); 1612 exit(EXIT_FAILURE); 1613 } 1614 if (strncmp(object->reduction, "a string", MAX_STRING_LENGTH)) { 1615 psFree(object); 1616 exit(EXIT_FAILURE); 1617 } 1618 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) { 1619 psFree(object); 1620 exit(EXIT_FAILURE); 1621 } 1622 if (!object->airmass_min == 32.32) { 1623 psFree(object); 1624 exit(EXIT_FAILURE); 1625 } 1626 if (!object->airmass_max == 32.32) { 1627 psFree(object); 1628 exit(EXIT_FAILURE); 1629 } 1630 if (!object->exp_time_min == 32.32) { 1631 psFree(object); 1632 exit(EXIT_FAILURE); 1633 } 1634 if (!object->exp_time_max == 32.32) { 1635 psFree(object); 1636 exit(EXIT_FAILURE); 1637 } 1638 if (!object->ccd_temp_min == 32.32) { 1639 psFree(object); 1640 exit(EXIT_FAILURE); 1641 } 1642 if (!object->ccd_temp_max == 32.32) { 1643 psFree(object); 1644 exit(EXIT_FAILURE); 1645 } 1646 if (!object->posang_min == 64.64) { 1647 psFree(object); 1648 exit(EXIT_FAILURE); 1649 } 1650 if (!object->posang_max == 64.64) { 1651 psFree(object); 1652 exit(EXIT_FAILURE); 1653 } 1654 psFree(object); 1655 exit(EXIT_FAILURE); 1656 } 1657 psFree(object); 1658 exit(EXIT_FAILURE); 1659 } 1660 psFree(object); 1661 exit(EXIT_FAILURE); 1662 } 1663 psFree(object); 1664 exit(EXIT_FAILURE); 1665 } 1666 psFree(object); 1667 exit(EXIT_FAILURE); 1668 } 1669 if (!object->solang_min == 32.32) { 1670 psFree(object); 1671 exit(EXIT_FAILURE); 1672 } 1673 if (!object->solang_max == 32.32) { 1674 psFree(object); 1675 exit(EXIT_FAILURE); 1676 } 1677 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 1678 psFree(object); 1679 exit(EXIT_FAILURE); 1680 } 1681 if (!object->parent == -32) { 1682 psFree(object); 1683 exit(EXIT_FAILURE); 1684 } 1685 1686 psFree(object); 1687 } 1688 1689 { 1690 detInputExpRow *object; 1691 1692 object = detInputExpRowAlloc(-64, -32, -64, true ); 1693 1694 if (!object) { 1695 exit(EXIT_FAILURE); 1696 } 1697 1698 if (!object->det_id == -64) { 1699 psFree(object); 1700 exit(EXIT_FAILURE); 1701 } 1702 if (!object->iteration == -32) { 1703 psFree(object); 1704 exit(EXIT_FAILURE); 1705 } 1706 if (!object->exp_id == -64) { 1707 psFree(object); 1708 exit(EXIT_FAILURE); 1709 } 1710 if (!object->include == true) { 1711 psFree(object); 1712 exit(EXIT_FAILURE); 1713 } 1714 1715 psFree(object); 1716 } 1717 1718 { 1719 detProcessedImfileRow *object; 1720 1721 object = detProcessedImfileRowAlloc(-64, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1722 1723 if (!object) { 1724 exit(EXIT_FAILURE); 1725 } 1726 1727 if (!object->det_id == -64) { 1728 psFree(object); 1729 exit(EXIT_FAILURE); 1730 } 1731 if (!object->exp_id == -64) { 1266 1732 psFree(object); 1267 1733 exit(EXIT_FAILURE); … … 1271 1737 exit(EXIT_FAILURE); 1272 1738 } 1739 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1740 psFree(object); 1741 exit(EXIT_FAILURE); 1742 } 1743 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1744 psFree(object); 1745 exit(EXIT_FAILURE); 1746 } 1747 if (!object->bg == 64.64) { 1748 psFree(object); 1749 exit(EXIT_FAILURE); 1750 } 1751 if (!object->bg_stdev == 64.64) { 1752 psFree(object); 1753 exit(EXIT_FAILURE); 1754 } 1755 if (!object->bg_mean_stdev == 64.64) { 1756 psFree(object); 1757 exit(EXIT_FAILURE); 1758 } 1759 if (!object->fringe_0 == 64.64) { 1760 psFree(object); 1761 exit(EXIT_FAILURE); 1762 } 1763 if (!object->fringe_1 == 64.64) { 1764 psFree(object); 1765 exit(EXIT_FAILURE); 1766 } 1767 if (!object->fringe_2 == 64.64) { 1768 psFree(object); 1769 exit(EXIT_FAILURE); 1770 } 1771 if (!object->user_1 == 64.64) { 1772 psFree(object); 1773 exit(EXIT_FAILURE); 1774 } 1775 if (!object->user_2 == 64.64) { 1776 psFree(object); 1777 exit(EXIT_FAILURE); 1778 } 1779 if (!object->user_3 == 64.64) { 1780 psFree(object); 1781 exit(EXIT_FAILURE); 1782 } 1783 if (!object->user_4 == 64.64) { 1784 psFree(object); 1785 exit(EXIT_FAILURE); 1786 } 1787 if (!object->user_5 == 64.64) { 1788 psFree(object); 1789 exit(EXIT_FAILURE); 1790 } 1791 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1792 psFree(object); 1793 exit(EXIT_FAILURE); 1794 } 1273 1795 if (!object->fault == -16) { 1274 1796 psFree(object); … … 1280 1802 1281 1803 { 1282 warpSkyfileRow *object; 1283 1284 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, true, -16 ); 1285 1286 if (!object) { 1287 exit(EXIT_FAILURE); 1288 } 1289 1290 if (!object->warp_id == -64) { 1291 psFree(object); 1292 exit(EXIT_FAILURE); 1293 } 1294 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) { 1295 psFree(object); 1296 exit(EXIT_FAILURE); 1297 } 1298 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) { 1804 detProcessedExpRow *object; 1805 1806 object = detProcessedExpRowAlloc(-64, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1807 1808 if (!object) { 1809 exit(EXIT_FAILURE); 1810 } 1811 1812 if (!object->det_id == -64) { 1813 psFree(object); 1814 exit(EXIT_FAILURE); 1815 } 1816 if (!object->exp_id == -64) { 1817 psFree(object); 1818 exit(EXIT_FAILURE); 1819 } 1820 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1821 psFree(object); 1822 exit(EXIT_FAILURE); 1823 } 1824 if (!object->bg == 64.64) { 1825 psFree(object); 1826 exit(EXIT_FAILURE); 1827 } 1828 if (!object->bg_stdev == 64.64) { 1829 psFree(object); 1830 exit(EXIT_FAILURE); 1831 } 1832 if (!object->bg_mean_stdev == 64.64) { 1833 psFree(object); 1834 exit(EXIT_FAILURE); 1835 } 1836 if (!object->fringe_0 == 64.64) { 1837 psFree(object); 1838 exit(EXIT_FAILURE); 1839 } 1840 if (!object->fringe_1 == 64.64) { 1841 psFree(object); 1842 exit(EXIT_FAILURE); 1843 } 1844 if (!object->fringe_2 == 64.64) { 1845 psFree(object); 1846 exit(EXIT_FAILURE); 1847 } 1848 if (!object->user_1 == 64.64) { 1849 psFree(object); 1850 exit(EXIT_FAILURE); 1851 } 1852 if (!object->user_2 == 64.64) { 1853 psFree(object); 1854 exit(EXIT_FAILURE); 1855 } 1856 if (!object->user_3 == 64.64) { 1857 psFree(object); 1858 exit(EXIT_FAILURE); 1859 } 1860 if (!object->user_4 == 64.64) { 1861 psFree(object); 1862 exit(EXIT_FAILURE); 1863 } 1864 if (!object->user_5 == 64.64) { 1865 psFree(object); 1866 exit(EXIT_FAILURE); 1867 } 1868 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1869 psFree(object); 1870 exit(EXIT_FAILURE); 1871 } 1872 if (!object->fault == -16) { 1873 psFree(object); 1874 exit(EXIT_FAILURE); 1875 } 1876 1877 psFree(object); 1878 } 1879 1880 { 1881 detStackedImfileRow *object; 1882 1883 object = detStackedImfileRowAlloc(-64, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, -16 ); 1884 1885 if (!object) { 1886 exit(EXIT_FAILURE); 1887 } 1888 1889 if (!object->det_id == -64) { 1890 psFree(object); 1891 exit(EXIT_FAILURE); 1892 } 1893 if (!object->iteration == -32) { 1894 psFree(object); 1895 exit(EXIT_FAILURE); 1896 } 1897 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1299 1898 psFree(object); 1300 1899 exit(EXIT_FAILURE); … … 1304 1903 exit(EXIT_FAILURE); 1305 1904 } 1905 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1906 psFree(object); 1907 exit(EXIT_FAILURE); 1908 } 1909 if (!object->bg == 64.64) { 1910 psFree(object); 1911 exit(EXIT_FAILURE); 1912 } 1913 if (!object->bg_stdev == 64.64) { 1914 psFree(object); 1915 exit(EXIT_FAILURE); 1916 } 1917 if (!object->bg_mean_stdev == 64.64) { 1918 psFree(object); 1919 exit(EXIT_FAILURE); 1920 } 1921 if (!object->user_1 == 64.64) { 1922 psFree(object); 1923 exit(EXIT_FAILURE); 1924 } 1925 if (!object->user_2 == 64.64) { 1926 psFree(object); 1927 exit(EXIT_FAILURE); 1928 } 1929 if (!object->user_3 == 64.64) { 1930 psFree(object); 1931 exit(EXIT_FAILURE); 1932 } 1933 if (!object->user_4 == 64.64) { 1934 psFree(object); 1935 exit(EXIT_FAILURE); 1936 } 1937 if (!object->user_5 == 64.64) { 1938 psFree(object); 1939 exit(EXIT_FAILURE); 1940 } 1941 if (!object->fault == -16) { 1942 psFree(object); 1943 exit(EXIT_FAILURE); 1944 } 1945 1946 psFree(object); 1947 } 1948 1949 { 1950 detNormalizedStatImfileRow *object; 1951 1952 object = detNormalizedStatImfileRowAlloc(-64, -32, "a string", 32.32, -16 ); 1953 1954 if (!object) { 1955 exit(EXIT_FAILURE); 1956 } 1957 1958 if (!object->det_id == -64) { 1959 psFree(object); 1960 exit(EXIT_FAILURE); 1961 } 1962 if (!object->iteration == -32) { 1963 psFree(object); 1964 exit(EXIT_FAILURE); 1965 } 1966 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1967 psFree(object); 1968 exit(EXIT_FAILURE); 1969 } 1970 if (!object->norm == 32.32) { 1971 psFree(object); 1972 exit(EXIT_FAILURE); 1973 } 1974 if (!object->fault == -16) { 1975 psFree(object); 1976 exit(EXIT_FAILURE); 1977 } 1978 1979 psFree(object); 1980 } 1981 1982 { 1983 detNormalizedImfileRow *object; 1984 1985 object = detNormalizedImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1986 1987 if (!object) { 1988 exit(EXIT_FAILURE); 1989 } 1990 1991 if (!object->det_id == -64) { 1992 psFree(object); 1993 exit(EXIT_FAILURE); 1994 } 1995 if (!object->iteration == -32) { 1996 psFree(object); 1997 exit(EXIT_FAILURE); 1998 } 1999 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2000 psFree(object); 2001 exit(EXIT_FAILURE); 2002 } 2003 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2004 psFree(object); 2005 exit(EXIT_FAILURE); 2006 } 2007 if (!object->bg == 64.64) { 2008 psFree(object); 2009 exit(EXIT_FAILURE); 2010 } 2011 if (!object->bg_stdev == 64.64) { 2012 psFree(object); 2013 exit(EXIT_FAILURE); 2014 } 2015 if (!object->bg_mean_stdev == 64.64) { 2016 psFree(object); 2017 exit(EXIT_FAILURE); 2018 } 2019 if (!object->user_1 == 64.64) { 2020 psFree(object); 2021 exit(EXIT_FAILURE); 2022 } 2023 if (!object->user_2 == 64.64) { 2024 psFree(object); 2025 exit(EXIT_FAILURE); 2026 } 2027 if (!object->user_3 == 64.64) { 2028 psFree(object); 2029 exit(EXIT_FAILURE); 2030 } 2031 if (!object->user_4 == 64.64) { 2032 psFree(object); 2033 exit(EXIT_FAILURE); 2034 } 2035 if (!object->user_5 == 64.64) { 2036 psFree(object); 2037 exit(EXIT_FAILURE); 2038 } 1306 2039 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1307 2040 psFree(object); 1308 2041 exit(EXIT_FAILURE); 1309 2042 } 2043 if (!object->fault == -16) { 2044 psFree(object); 2045 exit(EXIT_FAILURE); 2046 } 2047 2048 psFree(object); 2049 } 2050 2051 { 2052 detNormalizedExpRow *object; 2053 2054 object = detNormalizedExpRowAlloc(-64, -32, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 2055 2056 if (!object) { 2057 exit(EXIT_FAILURE); 2058 } 2059 2060 if (!object->det_id == -64) { 2061 psFree(object); 2062 exit(EXIT_FAILURE); 2063 } 2064 if (!object->iteration == -32) { 2065 psFree(object); 2066 exit(EXIT_FAILURE); 2067 } 2068 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2069 psFree(object); 2070 exit(EXIT_FAILURE); 2071 } 1310 2072 if (!object->bg == 64.64) { 1311 2073 psFree(object); … … 1316 2078 exit(EXIT_FAILURE); 1317 2079 } 1318 if (!object->dtime_warp == 32.32) { 1319 psFree(object); 1320 exit(EXIT_FAILURE); 1321 } 1322 if (strncmp(object->hostname, "a string", MAX_STRING_LENGTH)) { 1323 psFree(object); 1324 exit(EXIT_FAILURE); 1325 } 1326 if (!object->good_frac == 32.32) { 1327 psFree(object); 1328 exit(EXIT_FAILURE); 1329 } 1330 if (!object->ignored == true) { 2080 if (!object->bg_mean_stdev == 64.64) { 2081 psFree(object); 2082 exit(EXIT_FAILURE); 2083 } 2084 if (!object->user_1 == 64.64) { 2085 psFree(object); 2086 exit(EXIT_FAILURE); 2087 } 2088 if (!object->user_2 == 64.64) { 2089 psFree(object); 2090 exit(EXIT_FAILURE); 2091 } 2092 if (!object->user_3 == 64.64) { 2093 psFree(object); 2094 exit(EXIT_FAILURE); 2095 } 2096 if (!object->user_4 == 64.64) { 2097 psFree(object); 2098 exit(EXIT_FAILURE); 2099 } 2100 if (!object->user_5 == 64.64) { 2101 psFree(object); 2102 exit(EXIT_FAILURE); 2103 } 2104 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1331 2105 psFree(object); 1332 2106 exit(EXIT_FAILURE); … … 1341 2115 1342 2116 { 1343 diffRunRow *object; 1344 1345 object = diffRunRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" ); 1346 1347 if (!object) { 1348 exit(EXIT_FAILURE); 1349 } 1350 2117 detResidImfileRow *object; 2118 2119 object = detResidImfileRowAlloc(-64, -32, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 2120 2121 if (!object) { 2122 exit(EXIT_FAILURE); 2123 } 2124 2125 if (!object->det_id == -64) { 2126 psFree(object); 2127 exit(EXIT_FAILURE); 2128 } 2129 if (!object->iteration == -32) { 2130 psFree(object); 2131 exit(EXIT_FAILURE); 2132 } 2133 if (!object->exp_id == -64) { 2134 psFree(object); 2135 exit(EXIT_FAILURE); 2136 } 2137 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2138 psFree(object); 2139 exit(EXIT_FAILURE); 2140 } 2141 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2142 psFree(object); 2143 exit(EXIT_FAILURE); 2144 } 2145 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2146 psFree(object); 2147 exit(EXIT_FAILURE); 2148 } 2149 if (!object->bg == 64.64) { 2150 psFree(object); 2151 exit(EXIT_FAILURE); 2152 } 2153 if (!object->bg_stdev == 64.64) { 2154 psFree(object); 2155 exit(EXIT_FAILURE); 2156 } 2157 if (!object->bg_mean_stdev == 64.64) { 2158 psFree(object); 2159 exit(EXIT_FAILURE); 2160 } 2161 if (!object->bg_skewness == 64.64) { 2162 psFree(object); 2163 exit(EXIT_FAILURE); 2164 } 2165 if (!object->bg_kurtosis == 64.64) { 2166 psFree(object); 2167 exit(EXIT_FAILURE); 2168 } 2169 if (!object->bin_stdev == 64.64) { 2170 psFree(object); 2171 exit(EXIT_FAILURE); 2172 } 2173 if (!object->fringe_0 == 64.64) { 2174 psFree(object); 2175 exit(EXIT_FAILURE); 2176 } 2177 if (!object->fringe_1 == 64.64) { 2178 psFree(object); 2179 exit(EXIT_FAILURE); 2180 } 2181 if (!object->fringe_2 == 64.64) { 2182 psFree(object); 2183 exit(EXIT_FAILURE); 2184 } 2185 if (!object->fringe_resid_0 == 64.64) { 2186 psFree(object); 2187 exit(EXIT_FAILURE); 2188 } 2189 if (!object->fringe_resid_1 == 64.64) { 2190 psFree(object); 2191 exit(EXIT_FAILURE); 2192 } 2193 if (!object->fringe_resid_2 == 64.64) { 2194 psFree(object); 2195 exit(EXIT_FAILURE); 2196 } 2197 if (!object->user_1 == 64.64) { 2198 psFree(object); 2199 exit(EXIT_FAILURE); 2200 } 2201 if (!object->user_2 == 64.64) { 2202 psFree(object); 2203 exit(EXIT_FAILURE); 2204 } 2205 if (!object->user_3 == 64.64) { 2206 psFree(object); 2207 exit(EXIT_FAILURE); 2208 } 2209 if (!object->user_4 == 64.64) { 2210 psFree(object); 2211 exit(EXIT_FAILURE); 2212 } 2213 if (!object->user_5 == 64.64) { 2214 psFree(object); 2215 exit(EXIT_FAILURE); 2216 } 2217 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2218 psFree(object); 2219 exit(EXIT_FAILURE); 2220 } 2221 if (!object->fault == -16) { 2222 psFree(object); 2223 exit(EXIT_FAILURE); 2224 } 2225 2226 psFree(object); 2227 } 2228 2229 { 2230 detResidExpRow *object; 2231 2232 object = detResidExpRowAlloc(-64, -32, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", true, -16 ); 2233 2234 if (!object) { 2235 exit(EXIT_FAILURE); 2236 } 2237 2238 if (!object->det_id == -64) { 2239 psFree(object); 2240 exit(EXIT_FAILURE); 2241 } 2242 if (!object->iteration == -32) { 2243 psFree(object); 2244 exit(EXIT_FAILURE); 2245 } 2246 if (!object->exp_id == -64) { 2247 psFree(object); 2248 exit(EXIT_FAILURE); 2249 } 2250 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2251 psFree(object); 2252 exit(EXIT_FAILURE); 2253 } 2254 if (!object->bg == 64.64) { 2255 psFree(object); 2256 exit(EXIT_FAILURE); 2257 } 2258 if (!object->bg_stdev == 64.64) { 2259 psFree(object); 2260 exit(EXIT_FAILURE); 2261 } 2262 if (!object->bg_mean_stdev == 64.64) { 2263 psFree(object); 2264 exit(EXIT_FAILURE); 2265 } 2266 if (!object->bg_skewness == 64.64) { 2267 psFree(object); 2268 exit(EXIT_FAILURE); 2269 } 2270 if (!object->bg_kurtosis == 64.64) { 2271 psFree(object); 2272 exit(EXIT_FAILURE); 2273 } 2274 if (!object->bin_stdev == 64.64) { 2275 psFree(object); 2276 exit(EXIT_FAILURE); 2277 } 2278 if (!object->fringe_0 == 64.64) { 2279 psFree(object); 2280 exit(EXIT_FAILURE); 2281 } 2282 if (!object->fringe_1 == 64.64) { 2283 psFree(object); 2284 exit(EXIT_FAILURE); 2285 } 2286 if (!object->fringe_2 == 64.64) { 2287 psFree(object); 2288 exit(EXIT_FAILURE); 2289 } 2290 if (!object->fringe_resid_0 == 64.64) { 2291 psFree(object); 2292 exit(EXIT_FAILURE); 2293 } 2294 if (!object->fringe_resid_1 == 64.64) { 2295 psFree(object); 2296 exit(EXIT_FAILURE); 2297 } 2298 if (!object->fringe_resid_2 == 64.64) { 2299 psFree(object); 2300 exit(EXIT_FAILURE); 2301 } 2302 if (!object->user_1 == 64.64) { 2303 psFree(object); 2304 exit(EXIT_FAILURE); 2305 } 2306 if (!object->user_2 == 64.64) { 2307 psFree(object); 2308 exit(EXIT_FAILURE); 2309 } 2310 if (!object->user_3 == 64.64) { 2311 psFree(object); 2312 exit(EXIT_FAILURE); 2313 } 2314 if (!object->user_4 == 64.64) { 2315 psFree(object); 2316 exit(EXIT_FAILURE); 2317 } 2318 if (!object->user_5 == 64.64) { 2319 psFree(object); 2320 exit(EXIT_FAILURE); 2321 } 2322 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2323 psFree(object); 2324 exit(EXIT_FAILURE); 2325 } 2326 if (!object->accept == true) { 2327 psFree(object); 2328 exit(EXIT_FAILURE); 2329 } 2330 if (!object->fault == -16) { 2331 psFree(object); 2332 exit(EXIT_FAILURE); 2333 } 2334 2335 psFree(object); 2336 } 2337 2338 { 2339 detRunSummaryRow *object; 2340 2341 object = detRunSummaryRowAlloc(-64, -32, 64.64, 64.64, 64.64, true, -16 ); 2342 2343 if (!object) { 2344 exit(EXIT_FAILURE); 2345 } 2346 2347 if (!object->det_id == -64) { 2348 psFree(object); 2349 exit(EXIT_FAILURE); 2350 } 2351 if (!object->iteration == -32) { 2352 psFree(object); 2353 exit(EXIT_FAILURE); 2354 } 2355 if (!object->bg == 64.64) { 2356 psFree(object); 2357 exit(EXIT_FAILURE); 2358 } 2359 if (!object->bg_stdev == 64.64) { 2360 psFree(object); 2361 exit(EXIT_FAILURE); 2362 } 2363 if (!object->bg_mean_stdev == 64.64) { 2364 psFree(object); 2365 exit(EXIT_FAILURE); 2366 } 2367 if (!object->accept == true) { 2368 psFree(object); 2369 exit(EXIT_FAILURE); 2370 } 2371 if (!object->fault == -16) { 2372 psFree(object); 2373 exit(EXIT_FAILURE); 2374 } 2375 2376 psFree(object); 2377 } 2378 2379 { 2380 detRegisteredImfileRow *object; 2381 2382 object = detRegisteredImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 2383 2384 if (!object) { 2385 exit(EXIT_FAILURE); 2386 } 2387 2388 if (!object->det_id == -64) { 2389 psFree(object); 2390 exit(EXIT_FAILURE); 2391 } 2392 if (!object->iteration == -32) { 2393 psFree(object); 2394 exit(EXIT_FAILURE); 2395 } 2396 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2397 psFree(object); 2398 exit(EXIT_FAILURE); 2399 } 2400 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2401 psFree(object); 2402 exit(EXIT_FAILURE); 2403 } 2404 if (!object->bg == 64.64) { 2405 psFree(object); 2406 exit(EXIT_FAILURE); 2407 } 2408 if (!object->bg_stdev == 64.64) { 2409 psFree(object); 2410 exit(EXIT_FAILURE); 2411 } 2412 if (!object->bg_mean_stdev == 64.64) { 2413 psFree(object); 2414 exit(EXIT_FAILURE); 2415 } 2416 if (!object->user_1 == 64.64) { 2417 psFree(object); 2418 exit(EXIT_FAILURE); 2419 } 2420 if (!object->user_2 == 64.64) { 2421 psFree(object); 2422 exit(EXIT_FAILURE); 2423 } 2424 if (!object->user_3 == 64.64) { 2425 psFree(object); 2426 exit(EXIT_FAILURE); 2427 } 2428 if (!object->user_4 == 64.64) { 2429 psFree(object); 2430 exit(EXIT_FAILURE); 2431 } 2432 if (!object->user_5 == 64.64) { 2433 psFree(object); 2434 exit(EXIT_FAILURE); 2435 } 2436 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2437 psFree(object); 2438 exit(EXIT_FAILURE); 2439 } 2440 if (!object->fault == -16) { 2441 psFree(object); 2442 exit(EXIT_FAILURE); 2443 } 2444 2445 psFree(object); 2446 } 2447 2448 { 2449 detCorrectedExpRow *object; 2450 2451 object = detCorrectedExpRowAlloc(-64, -64, "a string", -64, "a string", "a string", "a string", -16 ); 2452 2453 if (!object) { 2454 exit(EXIT_FAILURE); 2455 } 2456 2457 if (!object->det_id == -64) { 2458 psFree(object); 2459 exit(EXIT_FAILURE); 2460 } 2461 if (!object->exp_id == -64) { 2462 psFree(object); 2463 exit(EXIT_FAILURE); 2464 } 2465 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2466 psFree(object); 2467 exit(EXIT_FAILURE); 2468 } 2469 if (!object->corr_id == -64) { 2470 psFree(object); 2471 exit(EXIT_FAILURE); 2472 } 2473 if (strncmp(object->corr_type, "a string", MAX_STRING_LENGTH)) { 2474 psFree(object); 2475 exit(EXIT_FAILURE); 2476 } 2477 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2478 psFree(object); 2479 exit(EXIT_FAILURE); 2480 } 2481 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2482 psFree(object); 2483 exit(EXIT_FAILURE); 2484 } 2485 if (!object->fault == -16) { 2486 psFree(object); 2487 exit(EXIT_FAILURE); 2488 } 2489 2490 psFree(object); 2491 } 2492 2493 { 2494 detCorrectedImfileRow *object; 2495 2496 object = detCorrectedImfileRowAlloc(-64, -64, "a string", "a string", "a string", -16 ); 2497 2498 if (!object) { 2499 exit(EXIT_FAILURE); 2500 } 2501 2502 if (!object->det_id == -64) { 2503 psFree(object); 2504 exit(EXIT_FAILURE); 2505 } 2506 if (!object->exp_id == -64) { 2507 psFree(object); 2508 exit(EXIT_FAILURE); 2509 } 2510 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2511 psFree(object); 2512 exit(EXIT_FAILURE); 2513 } 2514 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2515 psFree(object); 2516 exit(EXIT_FAILURE); 2517 } 2518 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2519 psFree(object); 2520 exit(EXIT_FAILURE); 2521 } 2522 if (!object->fault == -16) { 2523 psFree(object); 2524 exit(EXIT_FAILURE); 2525 } 2526 2527 psFree(object); 2528 } 2529 2530 { 2531 magicRunRow *object; 2532 2533 object = magicRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z" ); 2534 2535 if (!object) { 2536 exit(EXIT_FAILURE); 2537 } 2538 2539 if (!object->magic_id == -64) { 2540 psFree(object); 2541 exit(EXIT_FAILURE); 2542 } 2543 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2544 psFree(object); 2545 exit(EXIT_FAILURE); 2546 } 2547 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 2548 psFree(object); 2549 exit(EXIT_FAILURE); 2550 } 2551 if (strncmp(object->workdir_state, "a string", MAX_STRING_LENGTH)) { 2552 psFree(object); 2553 exit(EXIT_FAILURE); 2554 } 2555 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 2556 psFree(object); 2557 exit(EXIT_FAILURE); 2558 } 2559 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 2560 psFree(object); 2561 exit(EXIT_FAILURE); 2562 } 2563 psFree(object); 2564 exit(EXIT_FAILURE); 2565 } 2566 2567 psFree(object); 2568 } 2569 2570 { 2571 magicInputSkyfileRow *object; 2572 2573 object = magicInputSkyfileRowAlloc(-64, -64, "a string" ); 2574 2575 if (!object) { 2576 exit(EXIT_FAILURE); 2577 } 2578 2579 if (!object->magic_id == -64) { 2580 psFree(object); 2581 exit(EXIT_FAILURE); 2582 } 1351 2583 if (!object->diff_id == -64) { 1352 2584 psFree(object); 1353 2585 exit(EXIT_FAILURE); 1354 2586 } 2587 if (strncmp(object->node, "a string", MAX_STRING_LENGTH)) { 2588 psFree(object); 2589 exit(EXIT_FAILURE); 2590 } 2591 2592 psFree(object); 2593 } 2594 2595 { 2596 magicTreeRow *object; 2597 2598 object = magicTreeRowAlloc(-64, "a string", "a string" ); 2599 2600 if (!object) { 2601 exit(EXIT_FAILURE); 2602 } 2603 2604 if (!object->magic_id == -64) { 2605 psFree(object); 2606 exit(EXIT_FAILURE); 2607 } 2608 if (strncmp(object->node, "a string", MAX_STRING_LENGTH)) { 2609 psFree(object); 2610 exit(EXIT_FAILURE); 2611 } 2612 if (strncmp(object->dep, "a string", MAX_STRING_LENGTH)) { 2613 psFree(object); 2614 exit(EXIT_FAILURE); 2615 } 2616 2617 psFree(object); 2618 } 2619 2620 { 2621 magicNodeResultRow *object; 2622 2623 object = magicNodeResultRowAlloc(-64, "a string", "a string" ); 2624 2625 if (!object) { 2626 exit(EXIT_FAILURE); 2627 } 2628 2629 if (!object->magic_id == -64) { 2630 psFree(object); 2631 exit(EXIT_FAILURE); 2632 } 2633 if (strncmp(object->node, "a string", MAX_STRING_LENGTH)) { 2634 psFree(object); 2635 exit(EXIT_FAILURE); 2636 } 2637 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2638 psFree(object); 2639 exit(EXIT_FAILURE); 2640 } 2641 2642 psFree(object); 2643 } 2644 2645 { 2646 magicMaskRow *object; 2647 2648 object = magicMaskRowAlloc(-64, "a string" ); 2649 2650 if (!object) { 2651 exit(EXIT_FAILURE); 2652 } 2653 2654 if (!object->magic_id == -64) { 2655 psFree(object); 2656 exit(EXIT_FAILURE); 2657 } 2658 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2659 psFree(object); 2660 exit(EXIT_FAILURE); 2661 } 2662 2663 psFree(object); 2664 } 2665 2666 { 2667 magicSkyfileMaskRow *object; 2668 2669 object = magicSkyfileMaskRowAlloc(-64, -64, "a string" ); 2670 2671 if (!object) { 2672 exit(EXIT_FAILURE); 2673 } 2674 2675 if (!object->magic_id == -64) { 2676 psFree(object); 2677 exit(EXIT_FAILURE); 2678 } 2679 if (!object->diff_id == -64) { 2680 psFree(object); 2681 exit(EXIT_FAILURE); 2682 } 2683 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2684 psFree(object); 2685 exit(EXIT_FAILURE); 2686 } 2687 2688 psFree(object); 2689 } 2690 2691 { 2692 calDBRow *object; 2693 2694 object = calDBRowAlloc(-64, "a string", "a string" ); 2695 2696 if (!object) { 2697 exit(EXIT_FAILURE); 2698 } 2699 2700 if (!object->cal_id == -64) { 2701 psFree(object); 2702 exit(EXIT_FAILURE); 2703 } 2704 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 2705 psFree(object); 2706 exit(EXIT_FAILURE); 2707 } 1355 2708 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 1356 2709 psFree(object); 1357 2710 exit(EXIT_FAILURE); 1358 2711 } 2712 2713 psFree(object); 2714 } 2715 2716 { 2717 calRunRow *object; 2718 2719 object = calRunRowAlloc(-64, "a string", "a string", "a string" ); 2720 2721 if (!object) { 2722 exit(EXIT_FAILURE); 2723 } 2724 2725 if (!object->cal_id == -64) { 2726 psFree(object); 2727 exit(EXIT_FAILURE); 2728 } 2729 if (strncmp(object->region, "a string", MAX_STRING_LENGTH)) { 2730 psFree(object); 2731 exit(EXIT_FAILURE); 2732 } 2733 if (strncmp(object->last_step, "a string", MAX_STRING_LENGTH)) { 2734 psFree(object); 2735 exit(EXIT_FAILURE); 2736 } 2737 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2738 psFree(object); 2739 exit(EXIT_FAILURE); 2740 } 2741 2742 psFree(object); 2743 } 2744 2745 { 2746 flatcorrRunRow *object; 2747 2748 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string" ); 2749 2750 if (!object) { 2751 exit(EXIT_FAILURE); 2752 } 2753 2754 if (!object->corr_id == -64) { 2755 psFree(object); 2756 exit(EXIT_FAILURE); 2757 } 2758 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 2759 psFree(object); 2760 exit(EXIT_FAILURE); 2761 } 2762 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) { 2763 psFree(object); 2764 exit(EXIT_FAILURE); 2765 } 2766 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2767 psFree(object); 2768 exit(EXIT_FAILURE); 2769 } 1359 2770 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 1360 2771 psFree(object); 1361 2772 exit(EXIT_FAILURE); 1362 2773 } 1363 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {1364 psFree(object);1365 exit(EXIT_FAILURE);1366 }1367 psFree(object);1368 exit(EXIT_FAILURE);1369 }1370 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {1371 psFree(object);1372 exit(EXIT_FAILURE);1373 }1374 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {1375 psFree(object);1376 exit(EXIT_FAILURE);1377 }1378 1379 psFree(object);1380 }1381 1382 {1383 diffInputSkyfileRow *object;1384 1385 object = diffInputSkyfileRowAlloc(-64, true, -64, -64, "a string", "a string", "a string" );1386 1387 if (!object) {1388 exit(EXIT_FAILURE);1389 }1390 1391 if (!object->diff_id == -64) {1392 psFree(object);1393 exit(EXIT_FAILURE);1394 }1395 if (!object->template == true) {1396 psFree(object);1397 exit(EXIT_FAILURE);1398 }1399 if (!object->stack_id == -64) {1400 psFree(object);1401 exit(EXIT_FAILURE);1402 }1403 if (!object->warp_id == -64) {1404 psFree(object);1405 exit(EXIT_FAILURE);1406 }1407 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {1408 psFree(object);1409 exit(EXIT_FAILURE);1410 }1411 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {1412 psFree(object);1413 exit(EXIT_FAILURE);1414 }1415 if (strncmp(object->kind, "a string", MAX_STRING_LENGTH)) {1416 psFree(object);1417 exit(EXIT_FAILURE);1418 }1419 1420 psFree(object);1421 }1422 1423 {1424 diffSkyfileRow *object;1425 1426 object = diffSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, -16 );1427 1428 if (!object) {1429 exit(EXIT_FAILURE);1430 }1431 1432 if (!object->diff_id == -64) {1433 psFree(object);1434 exit(EXIT_FAILURE);1435 }1436 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {1437 psFree(object);1438 exit(EXIT_FAILURE);1439 }1440 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {1441 psFree(object);1442 exit(EXIT_FAILURE);1443 }1444 if (!object->bg == 64.64) {1445 psFree(object);1446 exit(EXIT_FAILURE);1447 }1448 if (!object->bg_stdev == 64.64) {1449 psFree(object);1450 exit(EXIT_FAILURE);1451 }1452 if (!object->dtime_diff == 32.32) {1453 psFree(object);1454 exit(EXIT_FAILURE);1455 }1456 if (strncmp(object->hostname, "a string", MAX_STRING_LENGTH)) {1457 psFree(object);1458 exit(EXIT_FAILURE);1459 }1460 if (!object->good_frac == 32.32) {1461 psFree(object);1462 exit(EXIT_FAILURE);1463 }1464 if (!object->fault == -16) {1465 psFree(object);1466 exit(EXIT_FAILURE);1467 }1468 1469 psFree(object);1470 }1471 1472 {1473 stackRunRow *object;1474 1475 object = stackRunRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" );1476 1477 if (!object) {1478 exit(EXIT_FAILURE);1479 }1480 1481 if (!object->stack_id == -64) {1482 psFree(object);1483 exit(EXIT_FAILURE);1484 }1485 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {1486 psFree(object);1487 exit(EXIT_FAILURE);1488 }1489 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {1490 psFree(object);1491 exit(EXIT_FAILURE);1492 }1493 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {1494 psFree(object);1495 exit(EXIT_FAILURE);1496 }1497 psFree(object);1498 exit(EXIT_FAILURE);1499 }1500 if (strncmp(object->skycell_id, "a string", MAX_STRING_LENGTH)) {1501 psFree(object);1502 exit(EXIT_FAILURE);1503 }1504 if (strncmp(object->tess_id, "a string", MAX_STRING_LENGTH)) {1505 psFree(object);1506 exit(EXIT_FAILURE);1507 }1508 1509 psFree(object);1510 }1511 1512 {1513 stackInputSkyfileRow *object;1514 1515 object = stackInputSkyfileRowAlloc(-64, -64 );1516 1517 if (!object) {1518 exit(EXIT_FAILURE);1519 }1520 1521 if (!object->stack_id == -64) {1522 psFree(object);1523 exit(EXIT_FAILURE);1524 }1525 if (!object->warp_id == -64) {1526 psFree(object);1527 exit(EXIT_FAILURE);1528 }1529 1530 psFree(object);1531 }1532 1533 {1534 stackSumSkyfileRow *object;1535 1536 object = stackSumSkyfileRowAlloc(-64, "a string", "a string", 64.64, 64.64, 32.32, "a string", 32.32, -16 );1537 1538 if (!object) {1539 exit(EXIT_FAILURE);1540 }1541 1542 if (!object->stack_id == -64) {1543 psFree(object);1544 exit(EXIT_FAILURE);1545 }1546 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {1547 psFree(object);1548 exit(EXIT_FAILURE);1549 }1550 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) {1551 psFree(object);1552 exit(EXIT_FAILURE);1553 }1554 if (!object->bg == 64.64) {1555 psFree(object);1556 exit(EXIT_FAILURE);1557 }1558 if (!object->bg_stdev == 64.64) {1559 psFree(object);1560 exit(EXIT_FAILURE);1561 }1562 if (!object->dtime_stack == 32.32) {1563 psFree(object);1564 exit(EXIT_FAILURE);1565 }1566 if (strncmp(object->hostname, "a string", MAX_STRING_LENGTH)) {1567 psFree(object);1568 exit(EXIT_FAILURE);1569 }1570 if (!object->good_frac == 32.32) {1571 psFree(object);1572 exit(EXIT_FAILURE);1573 }1574 if (!object->fault == -16) {1575 psFree(object);1576 exit(EXIT_FAILURE);1577 }1578 1579 psFree(object);1580 }1581 1582 {1583 detRunRow *object;1584 1585 object = detRunRowAlloc(-64, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32 );1586 1587 if (!object) {1588 exit(EXIT_FAILURE);1589 }1590 1591 if (!object->det_id == -64) {1592 psFree(object);1593 exit(EXIT_FAILURE);1594 }1595 if (!object->iteration == -32) {1596 psFree(object);1597 exit(EXIT_FAILURE);1598 }1599 if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {1600 psFree(object);1601 exit(EXIT_FAILURE);1602 }1603 if (strncmp(object->mode, "a string", MAX_STRING_LENGTH)) {1604 psFree(object);1605 exit(EXIT_FAILURE);1606 }1607 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {1608 psFree(object);1609 exit(EXIT_FAILURE);1610 }1611 if (strncmp(object->filelevel, "a string", MAX_STRING_LENGTH)) {1612 psFree(object);1613 exit(EXIT_FAILURE);1614 }1615 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {1616 psFree(object);1617 exit(EXIT_FAILURE);1618 }1619 if (strncmp(object->camera, "a string", MAX_STRING_LENGTH)) {1620 psFree(object);1621 exit(EXIT_FAILURE);1622 }1623 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) {1624 psFree(object);1625 exit(EXIT_FAILURE);1626 }1627 if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) {1628 psFree(object);1629 exit(EXIT_FAILURE);1630 }1631 if (strncmp(object->reduction, "a string", MAX_STRING_LENGTH)) {1632 psFree(object);1633 exit(EXIT_FAILURE);1634 }1635 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) {1636 psFree(object);1637 exit(EXIT_FAILURE);1638 }1639 if (!object->airmass_min == 32.32) {1640 psFree(object);1641 exit(EXIT_FAILURE);1642 }1643 if (!object->airmass_max == 32.32) {1644 psFree(object);1645 exit(EXIT_FAILURE);1646 }1647 if (!object->exp_time_min == 32.32) {1648 psFree(object);1649 exit(EXIT_FAILURE);1650 }1651 if (!object->exp_time_max == 32.32) {1652 psFree(object);1653 exit(EXIT_FAILURE);1654 }1655 if (!object->ccd_temp_min == 32.32) {1656 psFree(object);1657 exit(EXIT_FAILURE);1658 }1659 if (!object->ccd_temp_max == 32.32) {1660 psFree(object);1661 exit(EXIT_FAILURE);1662 }1663 if (!object->posang_min == 64.64) {1664 psFree(object);1665 exit(EXIT_FAILURE);1666 }1667 if (!object->posang_max == 64.64) {1668 psFree(object);1669 exit(EXIT_FAILURE);1670 }1671 psFree(object);1672 exit(EXIT_FAILURE);1673 }1674 psFree(object);1675 exit(EXIT_FAILURE);1676 }1677 psFree(object);1678 exit(EXIT_FAILURE);1679 }1680 psFree(object);1681 exit(EXIT_FAILURE);1682 }1683 psFree(object);1684 exit(EXIT_FAILURE);1685 }1686 if (!object->solang_min == 32.32) {1687 psFree(object);1688 exit(EXIT_FAILURE);1689 }1690 if (!object->solang_max == 32.32) {1691 psFree(object);1692 exit(EXIT_FAILURE);1693 }1694 2774 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 1695 2775 psFree(object); 1696 2776 exit(EXIT_FAILURE); 1697 2777 } 1698 if (!object->parent == -32) { 1699 psFree(object); 1700 exit(EXIT_FAILURE); 1701 } 1702 1703 psFree(object); 1704 } 1705 1706 { 1707 detInputExpRow *object; 1708 1709 object = detInputExpRowAlloc(-64, -32, -64, true ); 1710 1711 if (!object) { 1712 exit(EXIT_FAILURE); 1713 } 1714 1715 if (!object->det_id == -64) { 1716 psFree(object); 1717 exit(EXIT_FAILURE); 1718 } 1719 if (!object->iteration == -32) { 1720 psFree(object); 1721 exit(EXIT_FAILURE); 1722 } 1723 if (!object->exp_id == -64) { 1724 psFree(object); 1725 exit(EXIT_FAILURE); 1726 } 1727 if (!object->include == true) { 1728 psFree(object); 1729 exit(EXIT_FAILURE); 1730 } 1731 1732 psFree(object); 1733 } 1734 1735 { 1736 detProcessedImfileRow *object; 1737 1738 object = detProcessedImfileRowAlloc(-64, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1739 1740 if (!object) { 1741 exit(EXIT_FAILURE); 1742 } 1743 1744 if (!object->det_id == -64) { 1745 psFree(object); 1746 exit(EXIT_FAILURE); 1747 } 1748 if (!object->exp_id == -64) { 1749 psFree(object); 1750 exit(EXIT_FAILURE); 1751 } 1752 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1753 psFree(object); 1754 exit(EXIT_FAILURE); 1755 } 1756 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1757 psFree(object); 1758 exit(EXIT_FAILURE); 1759 } 1760 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1761 psFree(object); 1762 exit(EXIT_FAILURE); 1763 } 1764 if (!object->bg == 64.64) { 1765 psFree(object); 1766 exit(EXIT_FAILURE); 1767 } 1768 if (!object->bg_stdev == 64.64) { 1769 psFree(object); 1770 exit(EXIT_FAILURE); 1771 } 1772 if (!object->bg_mean_stdev == 64.64) { 1773 psFree(object); 1774 exit(EXIT_FAILURE); 1775 } 1776 if (!object->fringe_0 == 64.64) { 1777 psFree(object); 1778 exit(EXIT_FAILURE); 1779 } 1780 if (!object->fringe_1 == 64.64) { 1781 psFree(object); 1782 exit(EXIT_FAILURE); 1783 } 1784 if (!object->fringe_2 == 64.64) { 1785 psFree(object); 1786 exit(EXIT_FAILURE); 1787 } 1788 if (!object->user_1 == 64.64) { 1789 psFree(object); 1790 exit(EXIT_FAILURE); 1791 } 1792 if (!object->user_2 == 64.64) { 1793 psFree(object); 1794 exit(EXIT_FAILURE); 1795 } 1796 if (!object->user_3 == 64.64) { 1797 psFree(object); 1798 exit(EXIT_FAILURE); 1799 } 1800 if (!object->user_4 == 64.64) { 1801 psFree(object); 1802 exit(EXIT_FAILURE); 1803 } 1804 if (!object->user_5 == 64.64) { 1805 psFree(object); 1806 exit(EXIT_FAILURE); 1807 } 1808 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1809 psFree(object); 1810 exit(EXIT_FAILURE); 1811 } 1812 if (!object->fault == -16) { 1813 psFree(object); 1814 exit(EXIT_FAILURE); 1815 } 1816 1817 psFree(object); 1818 } 1819 1820 { 1821 detProcessedExpRow *object; 1822 1823 object = detProcessedExpRowAlloc(-64, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 1824 1825 if (!object) { 1826 exit(EXIT_FAILURE); 1827 } 1828 1829 if (!object->det_id == -64) { 1830 psFree(object); 1831 exit(EXIT_FAILURE); 1832 } 1833 if (!object->exp_id == -64) { 1834 psFree(object); 1835 exit(EXIT_FAILURE); 1836 } 1837 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1838 psFree(object); 1839 exit(EXIT_FAILURE); 1840 } 1841 if (!object->bg == 64.64) { 1842 psFree(object); 1843 exit(EXIT_FAILURE); 1844 } 1845 if (!object->bg_stdev == 64.64) { 1846 psFree(object); 1847 exit(EXIT_FAILURE); 1848 } 1849 if (!object->bg_mean_stdev == 64.64) { 1850 psFree(object); 1851 exit(EXIT_FAILURE); 1852 } 1853 if (!object->fringe_0 == 64.64) { 1854 psFree(object); 1855 exit(EXIT_FAILURE); 1856 } 1857 if (!object->fringe_1 == 64.64) { 1858 psFree(object); 1859 exit(EXIT_FAILURE); 1860 } 1861 if (!object->fringe_2 == 64.64) { 1862 psFree(object); 1863 exit(EXIT_FAILURE); 1864 } 1865 if (!object->user_1 == 64.64) { 1866 psFree(object); 1867 exit(EXIT_FAILURE); 1868 } 1869 if (!object->user_2 == 64.64) { 1870 psFree(object); 1871 exit(EXIT_FAILURE); 1872 } 1873 if (!object->user_3 == 64.64) { 1874 psFree(object); 1875 exit(EXIT_FAILURE); 1876 } 1877 if (!object->user_4 == 64.64) { 1878 psFree(object); 1879 exit(EXIT_FAILURE); 1880 } 1881 if (!object->user_5 == 64.64) { 1882 psFree(object); 1883 exit(EXIT_FAILURE); 1884 } 1885 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 1886 psFree(object); 1887 exit(EXIT_FAILURE); 1888 } 1889 if (!object->fault == -16) { 1890 psFree(object); 1891 exit(EXIT_FAILURE); 1892 } 1893 1894 psFree(object); 1895 } 1896 1897 { 1898 detStackedImfileRow *object; 1899 1900 object = detStackedImfileRowAlloc(-64, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, -16 ); 1901 1902 if (!object) { 1903 exit(EXIT_FAILURE); 1904 } 1905 1906 if (!object->det_id == -64) { 1907 psFree(object); 1908 exit(EXIT_FAILURE); 1909 } 1910 if (!object->iteration == -32) { 1911 psFree(object); 1912 exit(EXIT_FAILURE); 1913 } 1914 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1915 psFree(object); 1916 exit(EXIT_FAILURE); 1917 } 1918 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1919 psFree(object); 1920 exit(EXIT_FAILURE); 1921 } 1922 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 1923 psFree(object); 1924 exit(EXIT_FAILURE); 1925 } 1926 if (!object->bg == 64.64) { 1927 psFree(object); 1928 exit(EXIT_FAILURE); 1929 } 1930 if (!object->bg_stdev == 64.64) { 1931 psFree(object); 1932 exit(EXIT_FAILURE); 1933 } 1934 if (!object->bg_mean_stdev == 64.64) { 1935 psFree(object); 1936 exit(EXIT_FAILURE); 1937 } 1938 if (!object->user_1 == 64.64) { 1939 psFree(object); 1940 exit(EXIT_FAILURE); 1941 } 1942 if (!object->user_2 == 64.64) { 1943 psFree(object); 1944 exit(EXIT_FAILURE); 1945 } 1946 if (!object->user_3 == 64.64) { 1947 psFree(object); 1948 exit(EXIT_FAILURE); 1949 } 1950 if (!object->user_4 == 64.64) { 1951 psFree(object); 1952 exit(EXIT_FAILURE); 1953 } 1954 if (!object->user_5 == 64.64) { 1955 psFree(object); 1956 exit(EXIT_FAILURE); 1957 } 1958 if (!object->fault == -16) { 1959 psFree(object); 1960 exit(EXIT_FAILURE); 1961 } 1962 1963 psFree(object); 1964 } 1965 1966 { 1967 detNormalizedStatImfileRow *object; 1968 1969 object = detNormalizedStatImfileRowAlloc(-64, -32, "a string", 32.32, -16 ); 1970 1971 if (!object) { 1972 exit(EXIT_FAILURE); 1973 } 1974 1975 if (!object->det_id == -64) { 1976 psFree(object); 1977 exit(EXIT_FAILURE); 1978 } 1979 if (!object->iteration == -32) { 1980 psFree(object); 1981 exit(EXIT_FAILURE); 1982 } 1983 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 1984 psFree(object); 1985 exit(EXIT_FAILURE); 1986 } 1987 if (!object->norm == 32.32) { 1988 psFree(object); 1989 exit(EXIT_FAILURE); 1990 } 1991 if (!object->fault == -16) { 1992 psFree(object); 1993 exit(EXIT_FAILURE); 1994 } 1995 1996 psFree(object); 1997 } 1998 1999 { 2000 detNormalizedImfileRow *object; 2001 2002 object = detNormalizedImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 2003 2004 if (!object) { 2005 exit(EXIT_FAILURE); 2006 } 2007 2008 if (!object->det_id == -64) { 2009 psFree(object); 2010 exit(EXIT_FAILURE); 2011 } 2012 if (!object->iteration == -32) { 2013 psFree(object); 2014 exit(EXIT_FAILURE); 2015 } 2016 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2017 psFree(object); 2018 exit(EXIT_FAILURE); 2019 } 2020 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2021 psFree(object); 2022 exit(EXIT_FAILURE); 2023 } 2024 if (!object->bg == 64.64) { 2025 psFree(object); 2026 exit(EXIT_FAILURE); 2027 } 2028 if (!object->bg_stdev == 64.64) { 2029 psFree(object); 2030 exit(EXIT_FAILURE); 2031 } 2032 if (!object->bg_mean_stdev == 64.64) { 2033 psFree(object); 2034 exit(EXIT_FAILURE); 2035 } 2036 if (!object->user_1 == 64.64) { 2037 psFree(object); 2038 exit(EXIT_FAILURE); 2039 } 2040 if (!object->user_2 == 64.64) { 2041 psFree(object); 2042 exit(EXIT_FAILURE); 2043 } 2044 if (!object->user_3 == 64.64) { 2045 psFree(object); 2046 exit(EXIT_FAILURE); 2047 } 2048 if (!object->user_4 == 64.64) { 2049 psFree(object); 2050 exit(EXIT_FAILURE); 2051 } 2052 if (!object->user_5 == 64.64) { 2053 psFree(object); 2054 exit(EXIT_FAILURE); 2055 } 2056 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2057 psFree(object); 2058 exit(EXIT_FAILURE); 2059 } 2060 if (!object->fault == -16) { 2061 psFree(object); 2062 exit(EXIT_FAILURE); 2063 } 2064 2065 psFree(object); 2066 } 2067 2068 { 2069 detNormalizedExpRow *object; 2070 2071 object = detNormalizedExpRowAlloc(-64, -32, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 2072 2073 if (!object) { 2074 exit(EXIT_FAILURE); 2075 } 2076 2077 if (!object->det_id == -64) { 2078 psFree(object); 2079 exit(EXIT_FAILURE); 2080 } 2081 if (!object->iteration == -32) { 2082 psFree(object); 2083 exit(EXIT_FAILURE); 2084 } 2085 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2086 psFree(object); 2087 exit(EXIT_FAILURE); 2088 } 2089 if (!object->bg == 64.64) { 2090 psFree(object); 2091 exit(EXIT_FAILURE); 2092 } 2093 if (!object->bg_stdev == 64.64) { 2094 psFree(object); 2095 exit(EXIT_FAILURE); 2096 } 2097 if (!object->bg_mean_stdev == 64.64) { 2098 psFree(object); 2099 exit(EXIT_FAILURE); 2100 } 2101 if (!object->user_1 == 64.64) { 2102 psFree(object); 2103 exit(EXIT_FAILURE); 2104 } 2105 if (!object->user_2 == 64.64) { 2106 psFree(object); 2107 exit(EXIT_FAILURE); 2108 } 2109 if (!object->user_3 == 64.64) { 2110 psFree(object); 2111 exit(EXIT_FAILURE); 2112 } 2113 if (!object->user_4 == 64.64) { 2114 psFree(object); 2115 exit(EXIT_FAILURE); 2116 } 2117 if (!object->user_5 == 64.64) { 2118 psFree(object); 2119 exit(EXIT_FAILURE); 2120 } 2121 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2122 psFree(object); 2123 exit(EXIT_FAILURE); 2124 } 2125 if (!object->fault == -16) { 2126 psFree(object); 2127 exit(EXIT_FAILURE); 2128 } 2129 2130 psFree(object); 2131 } 2132 2133 { 2134 detResidImfileRow *object; 2135 2136 object = detResidImfileRowAlloc(-64, -32, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 2137 2138 if (!object) { 2139 exit(EXIT_FAILURE); 2140 } 2141 2142 if (!object->det_id == -64) { 2143 psFree(object); 2144 exit(EXIT_FAILURE); 2145 } 2146 if (!object->iteration == -32) { 2147 psFree(object); 2148 exit(EXIT_FAILURE); 2149 } 2150 if (!object->exp_id == -64) { 2151 psFree(object); 2152 exit(EXIT_FAILURE); 2153 } 2154 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2155 psFree(object); 2156 exit(EXIT_FAILURE); 2157 } 2158 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2159 psFree(object); 2160 exit(EXIT_FAILURE); 2161 } 2162 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2163 psFree(object); 2164 exit(EXIT_FAILURE); 2165 } 2166 if (!object->bg == 64.64) { 2167 psFree(object); 2168 exit(EXIT_FAILURE); 2169 } 2170 if (!object->bg_stdev == 64.64) { 2171 psFree(object); 2172 exit(EXIT_FAILURE); 2173 } 2174 if (!object->bg_mean_stdev == 64.64) { 2175 psFree(object); 2176 exit(EXIT_FAILURE); 2177 } 2178 if (!object->bg_skewness == 64.64) { 2179 psFree(object); 2180 exit(EXIT_FAILURE); 2181 } 2182 if (!object->bg_kurtosis == 64.64) { 2183 psFree(object); 2184 exit(EXIT_FAILURE); 2185 } 2186 if (!object->bin_stdev == 64.64) { 2187 psFree(object); 2188 exit(EXIT_FAILURE); 2189 } 2190 if (!object->fringe_0 == 64.64) { 2191 psFree(object); 2192 exit(EXIT_FAILURE); 2193 } 2194 if (!object->fringe_1 == 64.64) { 2195 psFree(object); 2196 exit(EXIT_FAILURE); 2197 } 2198 if (!object->fringe_2 == 64.64) { 2199 psFree(object); 2200 exit(EXIT_FAILURE); 2201 } 2202 if (!object->fringe_resid_0 == 64.64) { 2203 psFree(object); 2204 exit(EXIT_FAILURE); 2205 } 2206 if (!object->fringe_resid_1 == 64.64) { 2207 psFree(object); 2208 exit(EXIT_FAILURE); 2209 } 2210 if (!object->fringe_resid_2 == 64.64) { 2211 psFree(object); 2212 exit(EXIT_FAILURE); 2213 } 2214 if (!object->user_1 == 64.64) { 2215 psFree(object); 2216 exit(EXIT_FAILURE); 2217 } 2218 if (!object->user_2 == 64.64) { 2219 psFree(object); 2220 exit(EXIT_FAILURE); 2221 } 2222 if (!object->user_3 == 64.64) { 2223 psFree(object); 2224 exit(EXIT_FAILURE); 2225 } 2226 if (!object->user_4 == 64.64) { 2227 psFree(object); 2228 exit(EXIT_FAILURE); 2229 } 2230 if (!object->user_5 == 64.64) { 2231 psFree(object); 2232 exit(EXIT_FAILURE); 2233 } 2234 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2235 psFree(object); 2236 exit(EXIT_FAILURE); 2237 } 2238 if (!object->fault == -16) { 2239 psFree(object); 2240 exit(EXIT_FAILURE); 2241 } 2242 2243 psFree(object); 2244 } 2245 2246 { 2247 detResidExpRow *object; 2248 2249 object = detResidExpRowAlloc(-64, -32, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", true, -16 ); 2250 2251 if (!object) { 2252 exit(EXIT_FAILURE); 2253 } 2254 2255 if (!object->det_id == -64) { 2256 psFree(object); 2257 exit(EXIT_FAILURE); 2258 } 2259 if (!object->iteration == -32) { 2260 psFree(object); 2261 exit(EXIT_FAILURE); 2262 } 2263 if (!object->exp_id == -64) { 2264 psFree(object); 2265 exit(EXIT_FAILURE); 2266 } 2267 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2268 psFree(object); 2269 exit(EXIT_FAILURE); 2270 } 2271 if (!object->bg == 64.64) { 2272 psFree(object); 2273 exit(EXIT_FAILURE); 2274 } 2275 if (!object->bg_stdev == 64.64) { 2276 psFree(object); 2277 exit(EXIT_FAILURE); 2278 } 2279 if (!object->bg_mean_stdev == 64.64) { 2280 psFree(object); 2281 exit(EXIT_FAILURE); 2282 } 2283 if (!object->bg_skewness == 64.64) { 2284 psFree(object); 2285 exit(EXIT_FAILURE); 2286 } 2287 if (!object->bg_kurtosis == 64.64) { 2288 psFree(object); 2289 exit(EXIT_FAILURE); 2290 } 2291 if (!object->bin_stdev == 64.64) { 2292 psFree(object); 2293 exit(EXIT_FAILURE); 2294 } 2295 if (!object->fringe_0 == 64.64) { 2296 psFree(object); 2297 exit(EXIT_FAILURE); 2298 } 2299 if (!object->fringe_1 == 64.64) { 2300 psFree(object); 2301 exit(EXIT_FAILURE); 2302 } 2303 if (!object->fringe_2 == 64.64) { 2304 psFree(object); 2305 exit(EXIT_FAILURE); 2306 } 2307 if (!object->fringe_resid_0 == 64.64) { 2308 psFree(object); 2309 exit(EXIT_FAILURE); 2310 } 2311 if (!object->fringe_resid_1 == 64.64) { 2312 psFree(object); 2313 exit(EXIT_FAILURE); 2314 } 2315 if (!object->fringe_resid_2 == 64.64) { 2316 psFree(object); 2317 exit(EXIT_FAILURE); 2318 } 2319 if (!object->user_1 == 64.64) { 2320 psFree(object); 2321 exit(EXIT_FAILURE); 2322 } 2323 if (!object->user_2 == 64.64) { 2324 psFree(object); 2325 exit(EXIT_FAILURE); 2326 } 2327 if (!object->user_3 == 64.64) { 2328 psFree(object); 2329 exit(EXIT_FAILURE); 2330 } 2331 if (!object->user_4 == 64.64) { 2332 psFree(object); 2333 exit(EXIT_FAILURE); 2334 } 2335 if (!object->user_5 == 64.64) { 2336 psFree(object); 2337 exit(EXIT_FAILURE); 2338 } 2339 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2340 psFree(object); 2341 exit(EXIT_FAILURE); 2342 } 2343 if (!object->accept == true) { 2344 psFree(object); 2345 exit(EXIT_FAILURE); 2346 } 2347 if (!object->fault == -16) { 2348 psFree(object); 2349 exit(EXIT_FAILURE); 2350 } 2351 2352 psFree(object); 2353 } 2354 2355 { 2356 detRunSummaryRow *object; 2357 2358 object = detRunSummaryRowAlloc(-64, -32, 64.64, 64.64, 64.64, true, -16 ); 2359 2360 if (!object) { 2361 exit(EXIT_FAILURE); 2362 } 2363 2364 if (!object->det_id == -64) { 2365 psFree(object); 2366 exit(EXIT_FAILURE); 2367 } 2368 if (!object->iteration == -32) { 2369 psFree(object); 2370 exit(EXIT_FAILURE); 2371 } 2372 if (!object->bg == 64.64) { 2373 psFree(object); 2374 exit(EXIT_FAILURE); 2375 } 2376 if (!object->bg_stdev == 64.64) { 2377 psFree(object); 2378 exit(EXIT_FAILURE); 2379 } 2380 if (!object->bg_mean_stdev == 64.64) { 2381 psFree(object); 2382 exit(EXIT_FAILURE); 2383 } 2384 if (!object->accept == true) { 2385 psFree(object); 2386 exit(EXIT_FAILURE); 2387 } 2388 if (!object->fault == -16) { 2389 psFree(object); 2390 exit(EXIT_FAILURE); 2391 } 2392 2393 psFree(object); 2394 } 2395 2396 { 2397 detRegisteredImfileRow *object; 2398 2399 object = detRegisteredImfileRowAlloc(-64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16 ); 2400 2401 if (!object) { 2402 exit(EXIT_FAILURE); 2403 } 2404 2405 if (!object->det_id == -64) { 2406 psFree(object); 2407 exit(EXIT_FAILURE); 2408 } 2409 if (!object->iteration == -32) { 2410 psFree(object); 2411 exit(EXIT_FAILURE); 2412 } 2413 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2414 psFree(object); 2415 exit(EXIT_FAILURE); 2416 } 2417 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2418 psFree(object); 2419 exit(EXIT_FAILURE); 2420 } 2421 if (!object->bg == 64.64) { 2422 psFree(object); 2423 exit(EXIT_FAILURE); 2424 } 2425 if (!object->bg_stdev == 64.64) { 2426 psFree(object); 2427 exit(EXIT_FAILURE); 2428 } 2429 if (!object->bg_mean_stdev == 64.64) { 2430 psFree(object); 2431 exit(EXIT_FAILURE); 2432 } 2433 if (!object->user_1 == 64.64) { 2434 psFree(object); 2435 exit(EXIT_FAILURE); 2436 } 2437 if (!object->user_2 == 64.64) { 2438 psFree(object); 2439 exit(EXIT_FAILURE); 2440 } 2441 if (!object->user_3 == 64.64) { 2442 psFree(object); 2443 exit(EXIT_FAILURE); 2444 } 2445 if (!object->user_4 == 64.64) { 2446 psFree(object); 2447 exit(EXIT_FAILURE); 2448 } 2449 if (!object->user_5 == 64.64) { 2450 psFree(object); 2451 exit(EXIT_FAILURE); 2452 } 2453 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2454 psFree(object); 2455 exit(EXIT_FAILURE); 2456 } 2457 if (!object->fault == -16) { 2458 psFree(object); 2459 exit(EXIT_FAILURE); 2460 } 2461 2462 psFree(object); 2463 } 2464 2465 { 2466 detCorrectedExpRow *object; 2467 2468 object = detCorrectedExpRowAlloc(-64, -64, "a string", -64, "a string", "a string", "a string", -16 ); 2469 2470 if (!object) { 2471 exit(EXIT_FAILURE); 2472 } 2473 2474 if (!object->det_id == -64) { 2475 psFree(object); 2476 exit(EXIT_FAILURE); 2477 } 2478 if (!object->exp_id == -64) { 2479 psFree(object); 2480 exit(EXIT_FAILURE); 2481 } 2482 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2483 psFree(object); 2484 exit(EXIT_FAILURE); 2485 } 2486 if (!object->corr_id == -64) { 2487 psFree(object); 2488 exit(EXIT_FAILURE); 2489 } 2490 if (strncmp(object->corr_type, "a string", MAX_STRING_LENGTH)) { 2491 psFree(object); 2492 exit(EXIT_FAILURE); 2493 } 2494 if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) { 2495 psFree(object); 2496 exit(EXIT_FAILURE); 2497 } 2498 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2499 psFree(object); 2500 exit(EXIT_FAILURE); 2501 } 2502 if (!object->fault == -16) { 2503 psFree(object); 2504 exit(EXIT_FAILURE); 2505 } 2506 2507 psFree(object); 2508 } 2509 2510 { 2511 detCorrectedImfileRow *object; 2512 2513 object = detCorrectedImfileRowAlloc(-64, -64, "a string", "a string", "a string", -16 ); 2514 2515 if (!object) { 2516 exit(EXIT_FAILURE); 2517 } 2518 2519 if (!object->det_id == -64) { 2520 psFree(object); 2521 exit(EXIT_FAILURE); 2522 } 2523 if (!object->exp_id == -64) { 2524 psFree(object); 2525 exit(EXIT_FAILURE); 2526 } 2527 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 2528 psFree(object); 2529 exit(EXIT_FAILURE); 2530 } 2531 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2532 psFree(object); 2533 exit(EXIT_FAILURE); 2534 } 2535 if (strncmp(object->path_base, "a string", MAX_STRING_LENGTH)) { 2536 psFree(object); 2537 exit(EXIT_FAILURE); 2538 } 2539 if (!object->fault == -16) { 2540 psFree(object); 2541 exit(EXIT_FAILURE); 2542 } 2543 2544 psFree(object); 2545 } 2546 2547 { 2548 magicRunRow *object; 2549 2550 object = magicRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z" ); 2551 2552 if (!object) { 2553 exit(EXIT_FAILURE); 2554 } 2555 2556 if (!object->magic_id == -64) { 2557 psFree(object); 2558 exit(EXIT_FAILURE); 2559 } 2560 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2561 psFree(object); 2562 exit(EXIT_FAILURE); 2563 } 2564 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 2565 psFree(object); 2566 exit(EXIT_FAILURE); 2567 } 2568 if (strncmp(object->workdir_state, "a string", MAX_STRING_LENGTH)) { 2569 psFree(object); 2570 exit(EXIT_FAILURE); 2571 } 2572 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 2573 psFree(object); 2574 exit(EXIT_FAILURE); 2575 } 2576 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 2577 psFree(object); 2578 exit(EXIT_FAILURE); 2579 } 2580 psFree(object); 2581 exit(EXIT_FAILURE); 2582 } 2583 2584 psFree(object); 2585 } 2586 2587 { 2588 magicInputSkyfileRow *object; 2589 2590 object = magicInputSkyfileRowAlloc(-64, -64, "a string" ); 2591 2592 if (!object) { 2593 exit(EXIT_FAILURE); 2594 } 2595 2596 if (!object->magic_id == -64) { 2597 psFree(object); 2598 exit(EXIT_FAILURE); 2599 } 2600 if (!object->diff_id == -64) { 2601 psFree(object); 2602 exit(EXIT_FAILURE); 2603 } 2604 if (strncmp(object->node, "a string", MAX_STRING_LENGTH)) { 2605 psFree(object); 2606 exit(EXIT_FAILURE); 2607 } 2608 2609 psFree(object); 2610 } 2611 2612 { 2613 magicTreeRow *object; 2614 2615 object = magicTreeRowAlloc(-64, "a string", "a string" ); 2616 2617 if (!object) { 2618 exit(EXIT_FAILURE); 2619 } 2620 2621 if (!object->magic_id == -64) { 2622 psFree(object); 2623 exit(EXIT_FAILURE); 2624 } 2625 if (strncmp(object->node, "a string", MAX_STRING_LENGTH)) { 2626 psFree(object); 2627 exit(EXIT_FAILURE); 2628 } 2629 if (strncmp(object->dep, "a string", MAX_STRING_LENGTH)) { 2630 psFree(object); 2631 exit(EXIT_FAILURE); 2632 } 2633 2634 psFree(object); 2635 } 2636 2637 { 2638 magicNodeResultRow *object; 2639 2640 object = magicNodeResultRowAlloc(-64, "a string", "a string" ); 2641 2642 if (!object) { 2643 exit(EXIT_FAILURE); 2644 } 2645 2646 if (!object->magic_id == -64) { 2647 psFree(object); 2648 exit(EXIT_FAILURE); 2649 } 2650 if (strncmp(object->node, "a string", MAX_STRING_LENGTH)) { 2651 psFree(object); 2652 exit(EXIT_FAILURE); 2653 } 2654 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2655 psFree(object); 2656 exit(EXIT_FAILURE); 2657 } 2658 2659 psFree(object); 2660 } 2661 2662 { 2663 magicMaskRow *object; 2664 2665 object = magicMaskRowAlloc(-64, "a string" ); 2666 2667 if (!object) { 2668 exit(EXIT_FAILURE); 2669 } 2670 2671 if (!object->magic_id == -64) { 2672 psFree(object); 2673 exit(EXIT_FAILURE); 2674 } 2675 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2676 psFree(object); 2677 exit(EXIT_FAILURE); 2678 } 2679 2680 psFree(object); 2681 } 2682 2683 { 2684 magicSkyfileMaskRow *object; 2685 2686 object = magicSkyfileMaskRowAlloc(-64, -64, "a string" ); 2687 2688 if (!object) { 2689 exit(EXIT_FAILURE); 2690 } 2691 2692 if (!object->magic_id == -64) { 2693 psFree(object); 2694 exit(EXIT_FAILURE); 2695 } 2696 if (!object->diff_id == -64) { 2697 psFree(object); 2698 exit(EXIT_FAILURE); 2699 } 2700 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2701 psFree(object); 2702 exit(EXIT_FAILURE); 2703 } 2704 2705 psFree(object); 2706 } 2707 2708 { 2709 calDBRow *object; 2710 2711 object = calDBRowAlloc(-64, "a string", "a string" ); 2712 2713 if (!object) { 2714 exit(EXIT_FAILURE); 2715 } 2716 2717 if (!object->cal_id == -64) { 2718 psFree(object); 2719 exit(EXIT_FAILURE); 2720 } 2721 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 2722 psFree(object); 2723 exit(EXIT_FAILURE); 2724 } 2725 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2726 psFree(object); 2727 exit(EXIT_FAILURE); 2728 } 2729 2730 psFree(object); 2731 } 2732 2733 { 2734 calRunRow *object; 2735 2736 object = calRunRowAlloc(-64, "a string", "a string", "a string" ); 2737 2738 if (!object) { 2739 exit(EXIT_FAILURE); 2740 } 2741 2742 if (!object->cal_id == -64) { 2778 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) { 2743 2779 psFree(object); 2744 2780 exit(EXIT_FAILURE); 2745 2781 } 2746 2782 if (strncmp(object->region, "a string", MAX_STRING_LENGTH)) { 2747 psFree(object);2748 exit(EXIT_FAILURE);2749 }2750 if (strncmp(object->last_step, "a string", MAX_STRING_LENGTH)) {2751 psFree(object);2752 exit(EXIT_FAILURE);2753 }2754 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {2755 psFree(object);2756 exit(EXIT_FAILURE);2757 }2758 2759 psFree(object);2760 }2761 2762 {2763 flatcorrRunRow *object;2764 2765 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string" );2766 2767 if (!object) {2768 exit(EXIT_FAILURE);2769 }2770 2771 if (!object->corr_id == -64) {2772 psFree(object);2773 exit(EXIT_FAILURE);2774 }2775 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) {2776 psFree(object);2777 exit(EXIT_FAILURE);2778 }2779 if (strncmp(object->filter, "a string", MAX_STRING_LENGTH)) {2780 psFree(object);2781 exit(EXIT_FAILURE);2782 }2783 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) {2784 psFree(object);2785 exit(EXIT_FAILURE);2786 }2787 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) {2788 psFree(object);2789 exit(EXIT_FAILURE);2790 }2791 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {2792 psFree(object);2793 exit(EXIT_FAILURE);2794 }2795 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {2796 2783 psFree(object); 2797 2784 exit(EXIT_FAILURE); -
trunk/ippdb/tests/createtable.c
r16587 r16731 268 268 } 269 269 270 if(!warpInputExpCreateTable(dbh)) {271 exit(EXIT_FAILURE);272 }273 274 psDBCleanup(dbh);275 }276 277 {278 psDB *dbh;279 280 dbh = psDBInit("localhost", "test", NULL, "test");281 if (!dbh) {282 exit(EXIT_FAILURE);283 }284 285 270 if(!warpSkyCellMapCreateTable(dbh)) { 286 271 exit(EXIT_FAILURE); -
trunk/ippdb/tests/dbcleanup.c
r16587 r16731 28 28 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS camMask"); 29 29 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS warpRun"); 30 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS warpInputExp");31 30 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS warpSkyCellMap"); 32 31 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS warpSkyfile"); -
trunk/ippdb/tests/dbsetup.c
r16587 r16731 63 63 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS warpRun"); 64 64 warpRunCreateTable(dbh); 65 66 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS warpInputExp");67 warpInputExpCreateTable(dbh);68 65 69 66 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS warpSkyCellMap"); -
trunk/ippdb/tests/droptable.c
r16587 r16731 268 268 } 269 269 270 if (!warpInputExpDropTable(dbh)) {271 exit(EXIT_FAILURE);272 }273 274 psDBCleanup(dbh);275 }276 277 {278 psDB *dbh;279 280 dbh = psDBInit("localhost", "test", NULL, "test");281 if (!dbh) {282 exit(EXIT_FAILURE);283 }284 285 270 if (!warpSkyCellMapDropTable(dbh)) { 286 271 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r16616 r16731 253 253 } 254 254 255 if (!warpRunInsert(dbh, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z")) { 256 exit(EXIT_FAILURE); 257 } 258 259 psDBCleanup(dbh); 260 } 261 262 { 263 psDB *dbh; 264 265 dbh = psDBInit("localhost", "test", NULL, "test"); 266 if (!dbh) { 267 exit(EXIT_FAILURE); 268 } 269 270 if (!warpInputExpInsert(dbh, -64, -64, true)) { 255 if (!warpRunInsert(dbh, -64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", true)) { 271 256 exit(EXIT_FAILURE); 272 257 } … … 733 718 } 734 719 735 if (!flatcorrRunInsert(dbh, -64, "a string", "a string", "a string", "a string", "a string", "a string" )) {720 if (!flatcorrRunInsert(dbh, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string")) { 736 721 exit(EXIT_FAILURE); 737 722 } -
trunk/ippdb/tests/insertfits.c
r16587 r16731 466 466 } 467 467 468 if (!warpInputExpInsertFits(dbh, fits)) {469 exit(EXIT_FAILURE);470 }471 472 if (!psFitsClose(fits)) {473 exit(EXIT_FAILURE);474 }475 476 psDBCleanup(dbh);477 }478 479 {480 psDB *dbh;481 psFits *fits;482 483 dbh = psDBInit("localhost", "test", NULL, "test");484 if (!dbh) {485 exit(EXIT_FAILURE);486 }487 488 // open a temp489 fits = psFitsOpen(TMP_FILENAME, "r");490 if (!fits) {491 exit(EXIT_FAILURE);492 }493 494 468 if (!warpSkyCellMapInsertFits(dbh, fits)) { 495 469 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insertobject.c
r16616 r16731 366 366 } 367 367 368 object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");368 object = warpRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", true); 369 369 if (!object) { 370 370 exit(EXIT_FAILURE); … … 381 381 { 382 382 psDB *dbh; 383 warpInputExpRow *object;384 385 dbh = psDBInit("localhost", "test", NULL, "test");386 if (!dbh) {387 exit(EXIT_FAILURE);388 }389 390 object = warpInputExpRowAlloc(-64, -64, true);391 if (!object) {392 exit(EXIT_FAILURE);393 }394 395 if (!warpInputExpInsertObject(dbh, object)) {396 exit(EXIT_FAILURE);397 }398 399 psFree(object);400 psDBCleanup(dbh);401 }402 403 {404 psDB *dbh;405 383 warpSkyCellMapRow *object; 406 384 … … 1070 1048 } 1071 1049 1072 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string" );1050 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string"); 1073 1051 if (!object) { 1074 1052 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r16616 r16731 1283 1283 bool status; 1284 1284 1285 object = warpRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z");1285 object = warpRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", true); 1286 1286 if (!object) { 1287 1287 exit(EXIT_FAILURE); … … 1298 1298 exit(EXIT_FAILURE); 1299 1299 } 1300 psFree(md); 1301 exit(EXIT_FAILURE); 1302 } 1300 1303 if (strncmp(psMetadataLookupPtr(&status, md, "mode"), "a string", MAX_STRING_LENGTH)) { 1301 1304 psFree(md); … … 1329 1332 exit(EXIT_FAILURE); 1330 1333 } 1331 1332 psFree(md);1333 }1334 1335 {1336 psMetadata *md;1337 warpInputExpRow *object;1338 bool status;1339 1340 object = warpInputExpRowAlloc(-64, -64, true);1341 if (!object) {1342 exit(EXIT_FAILURE);1343 }1344 1345 md = warpInputExpMetadataFromObject(object);1346 if (!md) {1347 exit(EXIT_FAILURE);1348 }1349 1350 psFree(object);1351 1352 psFree(md);1353 exit(EXIT_FAILURE);1354 }1355 psFree(md);1356 exit(EXIT_FAILURE);1357 }1358 1334 if (!psMetadataLookupBool(&status, md, "magiced") == true) { 1359 1335 psFree(md); … … 3067 3043 bool status; 3068 3044 3069 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string" );3045 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string"); 3070 3046 if (!object) { 3071 3047 exit(EXIT_FAILURE); … … 3103 3079 } 3104 3080 if (strncmp(psMetadataLookupPtr(&status, md, "stats"), "a string", MAX_STRING_LENGTH)) { 3081 psFree(md); 3082 exit(EXIT_FAILURE); 3083 } 3084 if (strncmp(psMetadataLookupPtr(&status, md, "region"), "a string", MAX_STRING_LENGTH)) { 3105 3085 psFree(md); 3106 3086 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r16616 r16731 2172 2172 exit(EXIT_FAILURE); 2173 2173 } 2174 psFree(md); 2175 exit(EXIT_FAILURE); 2176 } 2174 2177 if (!psMetadataAddStr(md, PS_LIST_TAIL, "mode", 0, NULL, "a string")) { 2175 2178 psFree(md); … … 2200 2203 exit(EXIT_FAILURE); 2201 2204 } 2205 psFree(md); 2206 exit(EXIT_FAILURE); 2207 } 2208 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, NULL, true)) { 2202 2209 psFree(md); 2203 2210 exit(EXIT_FAILURE); … … 2215 2222 exit(EXIT_FAILURE); 2216 2223 } 2224 psFree(object); 2225 exit(EXIT_FAILURE); 2226 } 2217 2227 if (strncmp(object->mode, "a string", MAX_STRING_LENGTH)) { 2218 2228 psFree(object); … … 2240 2250 } 2241 2251 if (strncmp(object->end_stage, "a string", MAX_STRING_LENGTH)) { 2242 psFree(object);2243 exit(EXIT_FAILURE);2244 }2245 psFree(object);2246 exit(EXIT_FAILURE);2247 }2248 2249 psFree(object);2250 }2251 2252 {2253 psMetadata *md;2254 warpInputExpRow *object;2255 2256 md = psMetadataAlloc();2257 psFree(md);2258 exit(EXIT_FAILURE);2259 }2260 psFree(md);2261 exit(EXIT_FAILURE);2262 }2263 if (!psMetadataAdd(md, PS_LIST_TAIL, "magiced", PS_DATA_BOOL, NULL, true)) {2264 psFree(md);2265 exit(EXIT_FAILURE);2266 }2267 2268 object = warpInputExpObjectFromMetadata(md);2269 if (!object) {2270 psFree(md);2271 exit(EXIT_FAILURE);2272 }2273 2274 psFree(md);2275 2276 2252 psFree(object); 2277 2253 exit(EXIT_FAILURE); … … 4996 4972 exit(EXIT_FAILURE); 4997 4973 } 4974 if (!psMetadataAddStr(md, PS_LIST_TAIL, "region", 0, NULL, "a string")) { 4975 psFree(md); 4976 exit(EXIT_FAILURE); 4977 } 4998 4978 4999 4979 object = flatcorrRunObjectFromMetadata(md); … … 5029 5009 } 5030 5010 if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) { 5011 psFree(object); 5012 exit(EXIT_FAILURE); 5013 } 5014 if (strncmp(object->region, "a string", MAX_STRING_LENGTH)) { 5031 5015 psFree(object); 5032 5016 exit(EXIT_FAILURE); -
trunk/ippdb/tests/selectrowsfits.c
r16587 r16731 395 395 } 396 396 397 if (!warpInputExpSelectRowsFits(dbh, fits, NULL, 1)) {398 exit(EXIT_FAILURE);399 }400 401 psFree(fits);402 psDBCleanup(dbh);403 }404 405 {406 psDB *dbh;407 psFits *fits;408 409 dbh = psDBInit("localhost", "test", NULL, "test");410 if (!dbh) {411 exit(EXIT_FAILURE);412 }413 414 fits = psFitsOpen(TMP_FILENAME, "w");415 if (!fits) {416 exit(EXIT_FAILURE);417 }418 419 397 if (!warpSkyCellMapSelectRowsFits(dbh, fits, NULL, 1)) { 420 398 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
