Changeset 11988 for trunk/ippdb/src/ippdb.h
- Timestamp:
- Feb 21, 2007, 4:29:12 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/src/ippdb.h (modified) (82 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/src/ippdb.h
r11873 r11988 7493 7493 bool mdcf ///< format as mdconfig or simple 7494 7494 ); 7495 /** p4S cfileRow data structure7496 * 7497 * Structure for representing a single row of p4S cfile table data.7495 /** p4SkyfileRow data structure 7496 * 7497 * Structure for representing a single row of p4Skyfile table data. 7498 7498 */ 7499 7499 … … 7502 7502 char *skycell_id; 7503 7503 char *tess_id; 7504 char *exp_tag;7505 psS32 p3_version;7506 7504 char *uri; 7507 7505 psF64 bg; 7508 7506 psF64 bg_mean_stdev; 7509 } p4S cfileRow;7510 7511 /** Creates a new p4S cfileRow object7512 * 7513 * @return A new p4S cfileRow object or NULL on failure.7514 */ 7515 7516 p4S cfileRow *p4ScfileRowAlloc(7507 } p4SkyfileRow; 7508 7509 /** Creates a new p4SkyfileRow object 7510 * 7511 * @return A new p4SkyfileRow object or NULL on failure. 7512 */ 7513 7514 p4SkyfileRow *p4SkyfileRowAlloc( 7517 7515 psS32 p4_id, 7518 7516 const char *skycell_id, 7519 7517 const char *tess_id, 7520 const char *exp_tag,7521 psS32 p3_version,7522 7518 const char *uri, 7523 7519 psF64 bg, … … 7525 7521 ); 7526 7522 7527 /** Creates a new p4S cfile table7528 * 7529 * @return true on success 7530 */ 7531 7532 bool p4S cfileCreateTable(7523 /** Creates a new p4Skyfile table 7524 * 7525 * @return true on success 7526 */ 7527 7528 bool p4SkyfileCreateTable( 7533 7529 psDB *dbh ///< Database handle 7534 7530 ); 7535 7531 7536 /** Deletes a p4S cfile table7537 * 7538 * @return true on success 7539 */ 7540 7541 bool p4S cfileDropTable(7532 /** Deletes a p4Skyfile table 7533 * 7534 * @return true on success 7535 */ 7536 7537 bool p4SkyfileDropTable( 7542 7538 psDB *dbh ///< Database handle 7543 7539 ); … … 7550 7546 */ 7551 7547 7552 bool p4S cfileInsert(7548 bool p4SkyfileInsert( 7553 7549 psDB *dbh, ///< Database handle 7554 7550 psS32 p4_id, 7555 7551 const char *skycell_id, 7556 7552 const char *tess_id, 7557 const char *exp_tag,7558 psS32 p3_version,7559 7553 const char *uri, 7560 7554 psF64 bg, … … 7567 7561 */ 7568 7562 7569 long long p4S cfileDelete(7563 long long p4SkyfileDelete( 7570 7564 psDB *dbh, ///< Database handle 7571 7565 const psMetadata *where, ///< Row match criteria … … 7573 7567 ); 7574 7568 7575 /** Insert a single p4S cfileRow object into a table7569 /** Insert a single p4SkyfileRow object into a table 7576 7570 * 7577 7571 * This function constructs and inserts a single row based on it's parameters. … … 7580 7574 */ 7581 7575 7582 bool p4S cfileInsertObject(7583 psDB *dbh, ///< Database handle 7584 p4S cfileRow *object ///< p4ScfileRow object7585 ); 7586 7587 /** Insert an array of p4S cfileRow object into a table7576 bool p4SkyfileInsertObject( 7577 psDB *dbh, ///< Database handle 7578 p4SkyfileRow *object ///< p4SkyfileRow object 7579 ); 7580 7581 /** Insert an array of p4SkyfileRow object into a table 7588 7582 * 7589 7583 * This function constructs and inserts multiple rows based on it's parameters. … … 7592 7586 */ 7593 7587 7594 bool p4S cfileInsertObjects(7595 psDB *dbh, ///< Database handle 7596 psArray *objects ///< array of p4S cfileRow objects7597 ); 7598 7599 /** Insert data from a binary FITS table p4S cfileRow into the database7588 bool p4SkyfileInsertObjects( 7589 psDB *dbh, ///< Database handle 7590 psArray *objects ///< array of p4SkyfileRow objects 7591 ); 7592 7593 /** Insert data from a binary FITS table p4SkyfileRow into the database 7600 7594 * 7601 7595 * This function expects a psFits object with a FITS table as the first … … 7607 7601 */ 7608 7602 7609 bool p4S cfileInsertFits(7603 bool p4SkyfileInsertFits( 7610 7604 psDB *dbh, ///< Database handle 7611 7605 const psFits *fits ///< psFits object … … 7622 7616 */ 7623 7617 7624 bool p4S cfileSelectRowsFits(7618 bool p4SkyfileSelectRowsFits( 7625 7619 psDB *dbh, ///< Database handle 7626 7620 psFits *fits, ///< psFits object … … 7629 7623 ); 7630 7624 7631 /** Convert a p4S cfileRow into an equivalent psMetadata7625 /** Convert a p4SkyfileRow into an equivalent psMetadata 7632 7626 * 7633 7627 * @return A psMetadata pointer or NULL on error 7634 7628 */ 7635 7629 7636 psMetadata *p4S cfileMetadataFromObject(7637 const p4S cfileRow *object ///< fooRow to convert into a psMetadata7630 psMetadata *p4SkyfileMetadataFromObject( 7631 const p4SkyfileRow *object ///< fooRow to convert into a psMetadata 7638 7632 ); 7639 7633 7640 7634 /** Convert a psMetadata into an equivalent fooRow 7641 7635 * 7642 * @return A p4S cfileRow pointer or NULL on error7643 */ 7644 7645 p4S cfileRow *p4ScfileObjectFromMetadata(7636 * @return A p4SkyfileRow pointer or NULL on error 7637 */ 7638 7639 p4SkyfileRow *p4SkyfileObjectFromMetadata( 7646 7640 psMetadata *md ///< psMetadata to convert into a fooRow 7647 7641 ); 7648 /** Selects up to limit rows from the database and returns as p4S cfileRow objects in a psArray7642 /** Selects up to limit rows from the database and returns as p4SkyfileRow objects in a psArray 7649 7643 * 7650 7644 * See psDBSelectRows() for documentation on the format of where. … … 7653 7647 */ 7654 7648 7655 psArray *p4S cfileSelectRowObjects(7649 psArray *p4SkyfileSelectRowObjects( 7656 7650 psDB *dbh, ///< Database handle 7657 7651 const psMetadata *where, ///< Row match criteria 7658 7652 unsigned long long limit ///< Maximum number of elements to return 7659 7653 ); 7660 /** Deletes a row from the database coresponding to an p4S cfile7654 /** Deletes a row from the database coresponding to an p4Skyfile 7661 7655 * 7662 7656 * Note that a 'where' search psMetadata is constructed from each object and … … 7666 7660 */ 7667 7661 7668 bool p4S cfileDeleteObject(7669 psDB *dbh, ///< Database handle 7670 const p4S cfileRow *object ///< Object to delete7662 bool p4SkyfileDeleteObject( 7663 psDB *dbh, ///< Database handle 7664 const p4SkyfileRow *object ///< Object to delete 7671 7665 ); 7672 7666 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 7678 7672 */ 7679 7673 7680 long long p4S cfileDeleteRowObjects(7674 long long p4SkyfileDeleteRowObjects( 7681 7675 psDB *dbh, ///< Database handle 7682 7676 const psArray *objects, ///< Array of objects to delete 7683 7677 unsigned long long limit ///< Maximum number of elements to delete 7684 7678 ); 7685 /** Formats and prints an array of p4S cfileRow objects7679 /** Formats and prints an array of p4SkyfileRow objects 7686 7680 * 7687 7681 * When mdcf is set the formated output is in psMetadataConfig … … 7691 7685 */ 7692 7686 7693 bool p4S cfilePrintObjects(7687 bool p4SkyfilePrintObjects( 7694 7688 FILE *stream, ///< a stream 7695 psArray *objects, ///< An array of p4S cfileRow objects7689 psArray *objects, ///< An array of p4SkyfileRow objects 7696 7690 bool mdcf ///< format as mdconfig or simple 7697 7691 ); 7698 /** Formats and prints an p4S cfileRow object7692 /** Formats and prints an p4SkyfileRow object 7699 7693 * 7700 7694 * When mdcf is set the formated output is in psMetadataConfig … … 7704 7698 */ 7705 7699 7706 bool p4S cfilePrintObject(7700 bool p4SkyfilePrintObject( 7707 7701 FILE *stream, ///< a stream 7708 p4S cfileRow *object, ///< an p4ScfileRow object7702 p4SkyfileRow *object, ///< an p4SkyfileRow object 7709 7703 bool mdcf ///< format as mdconfig or simple 7710 7704 ); … … 7720 7714 char *dvodb; 7721 7715 psTime* registered; 7716 char *skycell_id; 7717 char *tess_id; 7722 7718 } p5RunRow; 7723 7719 … … 7732 7728 const char *workdir, 7733 7729 const char *dvodb, 7734 psTime* registered 7730 psTime* registered, 7731 const char *skycell_id, 7732 const char *tess_id 7735 7733 ); 7736 7734 … … 7766 7764 const char *workdir, 7767 7765 const char *dvodb, 7768 psTime* registered 7766 psTime* registered, 7767 const char *skycell_id, 7768 const char *tess_id 7769 7769 ); 7770 7770 … … 7916 7916 bool mdcf ///< format as mdconfig or simple 7917 7917 ); 7918 /** p5InputS cfileRow data structure7919 * 7920 * Structure for representing a single row of p5InputS cfile table data.7918 /** p5InputSkyfileRow data structure 7919 * 7920 * Structure for representing a single row of p5InputSkyfile table data. 7921 7921 */ 7922 7922 … … 7928 7928 char *kind; 7929 7929 bool template; 7930 } p5InputS cfileRow;7931 7932 /** Creates a new p5InputS cfileRow object7933 * 7934 * @return A new p5InputS cfileRow object or NULL on failure.7935 */ 7936 7937 p5InputS cfileRow *p5InputScfileRowAlloc(7930 } p5InputSkyfileRow; 7931 7932 /** Creates a new p5InputSkyfileRow object 7933 * 7934 * @return A new p5InputSkyfileRow object or NULL on failure. 7935 */ 7936 7937 p5InputSkyfileRow *p5InputSkyfileRowAlloc( 7938 7938 psS32 p5_id, 7939 7939 psS32 p4_id, … … 7944 7944 ); 7945 7945 7946 /** Creates a new p5InputS cfile table7947 * 7948 * @return true on success 7949 */ 7950 7951 bool p5InputS cfileCreateTable(7946 /** Creates a new p5InputSkyfile table 7947 * 7948 * @return true on success 7949 */ 7950 7951 bool p5InputSkyfileCreateTable( 7952 7952 psDB *dbh ///< Database handle 7953 7953 ); 7954 7954 7955 /** Deletes a p5InputS cfile table7956 * 7957 * @return true on success 7958 */ 7959 7960 bool p5InputS cfileDropTable(7955 /** Deletes a p5InputSkyfile table 7956 * 7957 * @return true on success 7958 */ 7959 7960 bool p5InputSkyfileDropTable( 7961 7961 psDB *dbh ///< Database handle 7962 7962 ); … … 7969 7969 */ 7970 7970 7971 bool p5InputS cfileInsert(7971 bool p5InputSkyfileInsert( 7972 7972 psDB *dbh, ///< Database handle 7973 7973 psS32 p5_id, … … 7984 7984 */ 7985 7985 7986 long long p5InputS cfileDelete(7986 long long p5InputSkyfileDelete( 7987 7987 psDB *dbh, ///< Database handle 7988 7988 const psMetadata *where, ///< Row match criteria … … 7990 7990 ); 7991 7991 7992 /** Insert a single p5InputS cfileRow object into a table7992 /** Insert a single p5InputSkyfileRow object into a table 7993 7993 * 7994 7994 * This function constructs and inserts a single row based on it's parameters. … … 7997 7997 */ 7998 7998 7999 bool p5InputS cfileInsertObject(8000 psDB *dbh, ///< Database handle 8001 p5InputS cfileRow *object ///< p5InputScfileRow object8002 ); 8003 8004 /** Insert an array of p5InputS cfileRow object into a table7999 bool p5InputSkyfileInsertObject( 8000 psDB *dbh, ///< Database handle 8001 p5InputSkyfileRow *object ///< p5InputSkyfileRow object 8002 ); 8003 8004 /** Insert an array of p5InputSkyfileRow object into a table 8005 8005 * 8006 8006 * This function constructs and inserts multiple rows based on it's parameters. … … 8009 8009 */ 8010 8010 8011 bool p5InputS cfileInsertObjects(8012 psDB *dbh, ///< Database handle 8013 psArray *objects ///< array of p5InputS cfileRow objects8014 ); 8015 8016 /** Insert data from a binary FITS table p5InputS cfileRow into the database8011 bool p5InputSkyfileInsertObjects( 8012 psDB *dbh, ///< Database handle 8013 psArray *objects ///< array of p5InputSkyfileRow objects 8014 ); 8015 8016 /** Insert data from a binary FITS table p5InputSkyfileRow into the database 8017 8017 * 8018 8018 * This function expects a psFits object with a FITS table as the first … … 8024 8024 */ 8025 8025 8026 bool p5InputS cfileInsertFits(8026 bool p5InputSkyfileInsertFits( 8027 8027 psDB *dbh, ///< Database handle 8028 8028 const psFits *fits ///< psFits object … … 8039 8039 */ 8040 8040 8041 bool p5InputS cfileSelectRowsFits(8041 bool p5InputSkyfileSelectRowsFits( 8042 8042 psDB *dbh, ///< Database handle 8043 8043 psFits *fits, ///< psFits object … … 8046 8046 ); 8047 8047 8048 /** Convert a p5InputS cfileRow into an equivalent psMetadata8048 /** Convert a p5InputSkyfileRow into an equivalent psMetadata 8049 8049 * 8050 8050 * @return A psMetadata pointer or NULL on error 8051 8051 */ 8052 8052 8053 psMetadata *p5InputS cfileMetadataFromObject(8054 const p5InputS cfileRow *object ///< fooRow to convert into a psMetadata8053 psMetadata *p5InputSkyfileMetadataFromObject( 8054 const p5InputSkyfileRow *object ///< fooRow to convert into a psMetadata 8055 8055 ); 8056 8056 8057 8057 /** Convert a psMetadata into an equivalent fooRow 8058 8058 * 8059 * @return A p5InputS cfileRow pointer or NULL on error8060 */ 8061 8062 p5InputS cfileRow *p5InputScfileObjectFromMetadata(8059 * @return A p5InputSkyfileRow pointer or NULL on error 8060 */ 8061 8062 p5InputSkyfileRow *p5InputSkyfileObjectFromMetadata( 8063 8063 psMetadata *md ///< psMetadata to convert into a fooRow 8064 8064 ); 8065 /** Selects up to limit rows from the database and returns as p5InputS cfileRow objects in a psArray8065 /** Selects up to limit rows from the database and returns as p5InputSkyfileRow objects in a psArray 8066 8066 * 8067 8067 * See psDBSelectRows() for documentation on the format of where. … … 8070 8070 */ 8071 8071 8072 psArray *p5InputS cfileSelectRowObjects(8072 psArray *p5InputSkyfileSelectRowObjects( 8073 8073 psDB *dbh, ///< Database handle 8074 8074 const psMetadata *where, ///< Row match criteria 8075 8075 unsigned long long limit ///< Maximum number of elements to return 8076 8076 ); 8077 /** Deletes a row from the database coresponding to an p5InputS cfile8077 /** Deletes a row from the database coresponding to an p5InputSkyfile 8078 8078 * 8079 8079 * Note that a 'where' search psMetadata is constructed from each object and … … 8083 8083 */ 8084 8084 8085 bool p5InputS cfileDeleteObject(8086 psDB *dbh, ///< Database handle 8087 const p5InputS cfileRow *object ///< Object to delete8085 bool p5InputSkyfileDeleteObject( 8086 psDB *dbh, ///< Database handle 8087 const p5InputSkyfileRow *object ///< Object to delete 8088 8088 ); 8089 8089 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8095 8095 */ 8096 8096 8097 long long p5InputS cfileDeleteRowObjects(8097 long long p5InputSkyfileDeleteRowObjects( 8098 8098 psDB *dbh, ///< Database handle 8099 8099 const psArray *objects, ///< Array of objects to delete 8100 8100 unsigned long long limit ///< Maximum number of elements to delete 8101 8101 ); 8102 /** Formats and prints an array of p5InputS cfileRow objects8102 /** Formats and prints an array of p5InputSkyfileRow objects 8103 8103 * 8104 8104 * When mdcf is set the formated output is in psMetadataConfig … … 8108 8108 */ 8109 8109 8110 bool p5InputS cfilePrintObjects(8110 bool p5InputSkyfilePrintObjects( 8111 8111 FILE *stream, ///< a stream 8112 psArray *objects, ///< An array of p5InputS cfileRow objects8112 psArray *objects, ///< An array of p5InputSkyfileRow objects 8113 8113 bool mdcf ///< format as mdconfig or simple 8114 8114 ); 8115 /** Formats and prints an p5InputS cfileRow object8115 /** Formats and prints an p5InputSkyfileRow object 8116 8116 * 8117 8117 * When mdcf is set the formated output is in psMetadataConfig … … 8121 8121 */ 8122 8122 8123 bool p5InputS cfilePrintObject(8123 bool p5InputSkyfilePrintObject( 8124 8124 FILE *stream, ///< a stream 8125 p5InputS cfileRow *object, ///< an p5InputScfileRow object8125 p5InputSkyfileRow *object, ///< an p5InputSkyfileRow object 8126 8126 bool mdcf ///< format as mdconfig or simple 8127 8127 ); 8128 /** p5DiffS cfileRow data structure8129 * 8130 * Structure for representing a single row of p5DiffS cfile table data.8128 /** p5DiffSkyfileRow data structure 8129 * 8130 * Structure for representing a single row of p5DiffSkyfile table data. 8131 8131 */ 8132 8132 8133 8133 typedef struct { 8134 8134 psS32 p5_id; 8135 char *skycell_id;8136 char *tess_id;8137 8135 char *uri; 8138 8136 psF64 bg; 8139 8137 psF64 bg_mean_stdev; 8140 } p5DiffS cfileRow;8141 8142 /** Creates a new p5DiffS cfileRow object8143 * 8144 * @return A new p5DiffS cfileRow object or NULL on failure.8145 */ 8146 8147 p5DiffS cfileRow *p5DiffScfileRowAlloc(8138 } p5DiffSkyfileRow; 8139 8140 /** Creates a new p5DiffSkyfileRow object 8141 * 8142 * @return A new p5DiffSkyfileRow object or NULL on failure. 8143 */ 8144 8145 p5DiffSkyfileRow *p5DiffSkyfileRowAlloc( 8148 8146 psS32 p5_id, 8149 const char *skycell_id,8150 const char *tess_id,8151 8147 const char *uri, 8152 8148 psF64 bg, … … 8154 8150 ); 8155 8151 8156 /** Creates a new p5DiffS cfile table8157 * 8158 * @return true on success 8159 */ 8160 8161 bool p5DiffS cfileCreateTable(8152 /** Creates a new p5DiffSkyfile table 8153 * 8154 * @return true on success 8155 */ 8156 8157 bool p5DiffSkyfileCreateTable( 8162 8158 psDB *dbh ///< Database handle 8163 8159 ); 8164 8160 8165 /** Deletes a p5DiffS cfile table8166 * 8167 * @return true on success 8168 */ 8169 8170 bool p5DiffS cfileDropTable(8161 /** Deletes a p5DiffSkyfile table 8162 * 8163 * @return true on success 8164 */ 8165 8166 bool p5DiffSkyfileDropTable( 8171 8167 psDB *dbh ///< Database handle 8172 8168 ); … … 8179 8175 */ 8180 8176 8181 bool p5DiffS cfileInsert(8177 bool p5DiffSkyfileInsert( 8182 8178 psDB *dbh, ///< Database handle 8183 8179 psS32 p5_id, 8184 const char *skycell_id,8185 const char *tess_id,8186 8180 const char *uri, 8187 8181 psF64 bg, … … 8194 8188 */ 8195 8189 8196 long long p5DiffS cfileDelete(8190 long long p5DiffSkyfileDelete( 8197 8191 psDB *dbh, ///< Database handle 8198 8192 const psMetadata *where, ///< Row match criteria … … 8200 8194 ); 8201 8195 8202 /** Insert a single p5DiffS cfileRow object into a table8196 /** Insert a single p5DiffSkyfileRow object into a table 8203 8197 * 8204 8198 * This function constructs and inserts a single row based on it's parameters. … … 8207 8201 */ 8208 8202 8209 bool p5DiffS cfileInsertObject(8210 psDB *dbh, ///< Database handle 8211 p5DiffS cfileRow *object ///< p5DiffScfileRow object8212 ); 8213 8214 /** Insert an array of p5DiffS cfileRow object into a table8203 bool p5DiffSkyfileInsertObject( 8204 psDB *dbh, ///< Database handle 8205 p5DiffSkyfileRow *object ///< p5DiffSkyfileRow object 8206 ); 8207 8208 /** Insert an array of p5DiffSkyfileRow object into a table 8215 8209 * 8216 8210 * This function constructs and inserts multiple rows based on it's parameters. … … 8219 8213 */ 8220 8214 8221 bool p5DiffS cfileInsertObjects(8222 psDB *dbh, ///< Database handle 8223 psArray *objects ///< array of p5DiffS cfileRow objects8224 ); 8225 8226 /** Insert data from a binary FITS table p5DiffS cfileRow into the database8215 bool p5DiffSkyfileInsertObjects( 8216 psDB *dbh, ///< Database handle 8217 psArray *objects ///< array of p5DiffSkyfileRow objects 8218 ); 8219 8220 /** Insert data from a binary FITS table p5DiffSkyfileRow into the database 8227 8221 * 8228 8222 * This function expects a psFits object with a FITS table as the first … … 8234 8228 */ 8235 8229 8236 bool p5DiffS cfileInsertFits(8230 bool p5DiffSkyfileInsertFits( 8237 8231 psDB *dbh, ///< Database handle 8238 8232 const psFits *fits ///< psFits object … … 8249 8243 */ 8250 8244 8251 bool p5DiffS cfileSelectRowsFits(8245 bool p5DiffSkyfileSelectRowsFits( 8252 8246 psDB *dbh, ///< Database handle 8253 8247 psFits *fits, ///< psFits object … … 8256 8250 ); 8257 8251 8258 /** Convert a p5DiffS cfileRow into an equivalent psMetadata8252 /** Convert a p5DiffSkyfileRow into an equivalent psMetadata 8259 8253 * 8260 8254 * @return A psMetadata pointer or NULL on error 8261 8255 */ 8262 8256 8263 psMetadata *p5DiffS cfileMetadataFromObject(8264 const p5DiffS cfileRow *object ///< fooRow to convert into a psMetadata8257 psMetadata *p5DiffSkyfileMetadataFromObject( 8258 const p5DiffSkyfileRow *object ///< fooRow to convert into a psMetadata 8265 8259 ); 8266 8260 8267 8261 /** Convert a psMetadata into an equivalent fooRow 8268 8262 * 8269 * @return A p5DiffS cfileRow pointer or NULL on error8270 */ 8271 8272 p5DiffS cfileRow *p5DiffScfileObjectFromMetadata(8263 * @return A p5DiffSkyfileRow pointer or NULL on error 8264 */ 8265 8266 p5DiffSkyfileRow *p5DiffSkyfileObjectFromMetadata( 8273 8267 psMetadata *md ///< psMetadata to convert into a fooRow 8274 8268 ); 8275 /** Selects up to limit rows from the database and returns as p5DiffS cfileRow objects in a psArray8269 /** Selects up to limit rows from the database and returns as p5DiffSkyfileRow objects in a psArray 8276 8270 * 8277 8271 * See psDBSelectRows() for documentation on the format of where. … … 8280 8274 */ 8281 8275 8282 psArray *p5DiffS cfileSelectRowObjects(8276 psArray *p5DiffSkyfileSelectRowObjects( 8283 8277 psDB *dbh, ///< Database handle 8284 8278 const psMetadata *where, ///< Row match criteria 8285 8279 unsigned long long limit ///< Maximum number of elements to return 8286 8280 ); 8287 /** Deletes a row from the database coresponding to an p5DiffS cfile8281 /** Deletes a row from the database coresponding to an p5DiffSkyfile 8288 8282 * 8289 8283 * Note that a 'where' search psMetadata is constructed from each object and … … 8293 8287 */ 8294 8288 8295 bool p5DiffS cfileDeleteObject(8296 psDB *dbh, ///< Database handle 8297 const p5DiffS cfileRow *object ///< Object to delete8289 bool p5DiffSkyfileDeleteObject( 8290 psDB *dbh, ///< Database handle 8291 const p5DiffSkyfileRow *object ///< Object to delete 8298 8292 ); 8299 8293 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8305 8299 */ 8306 8300 8307 long long p5DiffS cfileDeleteRowObjects(8301 long long p5DiffSkyfileDeleteRowObjects( 8308 8302 psDB *dbh, ///< Database handle 8309 8303 const psArray *objects, ///< Array of objects to delete 8310 8304 unsigned long long limit ///< Maximum number of elements to delete 8311 8305 ); 8312 /** Formats and prints an array of p5DiffS cfileRow objects8306 /** Formats and prints an array of p5DiffSkyfileRow objects 8313 8307 * 8314 8308 * When mdcf is set the formated output is in psMetadataConfig … … 8318 8312 */ 8319 8313 8320 bool p5DiffS cfilePrintObjects(8314 bool p5DiffSkyfilePrintObjects( 8321 8315 FILE *stream, ///< a stream 8322 psArray *objects, ///< An array of p5DiffS cfileRow objects8316 psArray *objects, ///< An array of p5DiffSkyfileRow objects 8323 8317 bool mdcf ///< format as mdconfig or simple 8324 8318 ); 8325 /** Formats and prints an p5DiffS cfileRow object8319 /** Formats and prints an p5DiffSkyfileRow object 8326 8320 * 8327 8321 * When mdcf is set the formated output is in psMetadataConfig … … 8331 8325 */ 8332 8326 8333 bool p5DiffS cfilePrintObject(8327 bool p5DiffSkyfilePrintObject( 8334 8328 FILE *stream, ///< a stream 8335 p5DiffS cfileRow *object, ///< an p5DiffScfileRow object8329 p5DiffSkyfileRow *object, ///< an p5DiffSkyfileRow object 8336 8330 bool mdcf ///< format as mdconfig or simple 8337 8331 ); … … 8347 8341 char *dvodb; 8348 8342 psTime* registered; 8343 char *skycell_id; 8344 char *tess_id; 8349 8345 } p6RunRow; 8350 8346 … … 8359 8355 const char *workdir, 8360 8356 const char *dvodb, 8361 psTime* registered 8357 psTime* registered, 8358 const char *skycell_id, 8359 const char *tess_id 8362 8360 ); 8363 8361 … … 8393 8391 const char *workdir, 8394 8392 const char *dvodb, 8395 psTime* registered 8393 psTime* registered, 8394 const char *skycell_id, 8395 const char *tess_id 8396 8396 ); 8397 8397 … … 8543 8543 bool mdcf ///< format as mdconfig or simple 8544 8544 ); 8545 /** p6InputS cfileRow data structure8546 * 8547 * Structure for representing a single row of p6InputS cfile table data.8545 /** p6InputSkyfileRow data structure 8546 * 8547 * Structure for representing a single row of p6InputSkyfile table data. 8548 8548 */ 8549 8549 … … 8551 8551 psS32 p6_id; 8552 8552 psS32 p4_id; 8553 char *skycell_id; 8554 char *tess_id; 8555 } p6InputScfileRow; 8556 8557 /** Creates a new p6InputScfileRow object 8558 * 8559 * @return A new p6InputScfileRow object or NULL on failure. 8560 */ 8561 8562 p6InputScfileRow *p6InputScfileRowAlloc( 8553 } p6InputSkyfileRow; 8554 8555 /** Creates a new p6InputSkyfileRow object 8556 * 8557 * @return A new p6InputSkyfileRow object or NULL on failure. 8558 */ 8559 8560 p6InputSkyfileRow *p6InputSkyfileRowAlloc( 8563 8561 psS32 p6_id, 8564 psS32 p4_id, 8565 const char *skycell_id, 8566 const char *tess_id 8567 ); 8568 8569 /** Creates a new p6InputScfile table 8570 * 8571 * @return true on success 8572 */ 8573 8574 bool p6InputScfileCreateTable( 8562 psS32 p4_id 8563 ); 8564 8565 /** Creates a new p6InputSkyfile table 8566 * 8567 * @return true on success 8568 */ 8569 8570 bool p6InputSkyfileCreateTable( 8575 8571 psDB *dbh ///< Database handle 8576 8572 ); 8577 8573 8578 /** Deletes a p6InputS cfile table8579 * 8580 * @return true on success 8581 */ 8582 8583 bool p6InputS cfileDropTable(8574 /** Deletes a p6InputSkyfile table 8575 * 8576 * @return true on success 8577 */ 8578 8579 bool p6InputSkyfileDropTable( 8584 8580 psDB *dbh ///< Database handle 8585 8581 ); … … 8592 8588 */ 8593 8589 8594 bool p6InputS cfileInsert(8590 bool p6InputSkyfileInsert( 8595 8591 psDB *dbh, ///< Database handle 8596 8592 psS32 p6_id, 8597 psS32 p4_id, 8598 const char *skycell_id, 8599 const char *tess_id 8593 psS32 p4_id 8600 8594 ); 8601 8595 … … 8605 8599 */ 8606 8600 8607 long long p6InputS cfileDelete(8601 long long p6InputSkyfileDelete( 8608 8602 psDB *dbh, ///< Database handle 8609 8603 const psMetadata *where, ///< Row match criteria … … 8611 8605 ); 8612 8606 8613 /** Insert a single p6InputS cfileRow object into a table8607 /** Insert a single p6InputSkyfileRow object into a table 8614 8608 * 8615 8609 * This function constructs and inserts a single row based on it's parameters. … … 8618 8612 */ 8619 8613 8620 bool p6InputS cfileInsertObject(8621 psDB *dbh, ///< Database handle 8622 p6InputS cfileRow *object ///< p6InputScfileRow object8623 ); 8624 8625 /** Insert an array of p6InputS cfileRow object into a table8614 bool p6InputSkyfileInsertObject( 8615 psDB *dbh, ///< Database handle 8616 p6InputSkyfileRow *object ///< p6InputSkyfileRow object 8617 ); 8618 8619 /** Insert an array of p6InputSkyfileRow object into a table 8626 8620 * 8627 8621 * This function constructs and inserts multiple rows based on it's parameters. … … 8630 8624 */ 8631 8625 8632 bool p6InputS cfileInsertObjects(8633 psDB *dbh, ///< Database handle 8634 psArray *objects ///< array of p6InputS cfileRow objects8635 ); 8636 8637 /** Insert data from a binary FITS table p6InputS cfileRow into the database8626 bool p6InputSkyfileInsertObjects( 8627 psDB *dbh, ///< Database handle 8628 psArray *objects ///< array of p6InputSkyfileRow objects 8629 ); 8630 8631 /** Insert data from a binary FITS table p6InputSkyfileRow into the database 8638 8632 * 8639 8633 * This function expects a psFits object with a FITS table as the first … … 8645 8639 */ 8646 8640 8647 bool p6InputS cfileInsertFits(8641 bool p6InputSkyfileInsertFits( 8648 8642 psDB *dbh, ///< Database handle 8649 8643 const psFits *fits ///< psFits object … … 8660 8654 */ 8661 8655 8662 bool p6InputS cfileSelectRowsFits(8656 bool p6InputSkyfileSelectRowsFits( 8663 8657 psDB *dbh, ///< Database handle 8664 8658 psFits *fits, ///< psFits object … … 8667 8661 ); 8668 8662 8669 /** Convert a p6InputS cfileRow into an equivalent psMetadata8663 /** Convert a p6InputSkyfileRow into an equivalent psMetadata 8670 8664 * 8671 8665 * @return A psMetadata pointer or NULL on error 8672 8666 */ 8673 8667 8674 psMetadata *p6InputS cfileMetadataFromObject(8675 const p6InputS cfileRow *object ///< fooRow to convert into a psMetadata8668 psMetadata *p6InputSkyfileMetadataFromObject( 8669 const p6InputSkyfileRow *object ///< fooRow to convert into a psMetadata 8676 8670 ); 8677 8671 8678 8672 /** Convert a psMetadata into an equivalent fooRow 8679 8673 * 8680 * @return A p6InputS cfileRow pointer or NULL on error8681 */ 8682 8683 p6InputS cfileRow *p6InputScfileObjectFromMetadata(8674 * @return A p6InputSkyfileRow pointer or NULL on error 8675 */ 8676 8677 p6InputSkyfileRow *p6InputSkyfileObjectFromMetadata( 8684 8678 psMetadata *md ///< psMetadata to convert into a fooRow 8685 8679 ); 8686 /** Selects up to limit rows from the database and returns as p6InputS cfileRow objects in a psArray8680 /** Selects up to limit rows from the database and returns as p6InputSkyfileRow objects in a psArray 8687 8681 * 8688 8682 * See psDBSelectRows() for documentation on the format of where. … … 8691 8685 */ 8692 8686 8693 psArray *p6InputS cfileSelectRowObjects(8687 psArray *p6InputSkyfileSelectRowObjects( 8694 8688 psDB *dbh, ///< Database handle 8695 8689 const psMetadata *where, ///< Row match criteria 8696 8690 unsigned long long limit ///< Maximum number of elements to return 8697 8691 ); 8698 /** Deletes a row from the database coresponding to an p6InputS cfile8692 /** Deletes a row from the database coresponding to an p6InputSkyfile 8699 8693 * 8700 8694 * Note that a 'where' search psMetadata is constructed from each object and … … 8704 8698 */ 8705 8699 8706 bool p6InputS cfileDeleteObject(8707 psDB *dbh, ///< Database handle 8708 const p6InputS cfileRow *object ///< Object to delete8700 bool p6InputSkyfileDeleteObject( 8701 psDB *dbh, ///< Database handle 8702 const p6InputSkyfileRow *object ///< Object to delete 8709 8703 ); 8710 8704 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8716 8710 */ 8717 8711 8718 long long p6InputS cfileDeleteRowObjects(8712 long long p6InputSkyfileDeleteRowObjects( 8719 8713 psDB *dbh, ///< Database handle 8720 8714 const psArray *objects, ///< Array of objects to delete 8721 8715 unsigned long long limit ///< Maximum number of elements to delete 8722 8716 ); 8723 /** Formats and prints an array of p6InputS cfileRow objects8717 /** Formats and prints an array of p6InputSkyfileRow objects 8724 8718 * 8725 8719 * When mdcf is set the formated output is in psMetadataConfig … … 8729 8723 */ 8730 8724 8731 bool p6InputS cfilePrintObjects(8725 bool p6InputSkyfilePrintObjects( 8732 8726 FILE *stream, ///< a stream 8733 psArray *objects, ///< An array of p6InputS cfileRow objects8727 psArray *objects, ///< An array of p6InputSkyfileRow objects 8734 8728 bool mdcf ///< format as mdconfig or simple 8735 8729 ); 8736 /** Formats and prints an p6InputS cfileRow object8730 /** Formats and prints an p6InputSkyfileRow object 8737 8731 * 8738 8732 * When mdcf is set the formated output is in psMetadataConfig … … 8742 8736 */ 8743 8737 8744 bool p6InputS cfilePrintObject(8738 bool p6InputSkyfilePrintObject( 8745 8739 FILE *stream, ///< a stream 8746 p6InputS cfileRow *object, ///< an p6InputScfileRow object8740 p6InputSkyfileRow *object, ///< an p6InputSkyfileRow object 8747 8741 bool mdcf ///< format as mdconfig or simple 8748 8742 ); 8749 /** p6SumS cfileRow data structure8750 * 8751 * Structure for representing a single row of p6SumS cfile table data.8743 /** p6SumSkyfileRow data structure 8744 * 8745 * Structure for representing a single row of p6SumSkyfile table data. 8752 8746 */ 8753 8747 8754 8748 typedef struct { 8755 8749 psS32 p6_id; 8756 char *skycell_id;8757 char *tess_id;8758 8750 char *uri; 8759 8751 psF64 bg; 8760 8752 psF64 bg_mean_stdev; 8761 } p6SumS cfileRow;8762 8763 /** Creates a new p6SumS cfileRow object8764 * 8765 * @return A new p6SumS cfileRow object or NULL on failure.8766 */ 8767 8768 p6SumS cfileRow *p6SumScfileRowAlloc(8753 } p6SumSkyfileRow; 8754 8755 /** Creates a new p6SumSkyfileRow object 8756 * 8757 * @return A new p6SumSkyfileRow object or NULL on failure. 8758 */ 8759 8760 p6SumSkyfileRow *p6SumSkyfileRowAlloc( 8769 8761 psS32 p6_id, 8770 const char *skycell_id,8771 const char *tess_id,8772 8762 const char *uri, 8773 8763 psF64 bg, … … 8775 8765 ); 8776 8766 8777 /** Creates a new p6SumS cfile table8778 * 8779 * @return true on success 8780 */ 8781 8782 bool p6SumS cfileCreateTable(8767 /** Creates a new p6SumSkyfile table 8768 * 8769 * @return true on success 8770 */ 8771 8772 bool p6SumSkyfileCreateTable( 8783 8773 psDB *dbh ///< Database handle 8784 8774 ); 8785 8775 8786 /** Deletes a p6SumS cfile table8787 * 8788 * @return true on success 8789 */ 8790 8791 bool p6SumS cfileDropTable(8776 /** Deletes a p6SumSkyfile table 8777 * 8778 * @return true on success 8779 */ 8780 8781 bool p6SumSkyfileDropTable( 8792 8782 psDB *dbh ///< Database handle 8793 8783 ); … … 8800 8790 */ 8801 8791 8802 bool p6SumS cfileInsert(8792 bool p6SumSkyfileInsert( 8803 8793 psDB *dbh, ///< Database handle 8804 8794 psS32 p6_id, 8805 const char *skycell_id,8806 const char *tess_id,8807 8795 const char *uri, 8808 8796 psF64 bg, … … 8815 8803 */ 8816 8804 8817 long long p6SumS cfileDelete(8805 long long p6SumSkyfileDelete( 8818 8806 psDB *dbh, ///< Database handle 8819 8807 const psMetadata *where, ///< Row match criteria … … 8821 8809 ); 8822 8810 8823 /** Insert a single p6SumS cfileRow object into a table8811 /** Insert a single p6SumSkyfileRow object into a table 8824 8812 * 8825 8813 * This function constructs and inserts a single row based on it's parameters. … … 8828 8816 */ 8829 8817 8830 bool p6SumS cfileInsertObject(8831 psDB *dbh, ///< Database handle 8832 p6SumS cfileRow *object ///< p6SumScfileRow object8833 ); 8834 8835 /** Insert an array of p6SumS cfileRow object into a table8818 bool p6SumSkyfileInsertObject( 8819 psDB *dbh, ///< Database handle 8820 p6SumSkyfileRow *object ///< p6SumSkyfileRow object 8821 ); 8822 8823 /** Insert an array of p6SumSkyfileRow object into a table 8836 8824 * 8837 8825 * This function constructs and inserts multiple rows based on it's parameters. … … 8840 8828 */ 8841 8829 8842 bool p6SumS cfileInsertObjects(8843 psDB *dbh, ///< Database handle 8844 psArray *objects ///< array of p6SumS cfileRow objects8845 ); 8846 8847 /** Insert data from a binary FITS table p6SumS cfileRow into the database8830 bool p6SumSkyfileInsertObjects( 8831 psDB *dbh, ///< Database handle 8832 psArray *objects ///< array of p6SumSkyfileRow objects 8833 ); 8834 8835 /** Insert data from a binary FITS table p6SumSkyfileRow into the database 8848 8836 * 8849 8837 * This function expects a psFits object with a FITS table as the first … … 8855 8843 */ 8856 8844 8857 bool p6SumS cfileInsertFits(8845 bool p6SumSkyfileInsertFits( 8858 8846 psDB *dbh, ///< Database handle 8859 8847 const psFits *fits ///< psFits object … … 8870 8858 */ 8871 8859 8872 bool p6SumS cfileSelectRowsFits(8860 bool p6SumSkyfileSelectRowsFits( 8873 8861 psDB *dbh, ///< Database handle 8874 8862 psFits *fits, ///< psFits object … … 8877 8865 ); 8878 8866 8879 /** Convert a p6SumS cfileRow into an equivalent psMetadata8867 /** Convert a p6SumSkyfileRow into an equivalent psMetadata 8880 8868 * 8881 8869 * @return A psMetadata pointer or NULL on error 8882 8870 */ 8883 8871 8884 psMetadata *p6SumS cfileMetadataFromObject(8885 const p6SumS cfileRow *object ///< fooRow to convert into a psMetadata8872 psMetadata *p6SumSkyfileMetadataFromObject( 8873 const p6SumSkyfileRow *object ///< fooRow to convert into a psMetadata 8886 8874 ); 8887 8875 8888 8876 /** Convert a psMetadata into an equivalent fooRow 8889 8877 * 8890 * @return A p6SumS cfileRow pointer or NULL on error8891 */ 8892 8893 p6SumS cfileRow *p6SumScfileObjectFromMetadata(8878 * @return A p6SumSkyfileRow pointer or NULL on error 8879 */ 8880 8881 p6SumSkyfileRow *p6SumSkyfileObjectFromMetadata( 8894 8882 psMetadata *md ///< psMetadata to convert into a fooRow 8895 8883 ); 8896 /** Selects up to limit rows from the database and returns as p6SumS cfileRow objects in a psArray8884 /** Selects up to limit rows from the database and returns as p6SumSkyfileRow objects in a psArray 8897 8885 * 8898 8886 * See psDBSelectRows() for documentation on the format of where. … … 8901 8889 */ 8902 8890 8903 psArray *p6SumS cfileSelectRowObjects(8891 psArray *p6SumSkyfileSelectRowObjects( 8904 8892 psDB *dbh, ///< Database handle 8905 8893 const psMetadata *where, ///< Row match criteria 8906 8894 unsigned long long limit ///< Maximum number of elements to return 8907 8895 ); 8908 /** Deletes a row from the database coresponding to an p6SumS cfile8896 /** Deletes a row from the database coresponding to an p6SumSkyfile 8909 8897 * 8910 8898 * Note that a 'where' search psMetadata is constructed from each object and … … 8914 8902 */ 8915 8903 8916 bool p6SumS cfileDeleteObject(8917 psDB *dbh, ///< Database handle 8918 const p6SumS cfileRow *object ///< Object to delete8904 bool p6SumSkyfileDeleteObject( 8905 psDB *dbh, ///< Database handle 8906 const p6SumSkyfileRow *object ///< Object to delete 8919 8907 ); 8920 8908 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8926 8914 */ 8927 8915 8928 long long p6SumS cfileDeleteRowObjects(8916 long long p6SumSkyfileDeleteRowObjects( 8929 8917 psDB *dbh, ///< Database handle 8930 8918 const psArray *objects, ///< Array of objects to delete 8931 8919 unsigned long long limit ///< Maximum number of elements to delete 8932 8920 ); 8933 /** Formats and prints an array of p6SumS cfileRow objects8921 /** Formats and prints an array of p6SumSkyfileRow objects 8934 8922 * 8935 8923 * When mdcf is set the formated output is in psMetadataConfig … … 8939 8927 */ 8940 8928 8941 bool p6SumS cfilePrintObjects(8929 bool p6SumSkyfilePrintObjects( 8942 8930 FILE *stream, ///< a stream 8943 psArray *objects, ///< An array of p6SumS cfileRow objects8931 psArray *objects, ///< An array of p6SumSkyfileRow objects 8944 8932 bool mdcf ///< format as mdconfig or simple 8945 8933 ); 8946 /** Formats and prints an p6SumS cfileRow object8934 /** Formats and prints an p6SumSkyfileRow object 8947 8935 * 8948 8936 * When mdcf is set the formated output is in psMetadataConfig … … 8952 8940 */ 8953 8941 8954 bool p6SumS cfilePrintObject(8942 bool p6SumSkyfilePrintObject( 8955 8943 FILE *stream, ///< a stream 8956 p6SumS cfileRow *object, ///< an p6SumScfileRow object8944 p6SumSkyfileRow *object, ///< an p6SumSkyfileRow object 8957 8945 bool mdcf ///< format as mdconfig or simple 8958 8946 ); … … 8964 8952 #endif 8965 8953 8966 #endif // P6SUMS CFILE_DB_H8954 #endif // P6SUMSKYFILE_DB_H
Note:
See TracChangeset
for help on using the changeset viewer.
