IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2008, 3:04:07 PM (18 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.31

File:
1 edited

Legend:

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

    r16616 r16731  
    39213921typedef struct {
    39223922    psS64           warp_id;
     3923    psS64           cam_id;
    39233924    char            *mode;
    39243925    char            *state;
     
    39293930    char            *end_stage;
    39303931    psTime*         registered;
     3932    bool            magiced;
    39313933} warpRunRow;
    39323934
     
    39383940warpRunRow *warpRunRowAlloc(
    39393941    psS64           warp_id,
     3942    psS64           cam_id,
    39403943    const char      *mode,
    39413944    const char      *state,
     
    39453948    const char      *tess_id,
    39463949    const char      *end_stage,
    3947     psTime*         registered
     3950    psTime*         registered,
     3951    bool            magiced
    39483952);
    39493953
     
    39763980    psDB            *dbh,               ///< Database handle
    39773981    psS64           warp_id,
     3982    psS64           cam_id,
    39783983    const char      *mode,
    39793984    const char      *state,
     
    39833988    const char      *tess_id,
    39843989    const char      *end_stage,
    3985     psTime*         registered
     3990    psTime*         registered,
     3991    bool            magiced
    39863992);
    39873993
     
    41314137    FILE            *stream,            ///< a stream
    41324138    warpRunRow *object,    ///< an warpRunRow object
    4133     bool            mdcf                ///< format as mdconfig or simple
    4134 );
    4135 /** warpInputExpRow data structure
    4136  *
    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 object
    4147  *
    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            magiced
    4155 );
    4156 
    4157 /** Creates a new warpInputExp table
    4158  *
    4159  * @return true on success
    4160  */
    4161 
    4162 bool warpInputExpCreateTable(
    4163     psDB            *dbh                ///< Database handle
    4164 );
    4165 
    4166 /** Deletes a warpInputExp table
    4167  *
    4168  * @return true on success
    4169  */
    4170 
    4171 bool warpInputExpDropTable(
    4172     psDB            *dbh                ///< Database handle
    4173 );
    4174 
    4175 /** Insert a single row into a table
    4176  *
    4177  * This function constructs and inserts a single row based on it's parameters.
    4178  *
    4179  * @return true on success
    4180  */
    4181 
    4182 bool warpInputExpInsert(
    4183     psDB            *dbh,               ///< Database handle
    4184     psS64           warp_id,
    4185     psS64           cam_id,
    4186     bool            magiced
    4187 );
    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 error
    4192  */
    4193 
    4194 long long warpInputExpDelete(
    4195     psDB            *dbh,               ///< Database handle
    4196     const psMetadata *where,            ///< Row match criteria
    4197     unsigned long long limit            ///< Maximum number of elements to delete
    4198 );
    4199 
    4200 /** Insert a single warpInputExpRow object into a table
    4201  *
    4202  * This function constructs and inserts a single row based on it's parameters.
    4203  *
    4204  * @return true on success
    4205  */
    4206 
    4207 bool warpInputExpInsertObject(
    4208     psDB            *dbh,               ///< Database handle
    4209     warpInputExpRow *object             ///< warpInputExpRow object
    4210 );
    4211 
    4212 /** Insert an array of warpInputExpRow object into a table
    4213  *
    4214  * This function constructs and inserts multiple rows based on it's parameters.
    4215  *
    4216  * @return true on success
    4217  */
    4218 
    4219 bool warpInputExpInsertObjects(
    4220     psDB            *dbh,               ///< Database handle
    4221     psArray         *objects            ///< array of warpInputExpRow objects
    4222 );
    4223 
    4224 /** Insert data from a binary FITS table warpInputExpRow into the database
    4225  *
    4226  * This function expects a psFits object with a FITS table as the first
    4227  * extension.  The table must have at least one row of data in it, that is of
    4228  * the appropriate format (number of columns and their type).  All other
    4229  * extensions are ignored.
    4230  *
    4231  * @return true on success
    4232  */
    4233 
    4234 bool warpInputExpInsertFits(
    4235     psDB            *dbh,               ///< Database handle
    4236     const psFits    *fits               ///< psFits object
    4237 );
    4238 
    4239 /** Selects up to limit from the database and returns them in a binary FITS table
    4240  *
    4241  * This function assumes an empty psFits object and will create a FITS table
    4242  * as the first extension.
    4243  *
    4244  *  See psDBSelectRows() for documentation on the format of where.
    4245  *
    4246  * @return true on success
    4247  */
    4248 
    4249 bool warpInputExpSelectRowsFits(
    4250     psDB            *dbh,               ///< Database handle
    4251     psFits          *fits,              ///< psFits object
    4252     const psMetadata *where,            ///< Row match criteria
    4253     unsigned long long limit            ///< Maximum number of elements to return
    4254 );
    4255 
    4256 /** Convert a warpInputExpRow into an equivalent psMetadata
    4257  *
    4258  * @return A psMetadata pointer or NULL on error
    4259  */
    4260 
    4261 psMetadata *warpInputExpMetadataFromObject(
    4262     const warpInputExpRow *object             ///< fooRow to convert into a psMetadata
    4263 );
    4264 
    4265 /** Convert a psMetadata into an equivalent fooRow
    4266  *
    4267  * @return A warpInputExpRow pointer or NULL on error
    4268  */
    4269 
    4270 warpInputExpRow *warpInputExpObjectFromMetadata(
    4271     psMetadata      *md                 ///< psMetadata to convert into a fooRow
    4272 );
    4273 /** Selects up to limit rows from the database and returns as warpInputExpRow objects in a psArray
    4274  *
    4275  *  See psDBSelectRows() for documentation on the format of where.
    4276  *
    4277  * @return A psArray pointer or NULL on error
    4278  */
    4279 
    4280 psArray *warpInputExpSelectRowObjects(
    4281     psDB            *dbh,               ///< Database handle
    4282     const psMetadata *where,            ///< Row match criteria
    4283     unsigned long long limit            ///< Maximum number of elements to return
    4284 );
    4285 /** Deletes a row from the database coresponding to an warpInputExp
    4286  *
    4287  *  Note that a 'where' search psMetadata is constructed from each object and
    4288  *  used to find rows to delete.
    4289  *
    4290  * @return A The number of rows removed or a negative value on error
    4291  */
    4292 
    4293 bool warpInputExpDeleteObject(
    4294     psDB            *dbh,               ///< Database handle
    4295     const warpInputExpRow *object    ///< Object to delete
    4296 );
    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 and
    4300  *  used to find rows to delete.
    4301  *
    4302  * @return A The number of rows removed or a negative value on error
    4303  */
    4304 
    4305 long long warpInputExpDeleteRowObjects(
    4306     psDB            *dbh,               ///< Database handle
    4307     const psArray   *objects,           ///< Array of objects to delete
    4308     unsigned long long limit            ///< Maximum number of elements to delete
    4309 );
    4310 /** Formats and prints an array of warpInputExpRow objects
    4311  *
    4312  * When mdcf is set the formated output is in psMetadataConfig
    4313  * format, otherwise it is in a simple tabular format.
    4314  *
    4315  * @return true on success
    4316  */
    4317 
    4318 bool warpInputExpPrintObjects(
    4319     FILE            *stream,            ///< a stream
    4320     psArray         *objects,           ///< An array of warpInputExpRow objects
    4321     bool            mdcf                ///< format as mdconfig or simple
    4322 );
    4323 /** Formats and prints an warpInputExpRow object
    4324  *
    4325  * When mdcf is set the formated output is in psMetadataConfig
    4326  * format, otherwise it is in a simple tabular format.
    4327  *
    4328  * @return true on success
    4329  */
    4330 
    4331 bool warpInputExpPrintObject(
    4332     FILE            *stream,            ///< a stream
    4333     warpInputExpRow *object,    ///< an warpInputExpRow object
    43344139    bool            mdcf                ///< format as mdconfig or simple
    43354140);
     
    1095910764    char            *label;
    1096010765    char            *stats;
     10766    char            *region;
    1096110767} flatcorrRunRow;
    1096210768
     
    1097310779    const char      *workdir,
    1097410780    const char      *label,
    10975     const char      *stats
     10781    const char      *stats,
     10782    const char      *region
    1097610783);
    1097710784
     
    1100910816    const char      *workdir,
    1101010817    const char      *label,
    11011     const char      *stats
     10818    const char      *stats,
     10819    const char      *region
    1101210820);
    1101310821
Note: See TracChangeset for help on using the changeset viewer.