IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2006, 11:25:59 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.52

File:
1 edited

Legend:

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

    r9705 r9783  
    2020/*
    2121 *
    22  * This file was generated by glueforge 0.29
     22 * This file was generated by glueforge 0.30
    2323 *
    2424 * Do NOT directly edit this file.
     
    20102010    psS32           p1_version;
    20112011    psS32           p2_version;
     2012    char            *label;
    20122013} p2PendingExpRow;
    20132014
     
    20212022    const char      *recipe,
    20222023    psS32           p1_version,
    2023     psS32           p2_version
     2024    psS32           p2_version,
     2025    const char      *label
    20242026);
    20252027
     
    20542056    const char      *recipe,
    20552057    psS32           p1_version,
    2056     psS32           p2_version
     2058    psS32           p2_version,
     2059    const char      *label
    20572060);
    20582061
     
    23972400    psS32           p1_version;
    23982401    psS32           p2_version;
     2402    char            *label;
    23992403} p2ProcessedExpRow;
    24002404
     
    24072411    const char      *exp_tag,
    24082412    psS32           p1_version,
    2409     psS32           p2_version
     2413    psS32           p2_version,
     2414    const char      *label
    24102415);
    24112416
     
    24392444    const char      *exp_tag,
    24402445    psS32           p1_version,
    2441     psS32           p2_version
     2446    psS32           p2_version,
     2447    const char      *label
    24422448);
    24432449
     
    25742580    FILE            *stream,            ///< a stream
    25752581    psArray         *objects,           ///< An array of p2ProcessedExpRow objects
     2582    bool            mdcf                ///< format as mdconfig or simple
     2583);
     2584/** p2MaskRow data structure
     2585 *
     2586 * Structure for representing a single row of p2Mask table data.
     2587 */
     2588
     2589typedef struct {
     2590    char            *label;
     2591} p2MaskRow;
     2592
     2593/** Creates a new p2MaskRow object
     2594 *
     2595 *  @return A new p2MaskRow object or NULL on failure.
     2596 */
     2597
     2598p2MaskRow *p2MaskRowAlloc(
     2599    const char      *label
     2600);
     2601
     2602/** Creates a new p2Mask table
     2603 *
     2604 * @return true on success
     2605 */
     2606
     2607bool p2MaskCreateTable(
     2608    psDB            *dbh                ///< Database handle
     2609);
     2610
     2611/** Deletes a p2Mask table
     2612 *
     2613 * @return true on success
     2614 */
     2615
     2616bool p2MaskDropTable(
     2617    psDB            *dbh                ///< Database handle
     2618);
     2619
     2620/** Insert a single row into a table
     2621 *
     2622 * This function constructs and inserts a single row based on it's parameters.
     2623 *
     2624 * @return true on success
     2625 */
     2626
     2627bool p2MaskInsert(
     2628    psDB            *dbh,               ///< Database handle
     2629    const char      *label
     2630);
     2631
     2632/** Deletes up to limit rows from the database and returns the number of rows actually deleted.
     2633 *
     2634 * @return A The number of rows removed or a negative value on error
     2635 */
     2636
     2637long long p2MaskDelete(
     2638    psDB            *dbh,               ///< Database handle
     2639    const psMetadata *where,            ///< Row match criteria
     2640    unsigned long long limit            ///< Maximum number of elements to delete
     2641);
     2642
     2643/** Insert a single p2MaskRow object into a table
     2644 *
     2645 * This function constructs and inserts a single row based on it's parameters.
     2646 *
     2647 * @return true on success
     2648 */
     2649
     2650bool p2MaskInsertObject(
     2651    psDB            *dbh,               ///< Database handle
     2652    p2MaskRow       *object             ///< p2MaskRow object
     2653);
     2654
     2655/** Insert an array of p2MaskRow object into a table
     2656 *
     2657 * This function constructs and inserts multiple rows based on it's parameters.
     2658 *
     2659 * @return true on success
     2660 */
     2661
     2662bool p2MaskInsertObjects(
     2663    psDB            *dbh,               ///< Database handle
     2664    psArray         *objects            ///< array of p2MaskRow objects
     2665);
     2666
     2667/** Insert data from a binary FITS table p2MaskRow into the database
     2668 *
     2669 * This function expects a psFits object with a FITS table as the first
     2670 * extension.  The table must have at least one row of data in it, that is of
     2671 * the appropriate format (number of columns and their type).  All other
     2672 * extensions are ignored.
     2673 *
     2674 * @return true on success
     2675 */
     2676
     2677bool p2MaskInsertFits(
     2678    psDB            *dbh,               ///< Database handle
     2679    const psFits    *fits               ///< psFits object
     2680);
     2681
     2682/** Selects up to limit from the database and returns them in a binary FITS table
     2683 *
     2684 * This function assumes an empty psFits object and will create a FITS table
     2685 * as the first extension.
     2686 *
     2687 *  See psDBSelectRows() for documentation on the format of where.
     2688 *
     2689 * @return true on success
     2690 */
     2691
     2692bool p2MaskSelectRowsFits(
     2693    psDB            *dbh,               ///< Database handle
     2694    psFits          *fits,              ///< psFits object
     2695    const psMetadata *where,            ///< Row match criteria
     2696    unsigned long long limit            ///< Maximum number of elements to return
     2697);
     2698
     2699/** Convert a p2MaskRow into an equivalent psMetadata
     2700 *
     2701 * @return A psMetadata pointer or NULL on error
     2702 */
     2703
     2704psMetadata *p2MaskMetadataFromObject(
     2705    const p2MaskRow *object             ///< fooRow to convert into a psMetadata
     2706);
     2707
     2708/** Convert a psMetadata into an equivalent fooRow
     2709 *
     2710 * @return A p2MaskRow pointer or NULL on error
     2711 */
     2712
     2713p2MaskRow *p2MaskObjectFromMetadata(
     2714    psMetadata      *md                 ///< psMetadata to convert into a fooRow
     2715);
     2716/** Selects up to limit rows from the database and returns as p2MaskRow objects in a psArray
     2717 *
     2718 *  See psDBSelectRows() for documentation on the format of where.
     2719 *
     2720 * @return A psArray pointer or NULL on error
     2721 */
     2722
     2723psArray *p2MaskSelectRowObjects(
     2724    psDB            *dbh,               ///< Database handle
     2725    const psMetadata *where,            ///< Row match criteria
     2726    unsigned long long limit            ///< Maximum number of elements to return
     2727);
     2728/** Deletes a row from the database coresponding to an p2Mask
     2729 *
     2730 *  Note that a 'where' search psMetadata is constructed from each object and
     2731 *  used to find rows to delete.
     2732 *
     2733 * @return A The number of rows removed or a negative value on error
     2734 */
     2735
     2736bool p2MaskDeleteObject(
     2737    psDB            *dbh,               ///< Database handle
     2738    const p2MaskRow *object    ///< Object to delete
     2739);
     2740/** Deletes up to limit rows from the database and returns the number of rows actually deleted.
     2741 *
     2742 *  Note that a 'where' search psMetadata is constructed from each object and
     2743 *  used to find rows to delete.
     2744 *
     2745 * @return A The number of rows removed or a negative value on error
     2746 */
     2747
     2748long long p2MaskDeleteRowObjects(
     2749    psDB            *dbh,               ///< Database handle
     2750    const psArray   *objects,           ///< Array of objects to delete
     2751    unsigned long long limit            ///< Maximum number of elements to delete
     2752);
     2753/** Formats and prints an array of p2MaskRow objects
     2754 *
     2755 * When mdcf is set the formated output is in psMetadataConfig
     2756 * format, otherwise it is in a simple tabular format.
     2757 *
     2758 * @return true on success
     2759 */
     2760
     2761bool p2MaskPrintObjects(
     2762    FILE            *stream,            ///< a stream
     2763    psArray         *objects,           ///< An array of p2MaskRow objects
    25762764    bool            mdcf                ///< format as mdconfig or simple
    25772765);
Note: See TracChangeset for help on using the changeset viewer.