IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2006, 6:14:10 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION to 0.0.30

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/src/ippdb.h

    r8368 r8380  
    65166516    char            *class_id;
    65176517    char            *uri;
    6518     char            *recipe;
    65196518} detNormalizedImfileRow;
    65206519
     
    65286527    psS32           iteration,
    65296528    const char      *class_id,
    6530     const char      *uri,
    6531     const char      *recipe
     6529    const char      *uri
    65326530);
    65336531
     
    65626560    psS32           iteration,
    65636561    const char      *class_id,
    6564     const char      *uri,
    6565     const char      *recipe
     6562    const char      *uri
    65666563);
    65676564
     
    65876584    psS32           *iteration,
    65886585    char            **class_id,
    6589     char            **uri,
    6590     char            **recipe
     6586    char            **uri
    65916587);
    65926588
     
    71877183    bool            mdcf                ///< format as mdconfig or simple
    71887184);
    7189 /** detResidImfileAnalysisRow data structure
    7190  *
    7191  * Structure for representing a single row of detResidImfileAnalysis table data.
     7185/** detResidImfileRow data structure
     7186 *
     7187 * Structure for representing a single row of detResidImfile table data.
    71927188 */
    71937189
     
    72017197    char            *b1_uri;
    72027198    char            *b2_uri;
    7203 } detResidImfileAnalysisRow;
    7204 
    7205 /** Creates a new detResidImfileAnalysisRow object
    7206  *
    7207  *  @return A new detResidImfileAnalysisRow object or NULL on failure.
    7208  */
    7209 
    7210 detResidImfileAnalysisRow *detResidImfileAnalysisRowAlloc(
     7199} detResidImfileRow;
     7200
     7201/** Creates a new detResidImfileRow object
     7202 *
     7203 *  @return A new detResidImfileRow object or NULL on failure.
     7204 */
     7205
     7206detResidImfileRow *detResidImfileRowAlloc(
    72117207    psS32           det_id,
    72127208    psS32           iteration,
     
    72197215);
    72207216
    7221 /** Creates a new detResidImfileAnalysis table
    7222  *
    7223  * @return true on success
    7224  */
    7225 
    7226 bool detResidImfileAnalysisCreateTable(
    7227     psDB            *dbh                ///< Database handle
    7228 );
    7229 
    7230 /** Deletes a detResidImfileAnalysis table
    7231  *
    7232  * @return true on success
    7233  */
    7234 
    7235 bool detResidImfileAnalysisDropTable(
     7217/** Creates a new detResidImfile table
     7218 *
     7219 * @return true on success
     7220 */
     7221
     7222bool detResidImfileCreateTable(
     7223    psDB            *dbh                ///< Database handle
     7224);
     7225
     7226/** Deletes a detResidImfile table
     7227 *
     7228 * @return true on success
     7229 */
     7230
     7231bool detResidImfileDropTable(
    72367232    psDB            *dbh                ///< Database handle
    72377233);
     
    72447240 */
    72457241
    7246 bool detResidImfileAnalysisInsert(
     7242bool detResidImfileInsert(
    72477243    psDB            *dbh,               ///< Database handle
    72487244    psS32           det_id,
     
    72617257 */
    72627258
    7263 long long detResidImfileAnalysisDelete(
     7259long long detResidImfileDelete(
    72647260    psDB            *dbh,               ///< Database handle
    72657261    const psMetadata *where,            ///< Row match criteria
     
    72727268 */
    72737269
    7274 bool detResidImfileAnalysisPop(
     7270bool detResidImfilePop(
    72757271    psDB            *dbh,               ///< Database handle
    72767272    psS32           *det_id,
     
    72847280);
    72857281
    7286 /** Insert a single detResidImfileAnalysisRow object into a table
     7282/** Insert a single detResidImfileRow object into a table
    72877283 *
    72887284 * This function constructs and inserts a single row based on it's parameters.
     
    72917287 */
    72927288
    7293 bool detResidImfileAnalysisInsertObject(
    7294     psDB            *dbh,               ///< Database handle
    7295     detResidImfileAnalysisRow *object             ///< detResidImfileAnalysisRow object
    7296 );
    7297 
    7298 /** Insert an array of detResidImfileAnalysisRow object into a table
     7289bool detResidImfileInsertObject(
     7290    psDB            *dbh,               ///< Database handle
     7291    detResidImfileRow *object             ///< detResidImfileRow object
     7292);
     7293
     7294/** Insert an array of detResidImfileRow object into a table
    72997295 *
    73007296 * This function constructs and inserts multiple rows based on it's parameters.
     
    73037299 */
    73047300
    7305 bool detResidImfileAnalysisInsertObjects(
    7306     psDB            *dbh,               ///< Database handle
    7307     psArray         *objects            ///< array of detResidImfileAnalysisRow objects
     7301bool detResidImfileInsertObjects(
     7302    psDB            *dbh,               ///< Database handle
     7303    psArray         *objects            ///< array of detResidImfileRow objects
    73087304);
    73097305
    73107306/** Removes the last row from the database and returns it
    73117307 *
    7312  * @return A new detResidImfileAnalysisRow on success or NULL on failure.
    7313  */
    7314 
    7315 detResidImfileAnalysisRow *detResidImfileAnalysisPopObject(
    7316     psDB            *dbh                ///< Database handle
    7317 );
    7318 
    7319 /** Insert data from a binary FITS table detResidImfileAnalysisRow into the database
     7308 * @return A new detResidImfileRow on success or NULL on failure.
     7309 */
     7310
     7311detResidImfileRow *detResidImfilePopObject(
     7312    psDB            *dbh                ///< Database handle
     7313);
     7314
     7315/** Insert data from a binary FITS table detResidImfileRow into the database
    73207316 *
    73217317 * This function expects a psFits object with a FITS table as the first
     
    73277323 */
    73287324
    7329 bool detResidImfileAnalysisInsertFits(
     7325bool detResidImfileInsertFits(
    73307326    psDB            *dbh,               ///< Database handle
    73317327    const psFits    *fits               ///< psFits object
     
    73407336 */
    73417337
    7342 bool detResidImfileAnalysisPopFits(
     7338bool detResidImfilePopFits(
    73437339    psDB            *dbh,               ///< Database handle
    73447340    psFits          *fits,              ///< psFits object
     
    73567352 */
    73577353
    7358 bool detResidImfileAnalysisSelectRowsFits(
     7354bool detResidImfileSelectRowsFits(
    73597355    psDB            *dbh,               ///< Database handle
    73607356    psFits          *fits,              ///< psFits object
     
    73637359);
    73647360
    7365 /** Convert a detResidImfileAnalysisRow into an equivalent psMetadata
     7361/** Convert a detResidImfileRow into an equivalent psMetadata
    73667362 *
    73677363 * @return A psMetadata pointer or NULL on error
    73687364 */
    73697365
    7370 psMetadata *detResidImfileAnalysisMetadataFromObject(
    7371     const detResidImfileAnalysisRow *object             ///< fooRow to convert into a psMetadata
     7366psMetadata *detResidImfileMetadataFromObject(
     7367    const detResidImfileRow *object             ///< fooRow to convert into a psMetadata
    73727368);
    73737369
    73747370/** Convert a psMetadata into an equivalent fooRow
    73757371 *
    7376  * @return A detResidImfileAnalysisRow pointer or NULL on error
    7377  */
    7378 
    7379 detResidImfileAnalysisRow *detResidImfileAnalysisObjectFromMetadata(
     7372 * @return A detResidImfileRow pointer or NULL on error
     7373 */
     7374
     7375detResidImfileRow *detResidImfileObjectFromMetadata(
    73807376    psMetadata      *md                 ///< psMetadata to convert into a fooRow
    73817377);
    7382 /** Selects up to limit rows from the database and returns as detResidImfileAnalysisRow objects in a psArray
     7378/** Selects up to limit rows from the database and returns as detResidImfileRow objects in a psArray
    73837379 *
    73847380 *  See psDBSelectRows() for documentation on the format of where.
     
    73877383 */
    73887384
    7389 psArray *detResidImfileAnalysisSelectRowObjects(
    7390     psDB            *dbh,               ///< Database handle
    7391     const psMetadata *where,            ///< Row match criteria
    7392     unsigned long long limit            ///< Maximum number of elements to return
    7393 );
    7394 /** Deletes a row from the database coresponding to an detResidImfileAnalysis
     7385psArray *detResidImfileSelectRowObjects(
     7386    psDB            *dbh,               ///< Database handle
     7387    const psMetadata *where,            ///< Row match criteria
     7388    unsigned long long limit            ///< Maximum number of elements to return
     7389);
     7390/** Deletes a row from the database coresponding to an detResidImfile
    73957391 *
    73967392 *  Note that a 'where' search psMetadata is constructed from each object and
     
    74007396 */
    74017397
    7402 bool detResidImfileAnalysisDeleteObject(
    7403     psDB            *dbh,               ///< Database handle
    7404     const detResidImfileAnalysisRow *object    ///< Object to delete
     7398bool detResidImfileDeleteObject(
     7399    psDB            *dbh,               ///< Database handle
     7400    const detResidImfileRow *object    ///< Object to delete
    74057401);
    74067402/** Deletes up to limit rows from the database and returns the number of rows actually deleted.
     
    74127408 */
    74137409
    7414 long long detResidImfileAnalysisDeleteRowObjects(
     7410long long detResidImfileDeleteRowObjects(
    74157411    psDB            *dbh,               ///< Database handle
    74167412    const psArray   *objects,           ///< Array of objects to delete
    74177413    unsigned long long limit            ///< Maximum number of elements to delete
    74187414);
    7419 /** Formats and prints an array of detResidImfileAnalysisRow objects
     7415/** Formats and prints an array of detResidImfileRow objects
    74207416 *
    74217417 * When mdcf is set the formated output is in psMetadataConfig
     
    74257421 */
    74267422
    7427 bool detResidImfileAnalysisPrintObjects(
     7423bool detResidImfilePrintObjects(
    74287424    FILE            *stream,            ///< a stream
    7429     psArray         *objects,           ///< An array of detResidImfileAnalysisRow objects
     7425    psArray         *objects,           ///< An array of detResidImfileRow objects
    74307426    bool            mdcf                ///< format as mdconfig or simple
    74317427);
    7432 /** detResidExpAnalysisRow data structure
    7433  *
    7434  * Structure for representing a single row of detResidExpAnalysis table data.
     7428/** detResidExpRow data structure
     7429 *
     7430 * Structure for representing a single row of detResidExp table data.
    74357431 */
    74367432
     
    74427438    bool            keep;
    74437439    bool            accept;
    7444 } detResidExpAnalysisRow;
    7445 
    7446 /** Creates a new detResidExpAnalysisRow object
    7447  *
    7448  *  @return A new detResidExpAnalysisRow object or NULL on failure.
    7449  */
    7450 
    7451 detResidExpAnalysisRow *detResidExpAnalysisRowAlloc(
     7440} detResidExpRow;
     7441
     7442/** Creates a new detResidExpRow object
     7443 *
     7444 *  @return A new detResidExpRow object or NULL on failure.
     7445 */
     7446
     7447detResidExpRow *detResidExpRowAlloc(
    74527448    psS32           det_id,
    74537449    psS32           iteration,
     
    74587454);
    74597455
    7460 /** Creates a new detResidExpAnalysis table
    7461  *
    7462  * @return true on success
    7463  */
    7464 
    7465 bool detResidExpAnalysisCreateTable(
    7466     psDB            *dbh                ///< Database handle
    7467 );
    7468 
    7469 /** Deletes a detResidExpAnalysis table
    7470  *
    7471  * @return true on success
    7472  */
    7473 
    7474 bool detResidExpAnalysisDropTable(
     7456/** Creates a new detResidExp table
     7457 *
     7458 * @return true on success
     7459 */
     7460
     7461bool detResidExpCreateTable(
     7462    psDB            *dbh                ///< Database handle
     7463);
     7464
     7465/** Deletes a detResidExp table
     7466 *
     7467 * @return true on success
     7468 */
     7469
     7470bool detResidExpDropTable(
    74757471    psDB            *dbh                ///< Database handle
    74767472);
     
    74837479 */
    74847480
    7485 bool detResidExpAnalysisInsert(
     7481bool detResidExpInsert(
    74867482    psDB            *dbh,               ///< Database handle
    74877483    psS32           det_id,
     
    74987494 */
    74997495
    7500 long long detResidExpAnalysisDelete(
     7496long long detResidExpDelete(
    75017497    psDB            *dbh,               ///< Database handle
    75027498    const psMetadata *where,            ///< Row match criteria
     
    75097505 */
    75107506
    7511 bool detResidExpAnalysisPop(
     7507bool detResidExpPop(
    75127508    psDB            *dbh,               ///< Database handle
    75137509    psS32           *det_id,
     
    75197515);
    75207516
    7521 /** Insert a single detResidExpAnalysisRow object into a table
     7517/** Insert a single detResidExpRow object into a table
    75227518 *
    75237519 * This function constructs and inserts a single row based on it's parameters.
     
    75267522 */
    75277523
    7528 bool detResidExpAnalysisInsertObject(
    7529     psDB            *dbh,               ///< Database handle
    7530     detResidExpAnalysisRow *object             ///< detResidExpAnalysisRow object
    7531 );
    7532 
    7533 /** Insert an array of detResidExpAnalysisRow object into a table
     7524bool detResidExpInsertObject(
     7525    psDB            *dbh,               ///< Database handle
     7526    detResidExpRow  *object             ///< detResidExpRow object
     7527);
     7528
     7529/** Insert an array of detResidExpRow object into a table
    75347530 *
    75357531 * This function constructs and inserts multiple rows based on it's parameters.
     
    75387534 */
    75397535
    7540 bool detResidExpAnalysisInsertObjects(
    7541     psDB            *dbh,               ///< Database handle
    7542     psArray         *objects            ///< array of detResidExpAnalysisRow objects
     7536bool detResidExpInsertObjects(
     7537    psDB            *dbh,               ///< Database handle
     7538    psArray         *objects            ///< array of detResidExpRow objects
    75437539);
    75447540
    75457541/** Removes the last row from the database and returns it
    75467542 *
    7547  * @return A new detResidExpAnalysisRow on success or NULL on failure.
    7548  */
    7549 
    7550 detResidExpAnalysisRow *detResidExpAnalysisPopObject(
    7551     psDB            *dbh                ///< Database handle
    7552 );
    7553 
    7554 /** Insert data from a binary FITS table detResidExpAnalysisRow into the database
     7543 * @return A new detResidExpRow on success or NULL on failure.
     7544 */
     7545
     7546detResidExpRow *detResidExpPopObject(
     7547    psDB            *dbh                ///< Database handle
     7548);
     7549
     7550/** Insert data from a binary FITS table detResidExpRow into the database
    75557551 *
    75567552 * This function expects a psFits object with a FITS table as the first
     
    75627558 */
    75637559
    7564 bool detResidExpAnalysisInsertFits(
     7560bool detResidExpInsertFits(
    75657561    psDB            *dbh,               ///< Database handle
    75667562    const psFits    *fits               ///< psFits object
     
    75757571 */
    75767572
    7577 bool detResidExpAnalysisPopFits(
     7573bool detResidExpPopFits(
    75787574    psDB            *dbh,               ///< Database handle
    75797575    psFits          *fits,              ///< psFits object
     
    75917587 */
    75927588
    7593 bool detResidExpAnalysisSelectRowsFits(
     7589bool detResidExpSelectRowsFits(
    75947590    psDB            *dbh,               ///< Database handle
    75957591    psFits          *fits,              ///< psFits object
     
    75987594);
    75997595
    7600 /** Convert a detResidExpAnalysisRow into an equivalent psMetadata
     7596/** Convert a detResidExpRow into an equivalent psMetadata
    76017597 *
    76027598 * @return A psMetadata pointer or NULL on error
    76037599 */
    76047600
    7605 psMetadata *detResidExpAnalysisMetadataFromObject(
    7606     const detResidExpAnalysisRow *object             ///< fooRow to convert into a psMetadata
     7601psMetadata *detResidExpMetadataFromObject(
     7602    const detResidExpRow *object             ///< fooRow to convert into a psMetadata
    76077603);
    76087604
    76097605/** Convert a psMetadata into an equivalent fooRow
    76107606 *
    7611  * @return A detResidExpAnalysisRow pointer or NULL on error
    7612  */
    7613 
    7614 detResidExpAnalysisRow *detResidExpAnalysisObjectFromMetadata(
     7607 * @return A detResidExpRow pointer or NULL on error
     7608 */
     7609
     7610detResidExpRow *detResidExpObjectFromMetadata(
    76157611    psMetadata      *md                 ///< psMetadata to convert into a fooRow
    76167612);
    7617 /** Selects up to limit rows from the database and returns as detResidExpAnalysisRow objects in a psArray
     7613/** Selects up to limit rows from the database and returns as detResidExpRow objects in a psArray
    76187614 *
    76197615 *  See psDBSelectRows() for documentation on the format of where.
     
    76227618 */
    76237619
    7624 psArray *detResidExpAnalysisSelectRowObjects(
    7625     psDB            *dbh,               ///< Database handle
    7626     const psMetadata *where,            ///< Row match criteria
    7627     unsigned long long limit            ///< Maximum number of elements to return
    7628 );
    7629 /** Deletes a row from the database coresponding to an detResidExpAnalysis
     7620psArray *detResidExpSelectRowObjects(
     7621    psDB            *dbh,               ///< Database handle
     7622    const psMetadata *where,            ///< Row match criteria
     7623    unsigned long long limit            ///< Maximum number of elements to return
     7624);
     7625/** Deletes a row from the database coresponding to an detResidExp
    76307626 *
    76317627 *  Note that a 'where' search psMetadata is constructed from each object and
     
    76357631 */
    76367632
    7637 bool detResidExpAnalysisDeleteObject(
    7638     psDB            *dbh,               ///< Database handle
    7639     const detResidExpAnalysisRow *object    ///< Object to delete
     7633bool detResidExpDeleteObject(
     7634    psDB            *dbh,               ///< Database handle
     7635    const detResidExpRow *object    ///< Object to delete
    76407636);
    76417637/** Deletes up to limit rows from the database and returns the number of rows actually deleted.
     
    76477643 */
    76487644
    7649 long long detResidExpAnalysisDeleteRowObjects(
     7645long long detResidExpDeleteRowObjects(
    76507646    psDB            *dbh,               ///< Database handle
    76517647    const psArray   *objects,           ///< Array of objects to delete
    76527648    unsigned long long limit            ///< Maximum number of elements to delete
    76537649);
    7654 /** Formats and prints an array of detResidExpAnalysisRow objects
     7650/** Formats and prints an array of detResidExpRow objects
    76557651 *
    76567652 * When mdcf is set the formated output is in psMetadataConfig
     
    76607656 */
    76617657
    7662 bool detResidExpAnalysisPrintObjects(
     7658bool detResidExpPrintObjects(
    76637659    FILE            *stream,            ///< a stream
    7664     psArray         *objects,           ///< An array of detResidExpAnalysisRow objects
     7660    psArray         *objects,           ///< An array of detResidExpRow objects
    76657661    bool            mdcf                ///< format as mdconfig or simple
    76667662);
     
    76727668#endif
    76737669
    7674 #endif // DETRESIDEXPANALYSIS_DB_H
     7670#endif // DETRESIDEXP_DB_H
Note: See TracChangeset for help on using the changeset viewer.