IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 28, 2006, 6:44:34 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.34

File:
1 edited

Legend:

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

    r8543 r8665  
     1/*
     2 *
     3 * This file was generated by glueforge 0.24
     4 *
     5 * Do NOT directly edit this file.
     6 *
     7 */
     8
    19#ifndef IPPDB_H
    210#define IPPDB_H 1
     
    46664674    bool            mdcf                ///< format as mdconfig or simple
    46674675);
    4668 /** p2DoneExpRow data structure
    4669  *
    4670  * Structure for representing a single row of p2DoneExp table data.
     4676/** p2ProcessedExpRow data structure
     4677 *
     4678 * Structure for representing a single row of p2ProcessedExp table data.
    46714679 */
    46724680
    46734681typedef struct {
    46744682    char            *exp_id;
    4675     char            *recipe;
    46764683    psS32           p1_version;
    46774684    psS32           p2_version;
    4678 } p2DoneExpRow;
    4679 
    4680 /** Creates a new p2DoneExpRow object
    4681  *
    4682  *  @return A new p2DoneExpRow object or NULL on failure.
    4683  */
    4684 
    4685 p2DoneExpRow *p2DoneExpRowAlloc(
     4685} p2ProcessedExpRow;
     4686
     4687/** Creates a new p2ProcessedExpRow object
     4688 *
     4689 *  @return A new p2ProcessedExpRow object or NULL on failure.
     4690 */
     4691
     4692p2ProcessedExpRow *p2ProcessedExpRowAlloc(
    46864693    const char      *exp_id,
    4687     const char      *recipe,
    46884694    psS32           p1_version,
    46894695    psS32           p2_version
    46904696);
    46914697
    4692 /** Creates a new p2DoneExp table
    4693  *
    4694  * @return true on success
    4695  */
    4696 
    4697 bool p2DoneExpCreateTable(
    4698     psDB            *dbh                ///< Database handle
    4699 );
    4700 
    4701 /** Deletes a p2DoneExp table
    4702  *
    4703  * @return true on success
    4704  */
    4705 
    4706 bool p2DoneExpDropTable(
     4698/** Creates a new p2ProcessedExp table
     4699 *
     4700 * @return true on success
     4701 */
     4702
     4703bool p2ProcessedExpCreateTable(
     4704    psDB            *dbh                ///< Database handle
     4705);
     4706
     4707/** Deletes a p2ProcessedExp table
     4708 *
     4709 * @return true on success
     4710 */
     4711
     4712bool p2ProcessedExpDropTable(
    47074713    psDB            *dbh                ///< Database handle
    47084714);
     
    47154721 */
    47164722
    4717 bool p2DoneExpInsert(
     4723bool p2ProcessedExpInsert(
    47184724    psDB            *dbh,               ///< Database handle
    47194725    const char      *exp_id,
    4720     const char      *recipe,
    47214726    psS32           p1_version,
    47224727    psS32           p2_version
     
    47284733 */
    47294734
    4730 long long p2DoneExpDelete(
     4735long long p2ProcessedExpDelete(
    47314736    psDB            *dbh,               ///< Database handle
    47324737    const psMetadata *where,            ///< Row match criteria
     
    47394744 */
    47404745
    4741 bool p2DoneExpPop(
     4746bool p2ProcessedExpPop(
    47424747    psDB            *dbh,               ///< Database handle
    47434748    char            **exp_id,
    4744     char            **recipe,
    47454749    psS32           *p1_version,
    47464750    psS32           *p2_version
    47474751);
    47484752
    4749 /** Insert a single p2DoneExpRow object into a table
     4753/** Insert a single p2ProcessedExpRow object into a table
    47504754 *
    47514755 * This function constructs and inserts a single row based on it's parameters.
     
    47544758 */
    47554759
    4756 bool p2DoneExpInsertObject(
    4757     psDB            *dbh,               ///< Database handle
    4758     p2DoneExpRow    *object             ///< p2DoneExpRow object
    4759 );
    4760 
    4761 /** Insert an array of p2DoneExpRow object into a table
     4760bool p2ProcessedExpInsertObject(
     4761    psDB            *dbh,               ///< Database handle
     4762    p2ProcessedExpRow *object             ///< p2ProcessedExpRow object
     4763);
     4764
     4765/** Insert an array of p2ProcessedExpRow object into a table
    47624766 *
    47634767 * This function constructs and inserts multiple rows based on it's parameters.
     
    47664770 */
    47674771
    4768 bool p2DoneExpInsertObjects(
    4769     psDB            *dbh,               ///< Database handle
    4770     psArray         *objects            ///< array of p2DoneExpRow objects
     4772bool p2ProcessedExpInsertObjects(
     4773    psDB            *dbh,               ///< Database handle
     4774    psArray         *objects            ///< array of p2ProcessedExpRow objects
    47714775);
    47724776
    47734777/** Removes the last row from the database and returns it
    47744778 *
    4775  * @return A new p2DoneExpRow on success or NULL on failure.
    4776  */
    4777 
    4778 p2DoneExpRow *p2DoneExpPopObject(
    4779     psDB            *dbh                ///< Database handle
    4780 );
    4781 
    4782 /** Insert data from a binary FITS table p2DoneExpRow into the database
     4779 * @return A new p2ProcessedExpRow on success or NULL on failure.
     4780 */
     4781
     4782p2ProcessedExpRow *p2ProcessedExpPopObject(
     4783    psDB            *dbh                ///< Database handle
     4784);
     4785
     4786/** Insert data from a binary FITS table p2ProcessedExpRow into the database
    47834787 *
    47844788 * This function expects a psFits object with a FITS table as the first
     
    47904794 */
    47914795
    4792 bool p2DoneExpInsertFits(
     4796bool p2ProcessedExpInsertFits(
    47934797    psDB            *dbh,               ///< Database handle
    47944798    const psFits    *fits               ///< psFits object
     
    48034807 */
    48044808
    4805 bool p2DoneExpPopFits(
     4809bool p2ProcessedExpPopFits(
    48064810    psDB            *dbh,               ///< Database handle
    48074811    psFits          *fits,              ///< psFits object
     
    48194823 */
    48204824
    4821 bool p2DoneExpSelectRowsFits(
     4825bool p2ProcessedExpSelectRowsFits(
    48224826    psDB            *dbh,               ///< Database handle
    48234827    psFits          *fits,              ///< psFits object
     
    48264830);
    48274831
    4828 /** Convert a p2DoneExpRow into an equivalent psMetadata
     4832/** Convert a p2ProcessedExpRow into an equivalent psMetadata
    48294833 *
    48304834 * @return A psMetadata pointer or NULL on error
    48314835 */
    48324836
    4833 psMetadata *p2DoneExpMetadataFromObject(
    4834     const p2DoneExpRow *object             ///< fooRow to convert into a psMetadata
     4837psMetadata *p2ProcessedExpMetadataFromObject(
     4838    const p2ProcessedExpRow *object             ///< fooRow to convert into a psMetadata
    48354839);
    48364840
    48374841/** Convert a psMetadata into an equivalent fooRow
    48384842 *
    4839  * @return A p2DoneExpRow pointer or NULL on error
    4840  */
    4841 
    4842 p2DoneExpRow *p2DoneExpObjectFromMetadata(
     4843 * @return A p2ProcessedExpRow pointer or NULL on error
     4844 */
     4845
     4846p2ProcessedExpRow *p2ProcessedExpObjectFromMetadata(
    48434847    psMetadata      *md                 ///< psMetadata to convert into a fooRow
    48444848);
    4845 /** Selects up to limit rows from the database and returns as p2DoneExpRow objects in a psArray
     4849/** Selects up to limit rows from the database and returns as p2ProcessedExpRow objects in a psArray
    48464850 *
    48474851 *  See psDBSelectRows() for documentation on the format of where.
     
    48504854 */
    48514855
    4852 psArray *p2DoneExpSelectRowObjects(
    4853     psDB            *dbh,               ///< Database handle
    4854     const psMetadata *where,            ///< Row match criteria
    4855     unsigned long long limit            ///< Maximum number of elements to return
    4856 );
    4857 /** Deletes a row from the database coresponding to an p2DoneExp
     4856psArray *p2ProcessedExpSelectRowObjects(
     4857    psDB            *dbh,               ///< Database handle
     4858    const psMetadata *where,            ///< Row match criteria
     4859    unsigned long long limit            ///< Maximum number of elements to return
     4860);
     4861/** Deletes a row from the database coresponding to an p2ProcessedExp
    48584862 *
    48594863 *  Note that a 'where' search psMetadata is constructed from each object and
     
    48634867 */
    48644868
    4865 bool p2DoneExpDeleteObject(
    4866     psDB            *dbh,               ///< Database handle
    4867     const p2DoneExpRow *object    ///< Object to delete
     4869bool p2ProcessedExpDeleteObject(
     4870    psDB            *dbh,               ///< Database handle
     4871    const p2ProcessedExpRow *object    ///< Object to delete
    48684872);
    48694873/** Deletes up to limit rows from the database and returns the number of rows actually deleted.
     
    48754879 */
    48764880
    4877 long long p2DoneExpDeleteRowObjects(
     4881long long p2ProcessedExpDeleteRowObjects(
    48784882    psDB            *dbh,               ///< Database handle
    48794883    const psArray   *objects,           ///< Array of objects to delete
    48804884    unsigned long long limit            ///< Maximum number of elements to delete
    48814885);
    4882 /** Formats and prints an array of p2DoneExpRow objects
     4886/** Formats and prints an array of p2ProcessedExpRow objects
    48834887 *
    48844888 * When mdcf is set the formated output is in psMetadataConfig
     
    48884892 */
    48894893
    4890 bool p2DoneExpPrintObjects(
     4894bool p2ProcessedExpPrintObjects(
    48914895    FILE            *stream,            ///< a stream
    4892     psArray         *objects,           ///< An array of p2DoneExpRow objects
     4896    psArray         *objects,           ///< An array of p2ProcessedExpRow objects
    48934897    bool            mdcf                ///< format as mdconfig or simple
    48944898);
    4895 /** p2DoneImfileRow data structure
    4896  *
    4897  * Structure for representing a single row of p2DoneImfile table data.
     4899/** p2ProcessedImfileRow data structure
     4900 *
     4901 * Structure for representing a single row of p2ProcessedImfile table data.
    48984902 */
    48994903
     
    49034907    char            *uri;
    49044908    char            *recipe;
     4909    psF64           bg;
     4910    psF64           bg_stdev;
     4911    psF64           bg_mean_stdev;
     4912    char            *b1_uri;
     4913    char            *b2_uri;
    49054914    psS32           p1_version;
    49064915    psS32           p2_version;
    4907 } p2DoneImfileRow;
    4908 
    4909 /** Creates a new p2DoneImfileRow object
    4910  *
    4911  *  @return A new p2DoneImfileRow object or NULL on failure.
    4912  */
    4913 
    4914 p2DoneImfileRow *p2DoneImfileRowAlloc(
     4916} p2ProcessedImfileRow;
     4917
     4918/** Creates a new p2ProcessedImfileRow object
     4919 *
     4920 *  @return A new p2ProcessedImfileRow object or NULL on failure.
     4921 */
     4922
     4923p2ProcessedImfileRow *p2ProcessedImfileRowAlloc(
    49154924    const char      *exp_id,
    49164925    const char      *class_id,
    49174926    const char      *uri,
    49184927    const char      *recipe,
     4928    psF64           bg,
     4929    psF64           bg_stdev,
     4930    psF64           bg_mean_stdev,
     4931    const char      *b1_uri,
     4932    const char      *b2_uri,
    49194933    psS32           p1_version,
    49204934    psS32           p2_version
    49214935);
    49224936
    4923 /** Creates a new p2DoneImfile table
    4924  *
    4925  * @return true on success
    4926  */
    4927 
    4928 bool p2DoneImfileCreateTable(
    4929     psDB            *dbh                ///< Database handle
    4930 );
    4931 
    4932 /** Deletes a p2DoneImfile table
    4933  *
    4934  * @return true on success
    4935  */
    4936 
    4937 bool p2DoneImfileDropTable(
     4937/** Creates a new p2ProcessedImfile table
     4938 *
     4939 * @return true on success
     4940 */
     4941
     4942bool p2ProcessedImfileCreateTable(
     4943    psDB            *dbh                ///< Database handle
     4944);
     4945
     4946/** Deletes a p2ProcessedImfile table
     4947 *
     4948 * @return true on success
     4949 */
     4950
     4951bool p2ProcessedImfileDropTable(
    49384952    psDB            *dbh                ///< Database handle
    49394953);
     
    49464960 */
    49474961
    4948 bool p2DoneImfileInsert(
     4962bool p2ProcessedImfileInsert(
    49494963    psDB            *dbh,               ///< Database handle
    49504964    const char      *exp_id,
     
    49524966    const char      *uri,
    49534967    const char      *recipe,
     4968    psF64           bg,
     4969    psF64           bg_stdev,
     4970    psF64           bg_mean_stdev,
     4971    const char      *b1_uri,
     4972    const char      *b2_uri,
    49544973    psS32           p1_version,
    49554974    psS32           p2_version
     
    49614980 */
    49624981
    4963 long long p2DoneImfileDelete(
     4982long long p2ProcessedImfileDelete(
    49644983    psDB            *dbh,               ///< Database handle
    49654984    const psMetadata *where,            ///< Row match criteria
     
    49724991 */
    49734992
    4974 bool p2DoneImfilePop(
     4993bool p2ProcessedImfilePop(
    49754994    psDB            *dbh,               ///< Database handle
    49764995    char            **exp_id,
     
    49784997    char            **uri,
    49794998    char            **recipe,
     4999    psF64           *bg,
     5000    psF64           *bg_stdev,
     5001    psF64           *bg_mean_stdev,
     5002    char            **b1_uri,
     5003    char            **b2_uri,
    49805004    psS32           *p1_version,
    49815005    psS32           *p2_version
    49825006);
    49835007
    4984 /** Insert a single p2DoneImfileRow object into a table
     5008/** Insert a single p2ProcessedImfileRow object into a table
    49855009 *
    49865010 * This function constructs and inserts a single row based on it's parameters.
     
    49895013 */
    49905014
    4991 bool p2DoneImfileInsertObject(
    4992     psDB            *dbh,               ///< Database handle
    4993     p2DoneImfileRow *object             ///< p2DoneImfileRow object
    4994 );
    4995 
    4996 /** Insert an array of p2DoneImfileRow object into a table
     5015bool p2ProcessedImfileInsertObject(
     5016    psDB            *dbh,               ///< Database handle
     5017    p2ProcessedImfileRow *object             ///< p2ProcessedImfileRow object
     5018);
     5019
     5020/** Insert an array of p2ProcessedImfileRow object into a table
    49975021 *
    49985022 * This function constructs and inserts multiple rows based on it's parameters.
     
    50015025 */
    50025026
    5003 bool p2DoneImfileInsertObjects(
    5004     psDB            *dbh,               ///< Database handle
    5005     psArray         *objects            ///< array of p2DoneImfileRow objects
     5027bool p2ProcessedImfileInsertObjects(
     5028    psDB            *dbh,               ///< Database handle
     5029    psArray         *objects            ///< array of p2ProcessedImfileRow objects
    50065030);
    50075031
    50085032/** Removes the last row from the database and returns it
    50095033 *
    5010  * @return A new p2DoneImfileRow on success or NULL on failure.
    5011  */
    5012 
    5013 p2DoneImfileRow *p2DoneImfilePopObject(
    5014     psDB            *dbh                ///< Database handle
    5015 );
    5016 
    5017 /** Insert data from a binary FITS table p2DoneImfileRow into the database
     5034 * @return A new p2ProcessedImfileRow on success or NULL on failure.
     5035 */
     5036
     5037p2ProcessedImfileRow *p2ProcessedImfilePopObject(
     5038    psDB            *dbh                ///< Database handle
     5039);
     5040
     5041/** Insert data from a binary FITS table p2ProcessedImfileRow into the database
    50185042 *
    50195043 * This function expects a psFits object with a FITS table as the first
     
    50255049 */
    50265050
    5027 bool p2DoneImfileInsertFits(
     5051bool p2ProcessedImfileInsertFits(
    50285052    psDB            *dbh,               ///< Database handle
    50295053    const psFits    *fits               ///< psFits object
     
    50385062 */
    50395063
    5040 bool p2DoneImfilePopFits(
     5064bool p2ProcessedImfilePopFits(
    50415065    psDB            *dbh,               ///< Database handle
    50425066    psFits          *fits,              ///< psFits object
     
    50545078 */
    50555079
    5056 bool p2DoneImfileSelectRowsFits(
     5080bool p2ProcessedImfileSelectRowsFits(
    50575081    psDB            *dbh,               ///< Database handle
    50585082    psFits          *fits,              ///< psFits object
     
    50615085);
    50625086
    5063 /** Convert a p2DoneImfileRow into an equivalent psMetadata
     5087/** Convert a p2ProcessedImfileRow into an equivalent psMetadata
    50645088 *
    50655089 * @return A psMetadata pointer or NULL on error
    50665090 */
    50675091
    5068 psMetadata *p2DoneImfileMetadataFromObject(
    5069     const p2DoneImfileRow *object             ///< fooRow to convert into a psMetadata
     5092psMetadata *p2ProcessedImfileMetadataFromObject(
     5093    const p2ProcessedImfileRow *object             ///< fooRow to convert into a psMetadata
    50705094);
    50715095
    50725096/** Convert a psMetadata into an equivalent fooRow
    50735097 *
    5074  * @return A p2DoneImfileRow pointer or NULL on error
    5075  */
    5076 
    5077 p2DoneImfileRow *p2DoneImfileObjectFromMetadata(
     5098 * @return A p2ProcessedImfileRow pointer or NULL on error
     5099 */
     5100
     5101p2ProcessedImfileRow *p2ProcessedImfileObjectFromMetadata(
    50785102    psMetadata      *md                 ///< psMetadata to convert into a fooRow
    50795103);
    5080 /** Selects up to limit rows from the database and returns as p2DoneImfileRow objects in a psArray
     5104/** Selects up to limit rows from the database and returns as p2ProcessedImfileRow objects in a psArray
    50815105 *
    50825106 *  See psDBSelectRows() for documentation on the format of where.
     
    50855109 */
    50865110
    5087 psArray *p2DoneImfileSelectRowObjects(
    5088     psDB            *dbh,               ///< Database handle
    5089     const psMetadata *where,            ///< Row match criteria
    5090     unsigned long long limit            ///< Maximum number of elements to return
    5091 );
    5092 /** Deletes a row from the database coresponding to an p2DoneImfile
     5111psArray *p2ProcessedImfileSelectRowObjects(
     5112    psDB            *dbh,               ///< Database handle
     5113    const psMetadata *where,            ///< Row match criteria
     5114    unsigned long long limit            ///< Maximum number of elements to return
     5115);
     5116/** Deletes a row from the database coresponding to an p2ProcessedImfile
    50935117 *
    50945118 *  Note that a 'where' search psMetadata is constructed from each object and
     
    50985122 */
    50995123
    5100 bool p2DoneImfileDeleteObject(
    5101     psDB            *dbh,               ///< Database handle
    5102     const p2DoneImfileRow *object    ///< Object to delete
     5124bool p2ProcessedImfileDeleteObject(
     5125    psDB            *dbh,               ///< Database handle
     5126    const p2ProcessedImfileRow *object    ///< Object to delete
    51035127);
    51045128/** Deletes up to limit rows from the database and returns the number of rows actually deleted.
     
    51105134 */
    51115135
    5112 long long p2DoneImfileDeleteRowObjects(
     5136long long p2ProcessedImfileDeleteRowObjects(
    51135137    psDB            *dbh,               ///< Database handle
    51145138    const psArray   *objects,           ///< Array of objects to delete
    51155139    unsigned long long limit            ///< Maximum number of elements to delete
    51165140);
    5117 /** Formats and prints an array of p2DoneImfileRow objects
     5141/** Formats and prints an array of p2ProcessedImfileRow objects
    51185142 *
    51195143 * When mdcf is set the formated output is in psMetadataConfig
     
    51235147 */
    51245148
    5125 bool p2DoneImfilePrintObjects(
     5149bool p2ProcessedImfilePrintObjects(
    51265150    FILE            *stream,            ///< a stream
    5127     psArray         *objects,           ///< An array of p2DoneImfileRow objects
     5151    psArray         *objects,           ///< An array of p2ProcessedImfileRow objects
    51285152    bool            mdcf                ///< format as mdconfig or simple
    51295153);
     
    51355159typedef struct {
    51365160    char            *exp_id;
    5137     char            *recipe;
    51385161    psS32           p2_version;
    51395162    psS32           p3_version;
     
    51475170p3PendingExpRow *p3PendingExpRowAlloc(
    51485171    const char      *exp_id,
    5149     const char      *recipe,
    51505172    psS32           p2_version,
    51515173    psS32           p3_version
     
    51805202    psDB            *dbh,               ///< Database handle
    51815203    const char      *exp_id,
    5182     const char      *recipe,
    51835204    psS32           p2_version,
    51845205    psS32           p3_version
     
    52045225    psDB            *dbh,               ///< Database handle
    52055226    char            **exp_id,
    5206     char            **recipe,
    52075227    psS32           *p2_version,
    52085228    psS32           *p3_version
Note: See TracChangeset for help on using the changeset viewer.