Changeset 12026 for trunk/ippdb/src/ippdb.h
- Timestamp:
- Feb 23, 2007, 4:28:07 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/src/ippdb.h (modified) (269 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/src/ippdb.h
r11988 r12026 2504 2504 bool mdcf ///< format as mdconfig or simple 2505 2505 ); 2506 /** p1PendingExpRow data structure2507 * 2508 * Structure for representing a single row of p1PendingExp table data.2506 /** guidePendingExpRow data structure 2507 * 2508 * Structure for representing a single row of guidePendingExp table data. 2509 2509 */ 2510 2510 2511 2511 typedef struct { 2512 2512 char *exp_tag; 2513 psS32 p1_version;2513 psS32 guide_version; 2514 2514 char *recipe; 2515 } p1PendingExpRow;2516 2517 /** Creates a new p1PendingExpRow object2518 * 2519 * @return A new p1PendingExpRow object or NULL on failure.2520 */ 2521 2522 p1PendingExpRow *p1PendingExpRowAlloc(2515 } guidePendingExpRow; 2516 2517 /** Creates a new guidePendingExpRow object 2518 * 2519 * @return A new guidePendingExpRow object or NULL on failure. 2520 */ 2521 2522 guidePendingExpRow *guidePendingExpRowAlloc( 2523 2523 const char *exp_tag, 2524 psS32 p1_version,2524 psS32 guide_version, 2525 2525 const char *recipe 2526 2526 ); 2527 2527 2528 /** Creates a new p1PendingExp table2529 * 2530 * @return true on success 2531 */ 2532 2533 bool p1PendingExpCreateTable(2528 /** Creates a new guidePendingExp table 2529 * 2530 * @return true on success 2531 */ 2532 2533 bool guidePendingExpCreateTable( 2534 2534 psDB *dbh ///< Database handle 2535 2535 ); 2536 2536 2537 /** Deletes a p1PendingExp table2538 * 2539 * @return true on success 2540 */ 2541 2542 bool p1PendingExpDropTable(2537 /** Deletes a guidePendingExp table 2538 * 2539 * @return true on success 2540 */ 2541 2542 bool guidePendingExpDropTable( 2543 2543 psDB *dbh ///< Database handle 2544 2544 ); … … 2551 2551 */ 2552 2552 2553 bool p1PendingExpInsert(2553 bool guidePendingExpInsert( 2554 2554 psDB *dbh, ///< Database handle 2555 2555 const char *exp_tag, 2556 psS32 p1_version,2556 psS32 guide_version, 2557 2557 const char *recipe 2558 2558 ); … … 2563 2563 */ 2564 2564 2565 long long p1PendingExpDelete(2565 long long guidePendingExpDelete( 2566 2566 psDB *dbh, ///< Database handle 2567 2567 const psMetadata *where, ///< Row match criteria … … 2569 2569 ); 2570 2570 2571 /** Insert a single p1PendingExpRow object into a table2571 /** Insert a single guidePendingExpRow object into a table 2572 2572 * 2573 2573 * This function constructs and inserts a single row based on it's parameters. … … 2576 2576 */ 2577 2577 2578 bool p1PendingExpInsertObject(2579 psDB *dbh, ///< Database handle 2580 p1PendingExpRow *object ///< p1PendingExpRow object2581 ); 2582 2583 /** Insert an array of p1PendingExpRow object into a table2578 bool guidePendingExpInsertObject( 2579 psDB *dbh, ///< Database handle 2580 guidePendingExpRow *object ///< guidePendingExpRow object 2581 ); 2582 2583 /** Insert an array of guidePendingExpRow object into a table 2584 2584 * 2585 2585 * This function constructs and inserts multiple rows based on it's parameters. … … 2588 2588 */ 2589 2589 2590 bool p1PendingExpInsertObjects(2591 psDB *dbh, ///< Database handle 2592 psArray *objects ///< array of p1PendingExpRow objects2593 ); 2594 2595 /** Insert data from a binary FITS table p1PendingExpRow into the database2590 bool guidePendingExpInsertObjects( 2591 psDB *dbh, ///< Database handle 2592 psArray *objects ///< array of guidePendingExpRow objects 2593 ); 2594 2595 /** Insert data from a binary FITS table guidePendingExpRow into the database 2596 2596 * 2597 2597 * This function expects a psFits object with a FITS table as the first … … 2603 2603 */ 2604 2604 2605 bool p1PendingExpInsertFits(2605 bool guidePendingExpInsertFits( 2606 2606 psDB *dbh, ///< Database handle 2607 2607 const psFits *fits ///< psFits object … … 2618 2618 */ 2619 2619 2620 bool p1PendingExpSelectRowsFits(2620 bool guidePendingExpSelectRowsFits( 2621 2621 psDB *dbh, ///< Database handle 2622 2622 psFits *fits, ///< psFits object … … 2625 2625 ); 2626 2626 2627 /** Convert a p1PendingExpRow into an equivalent psMetadata2627 /** Convert a guidePendingExpRow into an equivalent psMetadata 2628 2628 * 2629 2629 * @return A psMetadata pointer or NULL on error 2630 2630 */ 2631 2631 2632 psMetadata * p1PendingExpMetadataFromObject(2633 const p1PendingExpRow *object ///< fooRow to convert into a psMetadata2632 psMetadata *guidePendingExpMetadataFromObject( 2633 const guidePendingExpRow *object ///< fooRow to convert into a psMetadata 2634 2634 ); 2635 2635 2636 2636 /** Convert a psMetadata into an equivalent fooRow 2637 2637 * 2638 * @return A p1PendingExpRow pointer or NULL on error2639 */ 2640 2641 p1PendingExpRow *p1PendingExpObjectFromMetadata(2638 * @return A guidePendingExpRow pointer or NULL on error 2639 */ 2640 2641 guidePendingExpRow *guidePendingExpObjectFromMetadata( 2642 2642 psMetadata *md ///< psMetadata to convert into a fooRow 2643 2643 ); 2644 /** Selects up to limit rows from the database and returns as p1PendingExpRow objects in a psArray2644 /** Selects up to limit rows from the database and returns as guidePendingExpRow objects in a psArray 2645 2645 * 2646 2646 * See psDBSelectRows() for documentation on the format of where. … … 2649 2649 */ 2650 2650 2651 psArray * p1PendingExpSelectRowObjects(2651 psArray *guidePendingExpSelectRowObjects( 2652 2652 psDB *dbh, ///< Database handle 2653 2653 const psMetadata *where, ///< Row match criteria 2654 2654 unsigned long long limit ///< Maximum number of elements to return 2655 2655 ); 2656 /** Deletes a row from the database coresponding to an p1PendingExp2656 /** Deletes a row from the database coresponding to an guidePendingExp 2657 2657 * 2658 2658 * Note that a 'where' search psMetadata is constructed from each object and … … 2662 2662 */ 2663 2663 2664 bool p1PendingExpDeleteObject(2665 psDB *dbh, ///< Database handle 2666 const p1PendingExpRow *object ///< Object to delete2664 bool guidePendingExpDeleteObject( 2665 psDB *dbh, ///< Database handle 2666 const guidePendingExpRow *object ///< Object to delete 2667 2667 ); 2668 2668 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 2674 2674 */ 2675 2675 2676 long long p1PendingExpDeleteRowObjects(2676 long long guidePendingExpDeleteRowObjects( 2677 2677 psDB *dbh, ///< Database handle 2678 2678 const psArray *objects, ///< Array of objects to delete 2679 2679 unsigned long long limit ///< Maximum number of elements to delete 2680 2680 ); 2681 /** Formats and prints an array of p1PendingExpRow objects2681 /** Formats and prints an array of guidePendingExpRow objects 2682 2682 * 2683 2683 * When mdcf is set the formated output is in psMetadataConfig … … 2687 2687 */ 2688 2688 2689 bool p1PendingExpPrintObjects(2689 bool guidePendingExpPrintObjects( 2690 2690 FILE *stream, ///< a stream 2691 psArray *objects, ///< An array of p1PendingExpRow objects2691 psArray *objects, ///< An array of guidePendingExpRow objects 2692 2692 bool mdcf ///< format as mdconfig or simple 2693 2693 ); 2694 /** Formats and prints an p1PendingExpRow object2694 /** Formats and prints an guidePendingExpRow object 2695 2695 * 2696 2696 * When mdcf is set the formated output is in psMetadataConfig … … 2700 2700 */ 2701 2701 2702 bool p1PendingExpPrintObject(2702 bool guidePendingExpPrintObject( 2703 2703 FILE *stream, ///< a stream 2704 p1PendingExpRow *object, ///< an p1PendingExpRow object2704 guidePendingExpRow *object, ///< an guidePendingExpRow object 2705 2705 bool mdcf ///< format as mdconfig or simple 2706 2706 ); 2707 /** p2PendingExpRow data structure2708 * 2709 * Structure for representing a single row of p2PendingExp table data.2707 /** chipPendingExpRow data structure 2708 * 2709 * Structure for representing a single row of chipPendingExp table data. 2710 2710 */ 2711 2711 2712 2712 typedef struct { 2713 2713 char *exp_tag; 2714 psS32 p2_version;2715 psS32 p1_version;2714 psS32 chip_version; 2715 psS32 guide_version; 2716 2716 char *label; 2717 2717 char *recipe; 2718 2718 char *expgroup; 2719 2719 char *dvodb; 2720 } p2PendingExpRow;2721 2722 /** Creates a new p2PendingExpRow object2723 * 2724 * @return A new p2PendingExpRow object or NULL on failure.2725 */ 2726 2727 p2PendingExpRow *p2PendingExpRowAlloc(2720 } chipPendingExpRow; 2721 2722 /** Creates a new chipPendingExpRow object 2723 * 2724 * @return A new chipPendingExpRow object or NULL on failure. 2725 */ 2726 2727 chipPendingExpRow *chipPendingExpRowAlloc( 2728 2728 const char *exp_tag, 2729 psS32 p2_version,2730 psS32 p1_version,2729 psS32 chip_version, 2730 psS32 guide_version, 2731 2731 const char *label, 2732 2732 const char *recipe, … … 2735 2735 ); 2736 2736 2737 /** Creates a new p2PendingExp table2738 * 2739 * @return true on success 2740 */ 2741 2742 bool p2PendingExpCreateTable(2737 /** Creates a new chipPendingExp table 2738 * 2739 * @return true on success 2740 */ 2741 2742 bool chipPendingExpCreateTable( 2743 2743 psDB *dbh ///< Database handle 2744 2744 ); 2745 2745 2746 /** Deletes a p2PendingExp table2747 * 2748 * @return true on success 2749 */ 2750 2751 bool p2PendingExpDropTable(2746 /** Deletes a chipPendingExp table 2747 * 2748 * @return true on success 2749 */ 2750 2751 bool chipPendingExpDropTable( 2752 2752 psDB *dbh ///< Database handle 2753 2753 ); … … 2760 2760 */ 2761 2761 2762 bool p2PendingExpInsert(2762 bool chipPendingExpInsert( 2763 2763 psDB *dbh, ///< Database handle 2764 2764 const char *exp_tag, 2765 psS32 p2_version,2766 psS32 p1_version,2765 psS32 chip_version, 2766 psS32 guide_version, 2767 2767 const char *label, 2768 2768 const char *recipe, … … 2776 2776 */ 2777 2777 2778 long long p2PendingExpDelete(2778 long long chipPendingExpDelete( 2779 2779 psDB *dbh, ///< Database handle 2780 2780 const psMetadata *where, ///< Row match criteria … … 2782 2782 ); 2783 2783 2784 /** Insert a single p2PendingExpRow object into a table2784 /** Insert a single chipPendingExpRow object into a table 2785 2785 * 2786 2786 * This function constructs and inserts a single row based on it's parameters. … … 2789 2789 */ 2790 2790 2791 bool p2PendingExpInsertObject(2792 psDB *dbh, ///< Database handle 2793 p2PendingExpRow *object ///< p2PendingExpRow object2794 ); 2795 2796 /** Insert an array of p2PendingExpRow object into a table2791 bool chipPendingExpInsertObject( 2792 psDB *dbh, ///< Database handle 2793 chipPendingExpRow *object ///< chipPendingExpRow object 2794 ); 2795 2796 /** Insert an array of chipPendingExpRow object into a table 2797 2797 * 2798 2798 * This function constructs and inserts multiple rows based on it's parameters. … … 2801 2801 */ 2802 2802 2803 bool p2PendingExpInsertObjects(2804 psDB *dbh, ///< Database handle 2805 psArray *objects ///< array of p2PendingExpRow objects2806 ); 2807 2808 /** Insert data from a binary FITS table p2PendingExpRow into the database2803 bool chipPendingExpInsertObjects( 2804 psDB *dbh, ///< Database handle 2805 psArray *objects ///< array of chipPendingExpRow objects 2806 ); 2807 2808 /** Insert data from a binary FITS table chipPendingExpRow into the database 2809 2809 * 2810 2810 * This function expects a psFits object with a FITS table as the first … … 2816 2816 */ 2817 2817 2818 bool p2PendingExpInsertFits(2818 bool chipPendingExpInsertFits( 2819 2819 psDB *dbh, ///< Database handle 2820 2820 const psFits *fits ///< psFits object … … 2831 2831 */ 2832 2832 2833 bool p2PendingExpSelectRowsFits(2833 bool chipPendingExpSelectRowsFits( 2834 2834 psDB *dbh, ///< Database handle 2835 2835 psFits *fits, ///< psFits object … … 2838 2838 ); 2839 2839 2840 /** Convert a p2PendingExpRow into an equivalent psMetadata2840 /** Convert a chipPendingExpRow into an equivalent psMetadata 2841 2841 * 2842 2842 * @return A psMetadata pointer or NULL on error 2843 2843 */ 2844 2844 2845 psMetadata * p2PendingExpMetadataFromObject(2846 const p2PendingExpRow *object ///< fooRow to convert into a psMetadata2845 psMetadata *chipPendingExpMetadataFromObject( 2846 const chipPendingExpRow *object ///< fooRow to convert into a psMetadata 2847 2847 ); 2848 2848 2849 2849 /** Convert a psMetadata into an equivalent fooRow 2850 2850 * 2851 * @return A p2PendingExpRow pointer or NULL on error2852 */ 2853 2854 p2PendingExpRow *p2PendingExpObjectFromMetadata(2851 * @return A chipPendingExpRow pointer or NULL on error 2852 */ 2853 2854 chipPendingExpRow *chipPendingExpObjectFromMetadata( 2855 2855 psMetadata *md ///< psMetadata to convert into a fooRow 2856 2856 ); 2857 /** Selects up to limit rows from the database and returns as p2PendingExpRow objects in a psArray2857 /** Selects up to limit rows from the database and returns as chipPendingExpRow objects in a psArray 2858 2858 * 2859 2859 * See psDBSelectRows() for documentation on the format of where. … … 2862 2862 */ 2863 2863 2864 psArray * p2PendingExpSelectRowObjects(2864 psArray *chipPendingExpSelectRowObjects( 2865 2865 psDB *dbh, ///< Database handle 2866 2866 const psMetadata *where, ///< Row match criteria 2867 2867 unsigned long long limit ///< Maximum number of elements to return 2868 2868 ); 2869 /** Deletes a row from the database coresponding to an p2PendingExp2869 /** Deletes a row from the database coresponding to an chipPendingExp 2870 2870 * 2871 2871 * Note that a 'where' search psMetadata is constructed from each object and … … 2875 2875 */ 2876 2876 2877 bool p2PendingExpDeleteObject(2878 psDB *dbh, ///< Database handle 2879 const p2PendingExpRow *object ///< Object to delete2877 bool chipPendingExpDeleteObject( 2878 psDB *dbh, ///< Database handle 2879 const chipPendingExpRow *object ///< Object to delete 2880 2880 ); 2881 2881 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 2887 2887 */ 2888 2888 2889 long long p2PendingExpDeleteRowObjects(2889 long long chipPendingExpDeleteRowObjects( 2890 2890 psDB *dbh, ///< Database handle 2891 2891 const psArray *objects, ///< Array of objects to delete 2892 2892 unsigned long long limit ///< Maximum number of elements to delete 2893 2893 ); 2894 /** Formats and prints an array of p2PendingExpRow objects2894 /** Formats and prints an array of chipPendingExpRow objects 2895 2895 * 2896 2896 * When mdcf is set the formated output is in psMetadataConfig … … 2900 2900 */ 2901 2901 2902 bool p2PendingExpPrintObjects(2902 bool chipPendingExpPrintObjects( 2903 2903 FILE *stream, ///< a stream 2904 psArray *objects, ///< An array of p2PendingExpRow objects2904 psArray *objects, ///< An array of chipPendingExpRow objects 2905 2905 bool mdcf ///< format as mdconfig or simple 2906 2906 ); 2907 /** Formats and prints an p2PendingExpRow object2907 /** Formats and prints an chipPendingExpRow object 2908 2908 * 2909 2909 * When mdcf is set the formated output is in psMetadataConfig … … 2913 2913 */ 2914 2914 2915 bool p2PendingExpPrintObject(2915 bool chipPendingExpPrintObject( 2916 2916 FILE *stream, ///< a stream 2917 p2PendingExpRow *object, ///< an p2PendingExpRow object2917 chipPendingExpRow *object, ///< an chipPendingExpRow object 2918 2918 bool mdcf ///< format as mdconfig or simple 2919 2919 ); 2920 /** p2PendingImfileRow data structure2921 * 2922 * Structure for representing a single row of p2PendingImfile table data.2920 /** chipPendingImfileRow data structure 2921 * 2922 * Structure for representing a single row of chipPendingImfile table data. 2923 2923 */ 2924 2924 2925 2925 typedef struct { 2926 2926 char *exp_tag; 2927 psS32 p2_version;2928 psS32 p1_version;2927 psS32 chip_version; 2928 psS32 guide_version; 2929 2929 char *class_id; 2930 2930 char *recipe; 2931 2931 char *uri; 2932 } p2PendingImfileRow;2933 2934 /** Creates a new p2PendingImfileRow object2935 * 2936 * @return A new p2PendingImfileRow object or NULL on failure.2937 */ 2938 2939 p2PendingImfileRow *p2PendingImfileRowAlloc(2932 } chipPendingImfileRow; 2933 2934 /** Creates a new chipPendingImfileRow object 2935 * 2936 * @return A new chipPendingImfileRow object or NULL on failure. 2937 */ 2938 2939 chipPendingImfileRow *chipPendingImfileRowAlloc( 2940 2940 const char *exp_tag, 2941 psS32 p2_version,2942 psS32 p1_version,2941 psS32 chip_version, 2942 psS32 guide_version, 2943 2943 const char *class_id, 2944 2944 const char *recipe, … … 2946 2946 ); 2947 2947 2948 /** Creates a new p2PendingImfile table2949 * 2950 * @return true on success 2951 */ 2952 2953 bool p2PendingImfileCreateTable(2948 /** Creates a new chipPendingImfile table 2949 * 2950 * @return true on success 2951 */ 2952 2953 bool chipPendingImfileCreateTable( 2954 2954 psDB *dbh ///< Database handle 2955 2955 ); 2956 2956 2957 /** Deletes a p2PendingImfile table2958 * 2959 * @return true on success 2960 */ 2961 2962 bool p2PendingImfileDropTable(2957 /** Deletes a chipPendingImfile table 2958 * 2959 * @return true on success 2960 */ 2961 2962 bool chipPendingImfileDropTable( 2963 2963 psDB *dbh ///< Database handle 2964 2964 ); … … 2971 2971 */ 2972 2972 2973 bool p2PendingImfileInsert(2973 bool chipPendingImfileInsert( 2974 2974 psDB *dbh, ///< Database handle 2975 2975 const char *exp_tag, 2976 psS32 p2_version,2977 psS32 p1_version,2976 psS32 chip_version, 2977 psS32 guide_version, 2978 2978 const char *class_id, 2979 2979 const char *recipe, … … 2986 2986 */ 2987 2987 2988 long long p2PendingImfileDelete(2988 long long chipPendingImfileDelete( 2989 2989 psDB *dbh, ///< Database handle 2990 2990 const psMetadata *where, ///< Row match criteria … … 2992 2992 ); 2993 2993 2994 /** Insert a single p2PendingImfileRow object into a table2994 /** Insert a single chipPendingImfileRow object into a table 2995 2995 * 2996 2996 * This function constructs and inserts a single row based on it's parameters. … … 2999 2999 */ 3000 3000 3001 bool p2PendingImfileInsertObject(3002 psDB *dbh, ///< Database handle 3003 p2PendingImfileRow *object ///< p2PendingImfileRow object3004 ); 3005 3006 /** Insert an array of p2PendingImfileRow object into a table3001 bool chipPendingImfileInsertObject( 3002 psDB *dbh, ///< Database handle 3003 chipPendingImfileRow *object ///< chipPendingImfileRow object 3004 ); 3005 3006 /** Insert an array of chipPendingImfileRow object into a table 3007 3007 * 3008 3008 * This function constructs and inserts multiple rows based on it's parameters. … … 3011 3011 */ 3012 3012 3013 bool p2PendingImfileInsertObjects(3014 psDB *dbh, ///< Database handle 3015 psArray *objects ///< array of p2PendingImfileRow objects3016 ); 3017 3018 /** Insert data from a binary FITS table p2PendingImfileRow into the database3013 bool chipPendingImfileInsertObjects( 3014 psDB *dbh, ///< Database handle 3015 psArray *objects ///< array of chipPendingImfileRow objects 3016 ); 3017 3018 /** Insert data from a binary FITS table chipPendingImfileRow into the database 3019 3019 * 3020 3020 * This function expects a psFits object with a FITS table as the first … … 3026 3026 */ 3027 3027 3028 bool p2PendingImfileInsertFits(3028 bool chipPendingImfileInsertFits( 3029 3029 psDB *dbh, ///< Database handle 3030 3030 const psFits *fits ///< psFits object … … 3041 3041 */ 3042 3042 3043 bool p2PendingImfileSelectRowsFits(3043 bool chipPendingImfileSelectRowsFits( 3044 3044 psDB *dbh, ///< Database handle 3045 3045 psFits *fits, ///< psFits object … … 3048 3048 ); 3049 3049 3050 /** Convert a p2PendingImfileRow into an equivalent psMetadata3050 /** Convert a chipPendingImfileRow into an equivalent psMetadata 3051 3051 * 3052 3052 * @return A psMetadata pointer or NULL on error 3053 3053 */ 3054 3054 3055 psMetadata * p2PendingImfileMetadataFromObject(3056 const p2PendingImfileRow *object ///< fooRow to convert into a psMetadata3055 psMetadata *chipPendingImfileMetadataFromObject( 3056 const chipPendingImfileRow *object ///< fooRow to convert into a psMetadata 3057 3057 ); 3058 3058 3059 3059 /** Convert a psMetadata into an equivalent fooRow 3060 3060 * 3061 * @return A p2PendingImfileRow pointer or NULL on error3062 */ 3063 3064 p2PendingImfileRow *p2PendingImfileObjectFromMetadata(3061 * @return A chipPendingImfileRow pointer or NULL on error 3062 */ 3063 3064 chipPendingImfileRow *chipPendingImfileObjectFromMetadata( 3065 3065 psMetadata *md ///< psMetadata to convert into a fooRow 3066 3066 ); 3067 /** Selects up to limit rows from the database and returns as p2PendingImfileRow objects in a psArray3067 /** Selects up to limit rows from the database and returns as chipPendingImfileRow objects in a psArray 3068 3068 * 3069 3069 * See psDBSelectRows() for documentation on the format of where. … … 3072 3072 */ 3073 3073 3074 psArray * p2PendingImfileSelectRowObjects(3074 psArray *chipPendingImfileSelectRowObjects( 3075 3075 psDB *dbh, ///< Database handle 3076 3076 const psMetadata *where, ///< Row match criteria 3077 3077 unsigned long long limit ///< Maximum number of elements to return 3078 3078 ); 3079 /** Deletes a row from the database coresponding to an p2PendingImfile3079 /** Deletes a row from the database coresponding to an chipPendingImfile 3080 3080 * 3081 3081 * Note that a 'where' search psMetadata is constructed from each object and … … 3085 3085 */ 3086 3086 3087 bool p2PendingImfileDeleteObject(3088 psDB *dbh, ///< Database handle 3089 const p2PendingImfileRow *object ///< Object to delete3087 bool chipPendingImfileDeleteObject( 3088 psDB *dbh, ///< Database handle 3089 const chipPendingImfileRow *object ///< Object to delete 3090 3090 ); 3091 3091 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 3097 3097 */ 3098 3098 3099 long long p2PendingImfileDeleteRowObjects(3099 long long chipPendingImfileDeleteRowObjects( 3100 3100 psDB *dbh, ///< Database handle 3101 3101 const psArray *objects, ///< Array of objects to delete 3102 3102 unsigned long long limit ///< Maximum number of elements to delete 3103 3103 ); 3104 /** Formats and prints an array of p2PendingImfileRow objects3104 /** Formats and prints an array of chipPendingImfileRow objects 3105 3105 * 3106 3106 * When mdcf is set the formated output is in psMetadataConfig … … 3110 3110 */ 3111 3111 3112 bool p2PendingImfilePrintObjects(3112 bool chipPendingImfilePrintObjects( 3113 3113 FILE *stream, ///< a stream 3114 psArray *objects, ///< An array of p2PendingImfileRow objects3114 psArray *objects, ///< An array of chipPendingImfileRow objects 3115 3115 bool mdcf ///< format as mdconfig or simple 3116 3116 ); 3117 /** Formats and prints an p2PendingImfileRow object3117 /** Formats and prints an chipPendingImfileRow object 3118 3118 * 3119 3119 * When mdcf is set the formated output is in psMetadataConfig … … 3123 3123 */ 3124 3124 3125 bool p2PendingImfilePrintObject(3125 bool chipPendingImfilePrintObject( 3126 3126 FILE *stream, ///< a stream 3127 p2PendingImfileRow *object, ///< an p2PendingImfileRow object3127 chipPendingImfileRow *object, ///< an chipPendingImfileRow object 3128 3128 bool mdcf ///< format as mdconfig or simple 3129 3129 ); 3130 /** p2ProcessedExpRow data structure3131 * 3132 * Structure for representing a single row of p2ProcessedExp table data.3130 /** chipProcessedExpRow data structure 3131 * 3132 * Structure for representing a single row of chipProcessedExp table data. 3133 3133 */ 3134 3134 3135 3135 typedef struct { 3136 3136 char *exp_tag; 3137 psS32 p2_version;3138 psS32 p1_version;3137 psS32 chip_version; 3138 psS32 guide_version; 3139 3139 char *label; 3140 3140 char *expgroup; 3141 3141 char *dvodb; 3142 } p2ProcessedExpRow;3143 3144 /** Creates a new p2ProcessedExpRow object3145 * 3146 * @return A new p2ProcessedExpRow object or NULL on failure.3147 */ 3148 3149 p2ProcessedExpRow *p2ProcessedExpRowAlloc(3142 } chipProcessedExpRow; 3143 3144 /** Creates a new chipProcessedExpRow object 3145 * 3146 * @return A new chipProcessedExpRow object or NULL on failure. 3147 */ 3148 3149 chipProcessedExpRow *chipProcessedExpRowAlloc( 3150 3150 const char *exp_tag, 3151 psS32 p2_version,3152 psS32 p1_version,3151 psS32 chip_version, 3152 psS32 guide_version, 3153 3153 const char *label, 3154 3154 const char *expgroup, … … 3156 3156 ); 3157 3157 3158 /** Creates a new p2ProcessedExp table3159 * 3160 * @return true on success 3161 */ 3162 3163 bool p2ProcessedExpCreateTable(3158 /** Creates a new chipProcessedExp table 3159 * 3160 * @return true on success 3161 */ 3162 3163 bool chipProcessedExpCreateTable( 3164 3164 psDB *dbh ///< Database handle 3165 3165 ); 3166 3166 3167 /** Deletes a p2ProcessedExp table3168 * 3169 * @return true on success 3170 */ 3171 3172 bool p2ProcessedExpDropTable(3167 /** Deletes a chipProcessedExp table 3168 * 3169 * @return true on success 3170 */ 3171 3172 bool chipProcessedExpDropTable( 3173 3173 psDB *dbh ///< Database handle 3174 3174 ); … … 3181 3181 */ 3182 3182 3183 bool p2ProcessedExpInsert(3183 bool chipProcessedExpInsert( 3184 3184 psDB *dbh, ///< Database handle 3185 3185 const char *exp_tag, 3186 psS32 p2_version,3187 psS32 p1_version,3186 psS32 chip_version, 3187 psS32 guide_version, 3188 3188 const char *label, 3189 3189 const char *expgroup, … … 3196 3196 */ 3197 3197 3198 long long p2ProcessedExpDelete(3198 long long chipProcessedExpDelete( 3199 3199 psDB *dbh, ///< Database handle 3200 3200 const psMetadata *where, ///< Row match criteria … … 3202 3202 ); 3203 3203 3204 /** Insert a single p2ProcessedExpRow object into a table3204 /** Insert a single chipProcessedExpRow object into a table 3205 3205 * 3206 3206 * This function constructs and inserts a single row based on it's parameters. … … 3209 3209 */ 3210 3210 3211 bool p2ProcessedExpInsertObject(3212 psDB *dbh, ///< Database handle 3213 p2ProcessedExpRow *object ///< p2ProcessedExpRow object3214 ); 3215 3216 /** Insert an array of p2ProcessedExpRow object into a table3211 bool chipProcessedExpInsertObject( 3212 psDB *dbh, ///< Database handle 3213 chipProcessedExpRow *object ///< chipProcessedExpRow object 3214 ); 3215 3216 /** Insert an array of chipProcessedExpRow object into a table 3217 3217 * 3218 3218 * This function constructs and inserts multiple rows based on it's parameters. … … 3221 3221 */ 3222 3222 3223 bool p2ProcessedExpInsertObjects(3224 psDB *dbh, ///< Database handle 3225 psArray *objects ///< array of p2ProcessedExpRow objects3226 ); 3227 3228 /** Insert data from a binary FITS table p2ProcessedExpRow into the database3223 bool chipProcessedExpInsertObjects( 3224 psDB *dbh, ///< Database handle 3225 psArray *objects ///< array of chipProcessedExpRow objects 3226 ); 3227 3228 /** Insert data from a binary FITS table chipProcessedExpRow into the database 3229 3229 * 3230 3230 * This function expects a psFits object with a FITS table as the first … … 3236 3236 */ 3237 3237 3238 bool p2ProcessedExpInsertFits(3238 bool chipProcessedExpInsertFits( 3239 3239 psDB *dbh, ///< Database handle 3240 3240 const psFits *fits ///< psFits object … … 3251 3251 */ 3252 3252 3253 bool p2ProcessedExpSelectRowsFits(3253 bool chipProcessedExpSelectRowsFits( 3254 3254 psDB *dbh, ///< Database handle 3255 3255 psFits *fits, ///< psFits object … … 3258 3258 ); 3259 3259 3260 /** Convert a p2ProcessedExpRow into an equivalent psMetadata3260 /** Convert a chipProcessedExpRow into an equivalent psMetadata 3261 3261 * 3262 3262 * @return A psMetadata pointer or NULL on error 3263 3263 */ 3264 3264 3265 psMetadata * p2ProcessedExpMetadataFromObject(3266 const p2ProcessedExpRow *object ///< fooRow to convert into a psMetadata3265 psMetadata *chipProcessedExpMetadataFromObject( 3266 const chipProcessedExpRow *object ///< fooRow to convert into a psMetadata 3267 3267 ); 3268 3268 3269 3269 /** Convert a psMetadata into an equivalent fooRow 3270 3270 * 3271 * @return A p2ProcessedExpRow pointer or NULL on error3272 */ 3273 3274 p2ProcessedExpRow *p2ProcessedExpObjectFromMetadata(3271 * @return A chipProcessedExpRow pointer or NULL on error 3272 */ 3273 3274 chipProcessedExpRow *chipProcessedExpObjectFromMetadata( 3275 3275 psMetadata *md ///< psMetadata to convert into a fooRow 3276 3276 ); 3277 /** Selects up to limit rows from the database and returns as p2ProcessedExpRow objects in a psArray3277 /** Selects up to limit rows from the database and returns as chipProcessedExpRow objects in a psArray 3278 3278 * 3279 3279 * See psDBSelectRows() for documentation on the format of where. … … 3282 3282 */ 3283 3283 3284 psArray * p2ProcessedExpSelectRowObjects(3284 psArray *chipProcessedExpSelectRowObjects( 3285 3285 psDB *dbh, ///< Database handle 3286 3286 const psMetadata *where, ///< Row match criteria 3287 3287 unsigned long long limit ///< Maximum number of elements to return 3288 3288 ); 3289 /** Deletes a row from the database coresponding to an p2ProcessedExp3289 /** Deletes a row from the database coresponding to an chipProcessedExp 3290 3290 * 3291 3291 * Note that a 'where' search psMetadata is constructed from each object and … … 3295 3295 */ 3296 3296 3297 bool p2ProcessedExpDeleteObject(3298 psDB *dbh, ///< Database handle 3299 const p2ProcessedExpRow *object ///< Object to delete3297 bool chipProcessedExpDeleteObject( 3298 psDB *dbh, ///< Database handle 3299 const chipProcessedExpRow *object ///< Object to delete 3300 3300 ); 3301 3301 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 3307 3307 */ 3308 3308 3309 long long p2ProcessedExpDeleteRowObjects(3309 long long chipProcessedExpDeleteRowObjects( 3310 3310 psDB *dbh, ///< Database handle 3311 3311 const psArray *objects, ///< Array of objects to delete 3312 3312 unsigned long long limit ///< Maximum number of elements to delete 3313 3313 ); 3314 /** Formats and prints an array of p2ProcessedExpRow objects3314 /** Formats and prints an array of chipProcessedExpRow objects 3315 3315 * 3316 3316 * When mdcf is set the formated output is in psMetadataConfig … … 3320 3320 */ 3321 3321 3322 bool p2ProcessedExpPrintObjects(3322 bool chipProcessedExpPrintObjects( 3323 3323 FILE *stream, ///< a stream 3324 psArray *objects, ///< An array of p2ProcessedExpRow objects3324 psArray *objects, ///< An array of chipProcessedExpRow objects 3325 3325 bool mdcf ///< format as mdconfig or simple 3326 3326 ); 3327 /** Formats and prints an p2ProcessedExpRow object3327 /** Formats and prints an chipProcessedExpRow object 3328 3328 * 3329 3329 * When mdcf is set the formated output is in psMetadataConfig … … 3333 3333 */ 3334 3334 3335 bool p2ProcessedExpPrintObject(3335 bool chipProcessedExpPrintObject( 3336 3336 FILE *stream, ///< a stream 3337 p2ProcessedExpRow *object, ///< an p2ProcessedExpRow object3337 chipProcessedExpRow *object, ///< an chipProcessedExpRow object 3338 3338 bool mdcf ///< format as mdconfig or simple 3339 3339 ); 3340 /** p2MaskRow data structure3341 * 3342 * Structure for representing a single row of p2Mask table data.3340 /** chipMaskRow data structure 3341 * 3342 * Structure for representing a single row of chipMask table data. 3343 3343 */ 3344 3344 3345 3345 typedef struct { 3346 3346 char *label; 3347 } p2MaskRow;3348 3349 /** Creates a new p2MaskRow object3350 * 3351 * @return A new p2MaskRow object or NULL on failure.3352 */ 3353 3354 p2MaskRow *p2MaskRowAlloc(3347 } chipMaskRow; 3348 3349 /** Creates a new chipMaskRow object 3350 * 3351 * @return A new chipMaskRow object or NULL on failure. 3352 */ 3353 3354 chipMaskRow *chipMaskRowAlloc( 3355 3355 const char *label 3356 3356 ); 3357 3357 3358 /** Creates a new p2Mask table3359 * 3360 * @return true on success 3361 */ 3362 3363 bool p2MaskCreateTable(3358 /** Creates a new chipMask table 3359 * 3360 * @return true on success 3361 */ 3362 3363 bool chipMaskCreateTable( 3364 3364 psDB *dbh ///< Database handle 3365 3365 ); 3366 3366 3367 /** Deletes a p2Mask table3368 * 3369 * @return true on success 3370 */ 3371 3372 bool p2MaskDropTable(3367 /** Deletes a chipMask table 3368 * 3369 * @return true on success 3370 */ 3371 3372 bool chipMaskDropTable( 3373 3373 psDB *dbh ///< Database handle 3374 3374 ); … … 3381 3381 */ 3382 3382 3383 bool p2MaskInsert(3383 bool chipMaskInsert( 3384 3384 psDB *dbh, ///< Database handle 3385 3385 const char *label … … 3391 3391 */ 3392 3392 3393 long long p2MaskDelete(3393 long long chipMaskDelete( 3394 3394 psDB *dbh, ///< Database handle 3395 3395 const psMetadata *where, ///< Row match criteria … … 3397 3397 ); 3398 3398 3399 /** Insert a single p2MaskRow object into a table3399 /** Insert a single chipMaskRow object into a table 3400 3400 * 3401 3401 * This function constructs and inserts a single row based on it's parameters. … … 3404 3404 */ 3405 3405 3406 bool p2MaskInsertObject(3407 psDB *dbh, ///< Database handle 3408 p2MaskRow *object ///< p2MaskRow object3409 ); 3410 3411 /** Insert an array of p2MaskRow object into a table3406 bool chipMaskInsertObject( 3407 psDB *dbh, ///< Database handle 3408 chipMaskRow *object ///< chipMaskRow object 3409 ); 3410 3411 /** Insert an array of chipMaskRow object into a table 3412 3412 * 3413 3413 * This function constructs and inserts multiple rows based on it's parameters. … … 3416 3416 */ 3417 3417 3418 bool p2MaskInsertObjects(3419 psDB *dbh, ///< Database handle 3420 psArray *objects ///< array of p2MaskRow objects3421 ); 3422 3423 /** Insert data from a binary FITS table p2MaskRow into the database3418 bool chipMaskInsertObjects( 3419 psDB *dbh, ///< Database handle 3420 psArray *objects ///< array of chipMaskRow objects 3421 ); 3422 3423 /** Insert data from a binary FITS table chipMaskRow into the database 3424 3424 * 3425 3425 * This function expects a psFits object with a FITS table as the first … … 3431 3431 */ 3432 3432 3433 bool p2MaskInsertFits(3433 bool chipMaskInsertFits( 3434 3434 psDB *dbh, ///< Database handle 3435 3435 const psFits *fits ///< psFits object … … 3446 3446 */ 3447 3447 3448 bool p2MaskSelectRowsFits(3448 bool chipMaskSelectRowsFits( 3449 3449 psDB *dbh, ///< Database handle 3450 3450 psFits *fits, ///< psFits object … … 3453 3453 ); 3454 3454 3455 /** Convert a p2MaskRow into an equivalent psMetadata3455 /** Convert a chipMaskRow into an equivalent psMetadata 3456 3456 * 3457 3457 * @return A psMetadata pointer or NULL on error 3458 3458 */ 3459 3459 3460 psMetadata * p2MaskMetadataFromObject(3461 const p2MaskRow *object ///< fooRow to convert into a psMetadata3460 psMetadata *chipMaskMetadataFromObject( 3461 const chipMaskRow *object ///< fooRow to convert into a psMetadata 3462 3462 ); 3463 3463 3464 3464 /** Convert a psMetadata into an equivalent fooRow 3465 3465 * 3466 * @return A p2MaskRow pointer or NULL on error3467 */ 3468 3469 p2MaskRow *p2MaskObjectFromMetadata(3466 * @return A chipMaskRow pointer or NULL on error 3467 */ 3468 3469 chipMaskRow *chipMaskObjectFromMetadata( 3470 3470 psMetadata *md ///< psMetadata to convert into a fooRow 3471 3471 ); 3472 /** Selects up to limit rows from the database and returns as p2MaskRow objects in a psArray3472 /** Selects up to limit rows from the database and returns as chipMaskRow objects in a psArray 3473 3473 * 3474 3474 * See psDBSelectRows() for documentation on the format of where. … … 3477 3477 */ 3478 3478 3479 psArray * p2MaskSelectRowObjects(3479 psArray *chipMaskSelectRowObjects( 3480 3480 psDB *dbh, ///< Database handle 3481 3481 const psMetadata *where, ///< Row match criteria 3482 3482 unsigned long long limit ///< Maximum number of elements to return 3483 3483 ); 3484 /** Deletes a row from the database coresponding to an p2Mask3484 /** Deletes a row from the database coresponding to an chipMask 3485 3485 * 3486 3486 * Note that a 'where' search psMetadata is constructed from each object and … … 3490 3490 */ 3491 3491 3492 bool p2MaskDeleteObject(3493 psDB *dbh, ///< Database handle 3494 const p2MaskRow *object ///< Object to delete3492 bool chipMaskDeleteObject( 3493 psDB *dbh, ///< Database handle 3494 const chipMaskRow *object ///< Object to delete 3495 3495 ); 3496 3496 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 3502 3502 */ 3503 3503 3504 long long p2MaskDeleteRowObjects(3504 long long chipMaskDeleteRowObjects( 3505 3505 psDB *dbh, ///< Database handle 3506 3506 const psArray *objects, ///< Array of objects to delete 3507 3507 unsigned long long limit ///< Maximum number of elements to delete 3508 3508 ); 3509 /** Formats and prints an array of p2MaskRow objects3509 /** Formats and prints an array of chipMaskRow objects 3510 3510 * 3511 3511 * When mdcf is set the formated output is in psMetadataConfig … … 3515 3515 */ 3516 3516 3517 bool p2MaskPrintObjects(3517 bool chipMaskPrintObjects( 3518 3518 FILE *stream, ///< a stream 3519 psArray *objects, ///< An array of p2MaskRow objects3519 psArray *objects, ///< An array of chipMaskRow objects 3520 3520 bool mdcf ///< format as mdconfig or simple 3521 3521 ); 3522 /** Formats and prints an p2MaskRow object3522 /** Formats and prints an chipMaskRow object 3523 3523 * 3524 3524 * When mdcf is set the formated output is in psMetadataConfig … … 3528 3528 */ 3529 3529 3530 bool p2MaskPrintObject(3530 bool chipMaskPrintObject( 3531 3531 FILE *stream, ///< a stream 3532 p2MaskRow *object, ///< an p2MaskRow object3532 chipMaskRow *object, ///< an chipMaskRow object 3533 3533 bool mdcf ///< format as mdconfig or simple 3534 3534 ); 3535 /** p2ProcessedImfileRow data structure3536 * 3537 * Structure for representing a single row of p2ProcessedImfile table data.3535 /** chipProcessedImfileRow data structure 3536 * 3537 * Structure for representing a single row of chipProcessedImfile table data. 3538 3538 */ 3539 3539 3540 3540 typedef struct { 3541 3541 char *exp_tag; 3542 psS32 p2_version;3543 psS32 p1_version;3542 psS32 chip_version; 3543 psS32 guide_version; 3544 3544 char *class_id; 3545 3545 char *recipe; … … 3551 3551 char *b2_uri; 3552 3552 psS16 fault; 3553 } p2ProcessedImfileRow;3554 3555 /** Creates a new p2ProcessedImfileRow object3556 * 3557 * @return A new p2ProcessedImfileRow object or NULL on failure.3558 */ 3559 3560 p2ProcessedImfileRow *p2ProcessedImfileRowAlloc(3553 } chipProcessedImfileRow; 3554 3555 /** Creates a new chipProcessedImfileRow object 3556 * 3557 * @return A new chipProcessedImfileRow object or NULL on failure. 3558 */ 3559 3560 chipProcessedImfileRow *chipProcessedImfileRowAlloc( 3561 3561 const char *exp_tag, 3562 psS32 p2_version,3563 psS32 p1_version,3562 psS32 chip_version, 3563 psS32 guide_version, 3564 3564 const char *class_id, 3565 3565 const char *recipe, … … 3573 3573 ); 3574 3574 3575 /** Creates a new p2ProcessedImfile table3576 * 3577 * @return true on success 3578 */ 3579 3580 bool p2ProcessedImfileCreateTable(3575 /** Creates a new chipProcessedImfile table 3576 * 3577 * @return true on success 3578 */ 3579 3580 bool chipProcessedImfileCreateTable( 3581 3581 psDB *dbh ///< Database handle 3582 3582 ); 3583 3583 3584 /** Deletes a p2ProcessedImfile table3585 * 3586 * @return true on success 3587 */ 3588 3589 bool p2ProcessedImfileDropTable(3584 /** Deletes a chipProcessedImfile table 3585 * 3586 * @return true on success 3587 */ 3588 3589 bool chipProcessedImfileDropTable( 3590 3590 psDB *dbh ///< Database handle 3591 3591 ); … … 3598 3598 */ 3599 3599 3600 bool p2ProcessedImfileInsert(3600 bool chipProcessedImfileInsert( 3601 3601 psDB *dbh, ///< Database handle 3602 3602 const char *exp_tag, 3603 psS32 p2_version,3604 psS32 p1_version,3603 psS32 chip_version, 3604 psS32 guide_version, 3605 3605 const char *class_id, 3606 3606 const char *recipe, … … 3619 3619 */ 3620 3620 3621 long long p2ProcessedImfileDelete(3621 long long chipProcessedImfileDelete( 3622 3622 psDB *dbh, ///< Database handle 3623 3623 const psMetadata *where, ///< Row match criteria … … 3625 3625 ); 3626 3626 3627 /** Insert a single p2ProcessedImfileRow object into a table3627 /** Insert a single chipProcessedImfileRow object into a table 3628 3628 * 3629 3629 * This function constructs and inserts a single row based on it's parameters. … … 3632 3632 */ 3633 3633 3634 bool p2ProcessedImfileInsertObject(3635 psDB *dbh, ///< Database handle 3636 p2ProcessedImfileRow *object ///< p2ProcessedImfileRow object3637 ); 3638 3639 /** Insert an array of p2ProcessedImfileRow object into a table3634 bool chipProcessedImfileInsertObject( 3635 psDB *dbh, ///< Database handle 3636 chipProcessedImfileRow *object ///< chipProcessedImfileRow object 3637 ); 3638 3639 /** Insert an array of chipProcessedImfileRow object into a table 3640 3640 * 3641 3641 * This function constructs and inserts multiple rows based on it's parameters. … … 3644 3644 */ 3645 3645 3646 bool p2ProcessedImfileInsertObjects(3647 psDB *dbh, ///< Database handle 3648 psArray *objects ///< array of p2ProcessedImfileRow objects3649 ); 3650 3651 /** Insert data from a binary FITS table p2ProcessedImfileRow into the database3646 bool chipProcessedImfileInsertObjects( 3647 psDB *dbh, ///< Database handle 3648 psArray *objects ///< array of chipProcessedImfileRow objects 3649 ); 3650 3651 /** Insert data from a binary FITS table chipProcessedImfileRow into the database 3652 3652 * 3653 3653 * This function expects a psFits object with a FITS table as the first … … 3659 3659 */ 3660 3660 3661 bool p2ProcessedImfileInsertFits(3661 bool chipProcessedImfileInsertFits( 3662 3662 psDB *dbh, ///< Database handle 3663 3663 const psFits *fits ///< psFits object … … 3674 3674 */ 3675 3675 3676 bool p2ProcessedImfileSelectRowsFits(3676 bool chipProcessedImfileSelectRowsFits( 3677 3677 psDB *dbh, ///< Database handle 3678 3678 psFits *fits, ///< psFits object … … 3681 3681 ); 3682 3682 3683 /** Convert a p2ProcessedImfileRow into an equivalent psMetadata3683 /** Convert a chipProcessedImfileRow into an equivalent psMetadata 3684 3684 * 3685 3685 * @return A psMetadata pointer or NULL on error 3686 3686 */ 3687 3687 3688 psMetadata * p2ProcessedImfileMetadataFromObject(3689 const p2ProcessedImfileRow *object ///< fooRow to convert into a psMetadata3688 psMetadata *chipProcessedImfileMetadataFromObject( 3689 const chipProcessedImfileRow *object ///< fooRow to convert into a psMetadata 3690 3690 ); 3691 3691 3692 3692 /** Convert a psMetadata into an equivalent fooRow 3693 3693 * 3694 * @return A p2ProcessedImfileRow pointer or NULL on error3695 */ 3696 3697 p2ProcessedImfileRow *p2ProcessedImfileObjectFromMetadata(3694 * @return A chipProcessedImfileRow pointer or NULL on error 3695 */ 3696 3697 chipProcessedImfileRow *chipProcessedImfileObjectFromMetadata( 3698 3698 psMetadata *md ///< psMetadata to convert into a fooRow 3699 3699 ); 3700 /** Selects up to limit rows from the database and returns as p2ProcessedImfileRow objects in a psArray3700 /** Selects up to limit rows from the database and returns as chipProcessedImfileRow objects in a psArray 3701 3701 * 3702 3702 * See psDBSelectRows() for documentation on the format of where. … … 3705 3705 */ 3706 3706 3707 psArray * p2ProcessedImfileSelectRowObjects(3707 psArray *chipProcessedImfileSelectRowObjects( 3708 3708 psDB *dbh, ///< Database handle 3709 3709 const psMetadata *where, ///< Row match criteria 3710 3710 unsigned long long limit ///< Maximum number of elements to return 3711 3711 ); 3712 /** Deletes a row from the database coresponding to an p2ProcessedImfile3712 /** Deletes a row from the database coresponding to an chipProcessedImfile 3713 3713 * 3714 3714 * Note that a 'where' search psMetadata is constructed from each object and … … 3718 3718 */ 3719 3719 3720 bool p2ProcessedImfileDeleteObject(3721 psDB *dbh, ///< Database handle 3722 const p2ProcessedImfileRow *object ///< Object to delete3720 bool chipProcessedImfileDeleteObject( 3721 psDB *dbh, ///< Database handle 3722 const chipProcessedImfileRow *object ///< Object to delete 3723 3723 ); 3724 3724 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 3730 3730 */ 3731 3731 3732 long long p2ProcessedImfileDeleteRowObjects(3732 long long chipProcessedImfileDeleteRowObjects( 3733 3733 psDB *dbh, ///< Database handle 3734 3734 const psArray *objects, ///< Array of objects to delete 3735 3735 unsigned long long limit ///< Maximum number of elements to delete 3736 3736 ); 3737 /** Formats and prints an array of p2ProcessedImfileRow objects3737 /** Formats and prints an array of chipProcessedImfileRow objects 3738 3738 * 3739 3739 * When mdcf is set the formated output is in psMetadataConfig … … 3743 3743 */ 3744 3744 3745 bool p2ProcessedImfilePrintObjects(3745 bool chipProcessedImfilePrintObjects( 3746 3746 FILE *stream, ///< a stream 3747 psArray *objects, ///< An array of p2ProcessedImfileRow objects3747 psArray *objects, ///< An array of chipProcessedImfileRow objects 3748 3748 bool mdcf ///< format as mdconfig or simple 3749 3749 ); 3750 /** Formats and prints an p2ProcessedImfileRow object3750 /** Formats and prints an chipProcessedImfileRow object 3751 3751 * 3752 3752 * When mdcf is set the formated output is in psMetadataConfig … … 3756 3756 */ 3757 3757 3758 bool p2ProcessedImfilePrintObject(3758 bool chipProcessedImfilePrintObject( 3759 3759 FILE *stream, ///< a stream 3760 p2ProcessedImfileRow *object, ///< an p2ProcessedImfileRow object3760 chipProcessedImfileRow *object, ///< an chipProcessedImfileRow object 3761 3761 bool mdcf ///< format as mdconfig or simple 3762 3762 ); 3763 /** p3PendingExpRow data structure3764 * 3765 * Structure for representing a single row of p3PendingExp table data.3763 /** camPendingExpRow data structure 3764 * 3765 * Structure for representing a single row of camPendingExp table data. 3766 3766 */ 3767 3767 3768 3768 typedef struct { 3769 3769 char *exp_tag; 3770 psS32 p3_version;3771 psS32 p2_version;3770 psS32 cam_version; 3771 psS32 chip_version; 3772 3772 char *label; 3773 3773 char *expgroup; 3774 3774 char *dvodb; 3775 } p3PendingExpRow;3776 3777 /** Creates a new p3PendingExpRow object3778 * 3779 * @return A new p3PendingExpRow object or NULL on failure.3780 */ 3781 3782 p3PendingExpRow *p3PendingExpRowAlloc(3775 } camPendingExpRow; 3776 3777 /** Creates a new camPendingExpRow object 3778 * 3779 * @return A new camPendingExpRow object or NULL on failure. 3780 */ 3781 3782 camPendingExpRow *camPendingExpRowAlloc( 3783 3783 const char *exp_tag, 3784 psS32 p3_version,3785 psS32 p2_version,3784 psS32 cam_version, 3785 psS32 chip_version, 3786 3786 const char *label, 3787 3787 const char *expgroup, … … 3789 3789 ); 3790 3790 3791 /** Creates a new p3PendingExp table3792 * 3793 * @return true on success 3794 */ 3795 3796 bool p3PendingExpCreateTable(3791 /** Creates a new camPendingExp table 3792 * 3793 * @return true on success 3794 */ 3795 3796 bool camPendingExpCreateTable( 3797 3797 psDB *dbh ///< Database handle 3798 3798 ); 3799 3799 3800 /** Deletes a p3PendingExp table3801 * 3802 * @return true on success 3803 */ 3804 3805 bool p3PendingExpDropTable(3800 /** Deletes a camPendingExp table 3801 * 3802 * @return true on success 3803 */ 3804 3805 bool camPendingExpDropTable( 3806 3806 psDB *dbh ///< Database handle 3807 3807 ); … … 3814 3814 */ 3815 3815 3816 bool p3PendingExpInsert(3816 bool camPendingExpInsert( 3817 3817 psDB *dbh, ///< Database handle 3818 3818 const char *exp_tag, 3819 psS32 p3_version,3820 psS32 p2_version,3819 psS32 cam_version, 3820 psS32 chip_version, 3821 3821 const char *label, 3822 3822 const char *expgroup, … … 3829 3829 */ 3830 3830 3831 long long p3PendingExpDelete(3831 long long camPendingExpDelete( 3832 3832 psDB *dbh, ///< Database handle 3833 3833 const psMetadata *where, ///< Row match criteria … … 3835 3835 ); 3836 3836 3837 /** Insert a single p3PendingExpRow object into a table3837 /** Insert a single camPendingExpRow object into a table 3838 3838 * 3839 3839 * This function constructs and inserts a single row based on it's parameters. … … 3842 3842 */ 3843 3843 3844 bool p3PendingExpInsertObject(3845 psDB *dbh, ///< Database handle 3846 p3PendingExpRow *object ///< p3PendingExpRow object3847 ); 3848 3849 /** Insert an array of p3PendingExpRow object into a table3844 bool camPendingExpInsertObject( 3845 psDB *dbh, ///< Database handle 3846 camPendingExpRow *object ///< camPendingExpRow object 3847 ); 3848 3849 /** Insert an array of camPendingExpRow object into a table 3850 3850 * 3851 3851 * This function constructs and inserts multiple rows based on it's parameters. … … 3854 3854 */ 3855 3855 3856 bool p3PendingExpInsertObjects(3857 psDB *dbh, ///< Database handle 3858 psArray *objects ///< array of p3PendingExpRow objects3859 ); 3860 3861 /** Insert data from a binary FITS table p3PendingExpRow into the database3856 bool camPendingExpInsertObjects( 3857 psDB *dbh, ///< Database handle 3858 psArray *objects ///< array of camPendingExpRow objects 3859 ); 3860 3861 /** Insert data from a binary FITS table camPendingExpRow into the database 3862 3862 * 3863 3863 * This function expects a psFits object with a FITS table as the first … … 3869 3869 */ 3870 3870 3871 bool p3PendingExpInsertFits(3871 bool camPendingExpInsertFits( 3872 3872 psDB *dbh, ///< Database handle 3873 3873 const psFits *fits ///< psFits object … … 3884 3884 */ 3885 3885 3886 bool p3PendingExpSelectRowsFits(3886 bool camPendingExpSelectRowsFits( 3887 3887 psDB *dbh, ///< Database handle 3888 3888 psFits *fits, ///< psFits object … … 3891 3891 ); 3892 3892 3893 /** Convert a p3PendingExpRow into an equivalent psMetadata3893 /** Convert a camPendingExpRow into an equivalent psMetadata 3894 3894 * 3895 3895 * @return A psMetadata pointer or NULL on error 3896 3896 */ 3897 3897 3898 psMetadata * p3PendingExpMetadataFromObject(3899 const p3PendingExpRow *object ///< fooRow to convert into a psMetadata3898 psMetadata *camPendingExpMetadataFromObject( 3899 const camPendingExpRow *object ///< fooRow to convert into a psMetadata 3900 3900 ); 3901 3901 3902 3902 /** Convert a psMetadata into an equivalent fooRow 3903 3903 * 3904 * @return A p3PendingExpRow pointer or NULL on error3905 */ 3906 3907 p3PendingExpRow *p3PendingExpObjectFromMetadata(3904 * @return A camPendingExpRow pointer or NULL on error 3905 */ 3906 3907 camPendingExpRow *camPendingExpObjectFromMetadata( 3908 3908 psMetadata *md ///< psMetadata to convert into a fooRow 3909 3909 ); 3910 /** Selects up to limit rows from the database and returns as p3PendingExpRow objects in a psArray3910 /** Selects up to limit rows from the database and returns as camPendingExpRow objects in a psArray 3911 3911 * 3912 3912 * See psDBSelectRows() for documentation on the format of where. … … 3915 3915 */ 3916 3916 3917 psArray * p3PendingExpSelectRowObjects(3917 psArray *camPendingExpSelectRowObjects( 3918 3918 psDB *dbh, ///< Database handle 3919 3919 const psMetadata *where, ///< Row match criteria 3920 3920 unsigned long long limit ///< Maximum number of elements to return 3921 3921 ); 3922 /** Deletes a row from the database coresponding to an p3PendingExp3922 /** Deletes a row from the database coresponding to an camPendingExp 3923 3923 * 3924 3924 * Note that a 'where' search psMetadata is constructed from each object and … … 3928 3928 */ 3929 3929 3930 bool p3PendingExpDeleteObject(3931 psDB *dbh, ///< Database handle 3932 const p3PendingExpRow *object ///< Object to delete3930 bool camPendingExpDeleteObject( 3931 psDB *dbh, ///< Database handle 3932 const camPendingExpRow *object ///< Object to delete 3933 3933 ); 3934 3934 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 3940 3940 */ 3941 3941 3942 long long p3PendingExpDeleteRowObjects(3942 long long camPendingExpDeleteRowObjects( 3943 3943 psDB *dbh, ///< Database handle 3944 3944 const psArray *objects, ///< Array of objects to delete 3945 3945 unsigned long long limit ///< Maximum number of elements to delete 3946 3946 ); 3947 /** Formats and prints an array of p3PendingExpRow objects3947 /** Formats and prints an array of camPendingExpRow objects 3948 3948 * 3949 3949 * When mdcf is set the formated output is in psMetadataConfig … … 3953 3953 */ 3954 3954 3955 bool p3PendingExpPrintObjects(3955 bool camPendingExpPrintObjects( 3956 3956 FILE *stream, ///< a stream 3957 psArray *objects, ///< An array of p3PendingExpRow objects3957 psArray *objects, ///< An array of camPendingExpRow objects 3958 3958 bool mdcf ///< format as mdconfig or simple 3959 3959 ); 3960 /** Formats and prints an p3PendingExpRow object3960 /** Formats and prints an camPendingExpRow object 3961 3961 * 3962 3962 * When mdcf is set the formated output is in psMetadataConfig … … 3966 3966 */ 3967 3967 3968 bool p3PendingExpPrintObject(3968 bool camPendingExpPrintObject( 3969 3969 FILE *stream, ///< a stream 3970 p3PendingExpRow *object, ///< an p3PendingExpRow object3970 camPendingExpRow *object, ///< an camPendingExpRow object 3971 3971 bool mdcf ///< format as mdconfig or simple 3972 3972 ); 3973 /** p3ProcessedExpRow data structure3974 * 3975 * Structure for representing a single row of p3ProcessedExp table data.3973 /** camProcessedExpRow data structure 3974 * 3975 * Structure for representing a single row of camProcessedExp table data. 3976 3976 */ 3977 3977 3978 3978 typedef struct { 3979 3979 char *exp_tag; 3980 psS32 p3_version;3981 psS32 p2_version;3980 psS32 cam_version; 3981 psS32 chip_version; 3982 3982 char *label; 3983 3983 char *uri; … … 3996 3996 char *expgroup; 3997 3997 char *dvodb; 3998 } p3ProcessedExpRow;3999 4000 /** Creates a new p3ProcessedExpRow object4001 * 4002 * @return A new p3ProcessedExpRow object or NULL on failure.4003 */ 4004 4005 p3ProcessedExpRow *p3ProcessedExpRowAlloc(3998 } camProcessedExpRow; 3999 4000 /** Creates a new camProcessedExpRow object 4001 * 4002 * @return A new camProcessedExpRow object or NULL on failure. 4003 */ 4004 4005 camProcessedExpRow *camProcessedExpRowAlloc( 4006 4006 const char *exp_tag, 4007 psS32 p3_version,4008 psS32 p2_version,4007 psS32 cam_version, 4008 psS32 chip_version, 4009 4009 const char *label, 4010 4010 const char *uri, … … 4025 4025 ); 4026 4026 4027 /** Creates a new p3ProcessedExp table4028 * 4029 * @return true on success 4030 */ 4031 4032 bool p3ProcessedExpCreateTable(4027 /** Creates a new camProcessedExp table 4028 * 4029 * @return true on success 4030 */ 4031 4032 bool camProcessedExpCreateTable( 4033 4033 psDB *dbh ///< Database handle 4034 4034 ); 4035 4035 4036 /** Deletes a p3ProcessedExp table4037 * 4038 * @return true on success 4039 */ 4040 4041 bool p3ProcessedExpDropTable(4036 /** Deletes a camProcessedExp table 4037 * 4038 * @return true on success 4039 */ 4040 4041 bool camProcessedExpDropTable( 4042 4042 psDB *dbh ///< Database handle 4043 4043 ); … … 4050 4050 */ 4051 4051 4052 bool p3ProcessedExpInsert(4052 bool camProcessedExpInsert( 4053 4053 psDB *dbh, ///< Database handle 4054 4054 const char *exp_tag, 4055 psS32 p3_version,4056 psS32 p2_version,4055 psS32 cam_version, 4056 psS32 chip_version, 4057 4057 const char *label, 4058 4058 const char *uri, … … 4078 4078 */ 4079 4079 4080 long long p3ProcessedExpDelete(4080 long long camProcessedExpDelete( 4081 4081 psDB *dbh, ///< Database handle 4082 4082 const psMetadata *where, ///< Row match criteria … … 4084 4084 ); 4085 4085 4086 /** Insert a single p3ProcessedExpRow object into a table4086 /** Insert a single camProcessedExpRow object into a table 4087 4087 * 4088 4088 * This function constructs and inserts a single row based on it's parameters. … … 4091 4091 */ 4092 4092 4093 bool p3ProcessedExpInsertObject(4094 psDB *dbh, ///< Database handle 4095 p3ProcessedExpRow *object ///< p3ProcessedExpRow object4096 ); 4097 4098 /** Insert an array of p3ProcessedExpRow object into a table4093 bool camProcessedExpInsertObject( 4094 psDB *dbh, ///< Database handle 4095 camProcessedExpRow *object ///< camProcessedExpRow object 4096 ); 4097 4098 /** Insert an array of camProcessedExpRow object into a table 4099 4099 * 4100 4100 * This function constructs and inserts multiple rows based on it's parameters. … … 4103 4103 */ 4104 4104 4105 bool p3ProcessedExpInsertObjects(4106 psDB *dbh, ///< Database handle 4107 psArray *objects ///< array of p3ProcessedExpRow objects4108 ); 4109 4110 /** Insert data from a binary FITS table p3ProcessedExpRow into the database4105 bool camProcessedExpInsertObjects( 4106 psDB *dbh, ///< Database handle 4107 psArray *objects ///< array of camProcessedExpRow objects 4108 ); 4109 4110 /** Insert data from a binary FITS table camProcessedExpRow into the database 4111 4111 * 4112 4112 * This function expects a psFits object with a FITS table as the first … … 4118 4118 */ 4119 4119 4120 bool p3ProcessedExpInsertFits(4120 bool camProcessedExpInsertFits( 4121 4121 psDB *dbh, ///< Database handle 4122 4122 const psFits *fits ///< psFits object … … 4133 4133 */ 4134 4134 4135 bool p3ProcessedExpSelectRowsFits(4135 bool camProcessedExpSelectRowsFits( 4136 4136 psDB *dbh, ///< Database handle 4137 4137 psFits *fits, ///< psFits object … … 4140 4140 ); 4141 4141 4142 /** Convert a p3ProcessedExpRow into an equivalent psMetadata4142 /** Convert a camProcessedExpRow into an equivalent psMetadata 4143 4143 * 4144 4144 * @return A psMetadata pointer or NULL on error 4145 4145 */ 4146 4146 4147 psMetadata * p3ProcessedExpMetadataFromObject(4148 const p3ProcessedExpRow *object ///< fooRow to convert into a psMetadata4147 psMetadata *camProcessedExpMetadataFromObject( 4148 const camProcessedExpRow *object ///< fooRow to convert into a psMetadata 4149 4149 ); 4150 4150 4151 4151 /** Convert a psMetadata into an equivalent fooRow 4152 4152 * 4153 * @return A p3ProcessedExpRow pointer or NULL on error4154 */ 4155 4156 p3ProcessedExpRow *p3ProcessedExpObjectFromMetadata(4153 * @return A camProcessedExpRow pointer or NULL on error 4154 */ 4155 4156 camProcessedExpRow *camProcessedExpObjectFromMetadata( 4157 4157 psMetadata *md ///< psMetadata to convert into a fooRow 4158 4158 ); 4159 /** Selects up to limit rows from the database and returns as p3ProcessedExpRow objects in a psArray4159 /** Selects up to limit rows from the database and returns as camProcessedExpRow objects in a psArray 4160 4160 * 4161 4161 * See psDBSelectRows() for documentation on the format of where. … … 4164 4164 */ 4165 4165 4166 psArray * p3ProcessedExpSelectRowObjects(4166 psArray *camProcessedExpSelectRowObjects( 4167 4167 psDB *dbh, ///< Database handle 4168 4168 const psMetadata *where, ///< Row match criteria 4169 4169 unsigned long long limit ///< Maximum number of elements to return 4170 4170 ); 4171 /** Deletes a row from the database coresponding to an p3ProcessedExp4171 /** Deletes a row from the database coresponding to an camProcessedExp 4172 4172 * 4173 4173 * Note that a 'where' search psMetadata is constructed from each object and … … 4177 4177 */ 4178 4178 4179 bool p3ProcessedExpDeleteObject(4180 psDB *dbh, ///< Database handle 4181 const p3ProcessedExpRow *object ///< Object to delete4179 bool camProcessedExpDeleteObject( 4180 psDB *dbh, ///< Database handle 4181 const camProcessedExpRow *object ///< Object to delete 4182 4182 ); 4183 4183 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 4189 4189 */ 4190 4190 4191 long long p3ProcessedExpDeleteRowObjects(4191 long long camProcessedExpDeleteRowObjects( 4192 4192 psDB *dbh, ///< Database handle 4193 4193 const psArray *objects, ///< Array of objects to delete 4194 4194 unsigned long long limit ///< Maximum number of elements to delete 4195 4195 ); 4196 /** Formats and prints an array of p3ProcessedExpRow objects4196 /** Formats and prints an array of camProcessedExpRow objects 4197 4197 * 4198 4198 * When mdcf is set the formated output is in psMetadataConfig … … 4202 4202 */ 4203 4203 4204 bool p3ProcessedExpPrintObjects(4204 bool camProcessedExpPrintObjects( 4205 4205 FILE *stream, ///< a stream 4206 psArray *objects, ///< An array of p3ProcessedExpRow objects4206 psArray *objects, ///< An array of camProcessedExpRow objects 4207 4207 bool mdcf ///< format as mdconfig or simple 4208 4208 ); 4209 /** Formats and prints an p3ProcessedExpRow object4209 /** Formats and prints an camProcessedExpRow object 4210 4210 * 4211 4211 * When mdcf is set the formated output is in psMetadataConfig … … 4215 4215 */ 4216 4216 4217 bool p3ProcessedExpPrintObject(4217 bool camProcessedExpPrintObject( 4218 4218 FILE *stream, ///< a stream 4219 p3ProcessedExpRow *object, ///< an p3ProcessedExpRow object4219 camProcessedExpRow *object, ///< an camProcessedExpRow object 4220 4220 bool mdcf ///< format as mdconfig or simple 4221 4221 ); 4222 /** p3MaskRow data structure4223 * 4224 * Structure for representing a single row of p3Mask table data.4222 /** camMaskRow data structure 4223 * 4224 * Structure for representing a single row of camMask table data. 4225 4225 */ 4226 4226 4227 4227 typedef struct { 4228 4228 char *label; 4229 } p3MaskRow;4230 4231 /** Creates a new p3MaskRow object4232 * 4233 * @return A new p3MaskRow object or NULL on failure.4234 */ 4235 4236 p3MaskRow *p3MaskRowAlloc(4229 } camMaskRow; 4230 4231 /** Creates a new camMaskRow object 4232 * 4233 * @return A new camMaskRow object or NULL on failure. 4234 */ 4235 4236 camMaskRow *camMaskRowAlloc( 4237 4237 const char *label 4238 4238 ); 4239 4239 4240 /** Creates a new p3Mask table4241 * 4242 * @return true on success 4243 */ 4244 4245 bool p3MaskCreateTable(4240 /** Creates a new camMask table 4241 * 4242 * @return true on success 4243 */ 4244 4245 bool camMaskCreateTable( 4246 4246 psDB *dbh ///< Database handle 4247 4247 ); 4248 4248 4249 /** Deletes a p3Mask table4250 * 4251 * @return true on success 4252 */ 4253 4254 bool p3MaskDropTable(4249 /** Deletes a camMask table 4250 * 4251 * @return true on success 4252 */ 4253 4254 bool camMaskDropTable( 4255 4255 psDB *dbh ///< Database handle 4256 4256 ); … … 4263 4263 */ 4264 4264 4265 bool p3MaskInsert(4265 bool camMaskInsert( 4266 4266 psDB *dbh, ///< Database handle 4267 4267 const char *label … … 4273 4273 */ 4274 4274 4275 long long p3MaskDelete(4275 long long camMaskDelete( 4276 4276 psDB *dbh, ///< Database handle 4277 4277 const psMetadata *where, ///< Row match criteria … … 4279 4279 ); 4280 4280 4281 /** Insert a single p3MaskRow object into a table4281 /** Insert a single camMaskRow object into a table 4282 4282 * 4283 4283 * This function constructs and inserts a single row based on it's parameters. … … 4286 4286 */ 4287 4287 4288 bool p3MaskInsertObject(4289 psDB *dbh, ///< Database handle 4290 p3MaskRow *object ///< p3MaskRow object4291 ); 4292 4293 /** Insert an array of p3MaskRow object into a table4288 bool camMaskInsertObject( 4289 psDB *dbh, ///< Database handle 4290 camMaskRow *object ///< camMaskRow object 4291 ); 4292 4293 /** Insert an array of camMaskRow object into a table 4294 4294 * 4295 4295 * This function constructs and inserts multiple rows based on it's parameters. … … 4298 4298 */ 4299 4299 4300 bool p3MaskInsertObjects(4301 psDB *dbh, ///< Database handle 4302 psArray *objects ///< array of p3MaskRow objects4303 ); 4304 4305 /** Insert data from a binary FITS table p3MaskRow into the database4300 bool camMaskInsertObjects( 4301 psDB *dbh, ///< Database handle 4302 psArray *objects ///< array of camMaskRow objects 4303 ); 4304 4305 /** Insert data from a binary FITS table camMaskRow into the database 4306 4306 * 4307 4307 * This function expects a psFits object with a FITS table as the first … … 4313 4313 */ 4314 4314 4315 bool p3MaskInsertFits(4315 bool camMaskInsertFits( 4316 4316 psDB *dbh, ///< Database handle 4317 4317 const psFits *fits ///< psFits object … … 4328 4328 */ 4329 4329 4330 bool p3MaskSelectRowsFits(4330 bool camMaskSelectRowsFits( 4331 4331 psDB *dbh, ///< Database handle 4332 4332 psFits *fits, ///< psFits object … … 4335 4335 ); 4336 4336 4337 /** Convert a p3MaskRow into an equivalent psMetadata4337 /** Convert a camMaskRow into an equivalent psMetadata 4338 4338 * 4339 4339 * @return A psMetadata pointer or NULL on error 4340 4340 */ 4341 4341 4342 psMetadata * p3MaskMetadataFromObject(4343 const p3MaskRow *object ///< fooRow to convert into a psMetadata4342 psMetadata *camMaskMetadataFromObject( 4343 const camMaskRow *object ///< fooRow to convert into a psMetadata 4344 4344 ); 4345 4345 4346 4346 /** Convert a psMetadata into an equivalent fooRow 4347 4347 * 4348 * @return A p3MaskRow pointer or NULL on error4349 */ 4350 4351 p3MaskRow *p3MaskObjectFromMetadata(4348 * @return A camMaskRow pointer or NULL on error 4349 */ 4350 4351 camMaskRow *camMaskObjectFromMetadata( 4352 4352 psMetadata *md ///< psMetadata to convert into a fooRow 4353 4353 ); 4354 /** Selects up to limit rows from the database and returns as p3MaskRow objects in a psArray4354 /** Selects up to limit rows from the database and returns as camMaskRow objects in a psArray 4355 4355 * 4356 4356 * See psDBSelectRows() for documentation on the format of where. … … 4359 4359 */ 4360 4360 4361 psArray * p3MaskSelectRowObjects(4361 psArray *camMaskSelectRowObjects( 4362 4362 psDB *dbh, ///< Database handle 4363 4363 const psMetadata *where, ///< Row match criteria 4364 4364 unsigned long long limit ///< Maximum number of elements to return 4365 4365 ); 4366 /** Deletes a row from the database coresponding to an p3Mask4366 /** Deletes a row from the database coresponding to an camMask 4367 4367 * 4368 4368 * Note that a 'where' search psMetadata is constructed from each object and … … 4372 4372 */ 4373 4373 4374 bool p3MaskDeleteObject(4375 psDB *dbh, ///< Database handle 4376 const p3MaskRow *object ///< Object to delete4374 bool camMaskDeleteObject( 4375 psDB *dbh, ///< Database handle 4376 const camMaskRow *object ///< Object to delete 4377 4377 ); 4378 4378 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 4384 4384 */ 4385 4385 4386 long long p3MaskDeleteRowObjects(4386 long long camMaskDeleteRowObjects( 4387 4387 psDB *dbh, ///< Database handle 4388 4388 const psArray *objects, ///< Array of objects to delete 4389 4389 unsigned long long limit ///< Maximum number of elements to delete 4390 4390 ); 4391 /** Formats and prints an array of p3MaskRow objects4391 /** Formats and prints an array of camMaskRow objects 4392 4392 * 4393 4393 * When mdcf is set the formated output is in psMetadataConfig … … 4397 4397 */ 4398 4398 4399 bool p3MaskPrintObjects(4399 bool camMaskPrintObjects( 4400 4400 FILE *stream, ///< a stream 4401 psArray *objects, ///< An array of p3MaskRow objects4401 psArray *objects, ///< An array of camMaskRow objects 4402 4402 bool mdcf ///< format as mdconfig or simple 4403 4403 ); 4404 /** Formats and prints an p3MaskRow object4404 /** Formats and prints an camMaskRow object 4405 4405 * 4406 4406 * When mdcf is set the formated output is in psMetadataConfig … … 4410 4410 */ 4411 4411 4412 bool p3MaskPrintObject(4412 bool camMaskPrintObject( 4413 4413 FILE *stream, ///< a stream 4414 p3MaskRow *object, ///< an p3MaskRow object4414 camMaskRow *object, ///< an camMaskRow object 4415 4415 bool mdcf ///< format as mdconfig or simple 4416 4416 ); … … 6869 6869 bool mdcf ///< format as mdconfig or simple 6870 6870 ); 6871 /** p4RunRow data structure6872 * 6873 * Structure for representing a single row of p4Run table data.6871 /** warpRunRow data structure 6872 * 6873 * Structure for representing a single row of warpRun table data. 6874 6874 */ 6875 6875 6876 6876 typedef struct { 6877 psS32 p4_id;6877 psS32 warp_id; 6878 6878 char *mode; 6879 6879 char *state; … … 6881 6881 char *dvodb; 6882 6882 psTime* registered; 6883 } p4RunRow;6884 6885 /** Creates a new p4RunRow object6886 * 6887 * @return A new p4RunRow object or NULL on failure.6888 */ 6889 6890 p4RunRow *p4RunRowAlloc(6891 psS32 p4_id,6883 } warpRunRow; 6884 6885 /** Creates a new warpRunRow object 6886 * 6887 * @return A new warpRunRow object or NULL on failure. 6888 */ 6889 6890 warpRunRow *warpRunRowAlloc( 6891 psS32 warp_id, 6892 6892 const char *mode, 6893 6893 const char *state, … … 6897 6897 ); 6898 6898 6899 /** Creates a new p4Run table6900 * 6901 * @return true on success 6902 */ 6903 6904 bool p4RunCreateTable(6899 /** Creates a new warpRun table 6900 * 6901 * @return true on success 6902 */ 6903 6904 bool warpRunCreateTable( 6905 6905 psDB *dbh ///< Database handle 6906 6906 ); 6907 6907 6908 /** Deletes a p4Run table6909 * 6910 * @return true on success 6911 */ 6912 6913 bool p4RunDropTable(6908 /** Deletes a warpRun table 6909 * 6910 * @return true on success 6911 */ 6912 6913 bool warpRunDropTable( 6914 6914 psDB *dbh ///< Database handle 6915 6915 ); … … 6922 6922 */ 6923 6923 6924 bool p4RunInsert(6925 psDB *dbh, ///< Database handle 6926 psS32 p4_id,6924 bool warpRunInsert( 6925 psDB *dbh, ///< Database handle 6926 psS32 warp_id, 6927 6927 const char *mode, 6928 6928 const char *state, … … 6937 6937 */ 6938 6938 6939 long long p4RunDelete(6939 long long warpRunDelete( 6940 6940 psDB *dbh, ///< Database handle 6941 6941 const psMetadata *where, ///< Row match criteria … … 6943 6943 ); 6944 6944 6945 /** Insert a single p4RunRow object into a table6945 /** Insert a single warpRunRow object into a table 6946 6946 * 6947 6947 * This function constructs and inserts a single row based on it's parameters. … … 6950 6950 */ 6951 6951 6952 bool p4RunInsertObject(6953 psDB *dbh, ///< Database handle 6954 p4RunRow *object ///< p4RunRow object6955 ); 6956 6957 /** Insert an array of p4RunRow object into a table6952 bool warpRunInsertObject( 6953 psDB *dbh, ///< Database handle 6954 warpRunRow *object ///< warpRunRow object 6955 ); 6956 6957 /** Insert an array of warpRunRow object into a table 6958 6958 * 6959 6959 * This function constructs and inserts multiple rows based on it's parameters. … … 6962 6962 */ 6963 6963 6964 bool p4RunInsertObjects(6965 psDB *dbh, ///< Database handle 6966 psArray *objects ///< array of p4RunRow objects6967 ); 6968 6969 /** Insert data from a binary FITS table p4RunRow into the database6964 bool warpRunInsertObjects( 6965 psDB *dbh, ///< Database handle 6966 psArray *objects ///< array of warpRunRow objects 6967 ); 6968 6969 /** Insert data from a binary FITS table warpRunRow into the database 6970 6970 * 6971 6971 * This function expects a psFits object with a FITS table as the first … … 6977 6977 */ 6978 6978 6979 bool p4RunInsertFits(6979 bool warpRunInsertFits( 6980 6980 psDB *dbh, ///< Database handle 6981 6981 const psFits *fits ///< psFits object … … 6992 6992 */ 6993 6993 6994 bool p4RunSelectRowsFits(6994 bool warpRunSelectRowsFits( 6995 6995 psDB *dbh, ///< Database handle 6996 6996 psFits *fits, ///< psFits object … … 6999 6999 ); 7000 7000 7001 /** Convert a p4RunRow into an equivalent psMetadata7001 /** Convert a warpRunRow into an equivalent psMetadata 7002 7002 * 7003 7003 * @return A psMetadata pointer or NULL on error 7004 7004 */ 7005 7005 7006 psMetadata * p4RunMetadataFromObject(7007 const p4RunRow*object ///< fooRow to convert into a psMetadata7006 psMetadata *warpRunMetadataFromObject( 7007 const warpRunRow *object ///< fooRow to convert into a psMetadata 7008 7008 ); 7009 7009 7010 7010 /** Convert a psMetadata into an equivalent fooRow 7011 7011 * 7012 * @return A p4RunRow pointer or NULL on error7013 */ 7014 7015 p4RunRow *p4RunObjectFromMetadata(7012 * @return A warpRunRow pointer or NULL on error 7013 */ 7014 7015 warpRunRow *warpRunObjectFromMetadata( 7016 7016 psMetadata *md ///< psMetadata to convert into a fooRow 7017 7017 ); 7018 /** Selects up to limit rows from the database and returns as p4RunRow objects in a psArray7018 /** Selects up to limit rows from the database and returns as warpRunRow objects in a psArray 7019 7019 * 7020 7020 * See psDBSelectRows() for documentation on the format of where. … … 7023 7023 */ 7024 7024 7025 psArray * p4RunSelectRowObjects(7025 psArray *warpRunSelectRowObjects( 7026 7026 psDB *dbh, ///< Database handle 7027 7027 const psMetadata *where, ///< Row match criteria 7028 7028 unsigned long long limit ///< Maximum number of elements to return 7029 7029 ); 7030 /** Deletes a row from the database coresponding to an p4Run7030 /** Deletes a row from the database coresponding to an warpRun 7031 7031 * 7032 7032 * Note that a 'where' search psMetadata is constructed from each object and … … 7036 7036 */ 7037 7037 7038 bool p4RunDeleteObject(7039 psDB *dbh, ///< Database handle 7040 const p4RunRow *object ///< Object to delete7038 bool warpRunDeleteObject( 7039 psDB *dbh, ///< Database handle 7040 const warpRunRow *object ///< Object to delete 7041 7041 ); 7042 7042 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 7048 7048 */ 7049 7049 7050 long long p4RunDeleteRowObjects(7050 long long warpRunDeleteRowObjects( 7051 7051 psDB *dbh, ///< Database handle 7052 7052 const psArray *objects, ///< Array of objects to delete 7053 7053 unsigned long long limit ///< Maximum number of elements to delete 7054 7054 ); 7055 /** Formats and prints an array of p4RunRow objects7055 /** Formats and prints an array of warpRunRow objects 7056 7056 * 7057 7057 * When mdcf is set the formated output is in psMetadataConfig … … 7061 7061 */ 7062 7062 7063 bool p4RunPrintObjects(7063 bool warpRunPrintObjects( 7064 7064 FILE *stream, ///< a stream 7065 psArray *objects, ///< An array of p4RunRow objects7065 psArray *objects, ///< An array of warpRunRow objects 7066 7066 bool mdcf ///< format as mdconfig or simple 7067 7067 ); 7068 /** Formats and prints an p4RunRow object7068 /** Formats and prints an warpRunRow object 7069 7069 * 7070 7070 * When mdcf is set the formated output is in psMetadataConfig … … 7074 7074 */ 7075 7075 7076 bool p4RunPrintObject(7076 bool warpRunPrintObject( 7077 7077 FILE *stream, ///< a stream 7078 p4RunRow *object, ///< an p4RunRow object7078 warpRunRow *object, ///< an warpRunRow object 7079 7079 bool mdcf ///< format as mdconfig or simple 7080 7080 ); 7081 /** p4InputExpRow data structure7082 * 7083 * Structure for representing a single row of p4InputExp table data.7081 /** warpInputExpRow data structure 7082 * 7083 * Structure for representing a single row of warpInputExp table data. 7084 7084 */ 7085 7085 7086 7086 typedef struct { 7087 psS32 p4_id;7087 psS32 warp_id; 7088 7088 char *exp_tag; 7089 psS32 p3_version;7089 psS32 cam_version; 7090 7090 bool magiced; 7091 } p4InputExpRow;7092 7093 /** Creates a new p4InputExpRow object7094 * 7095 * @return A new p4InputExpRow object or NULL on failure.7096 */ 7097 7098 p4InputExpRow *p4InputExpRowAlloc(7099 psS32 p4_id,7091 } warpInputExpRow; 7092 7093 /** Creates a new warpInputExpRow object 7094 * 7095 * @return A new warpInputExpRow object or NULL on failure. 7096 */ 7097 7098 warpInputExpRow *warpInputExpRowAlloc( 7099 psS32 warp_id, 7100 7100 const char *exp_tag, 7101 psS32 p3_version,7101 psS32 cam_version, 7102 7102 bool magiced 7103 7103 ); 7104 7104 7105 /** Creates a new p4InputExp table7106 * 7107 * @return true on success 7108 */ 7109 7110 bool p4InputExpCreateTable(7105 /** Creates a new warpInputExp table 7106 * 7107 * @return true on success 7108 */ 7109 7110 bool warpInputExpCreateTable( 7111 7111 psDB *dbh ///< Database handle 7112 7112 ); 7113 7113 7114 /** Deletes a p4InputExp table7115 * 7116 * @return true on success 7117 */ 7118 7119 bool p4InputExpDropTable(7114 /** Deletes a warpInputExp table 7115 * 7116 * @return true on success 7117 */ 7118 7119 bool warpInputExpDropTable( 7120 7120 psDB *dbh ///< Database handle 7121 7121 ); … … 7128 7128 */ 7129 7129 7130 bool p4InputExpInsert(7131 psDB *dbh, ///< Database handle 7132 psS32 p4_id,7130 bool warpInputExpInsert( 7131 psDB *dbh, ///< Database handle 7132 psS32 warp_id, 7133 7133 const char *exp_tag, 7134 psS32 p3_version,7134 psS32 cam_version, 7135 7135 bool magiced 7136 7136 ); … … 7141 7141 */ 7142 7142 7143 long long p4InputExpDelete(7143 long long warpInputExpDelete( 7144 7144 psDB *dbh, ///< Database handle 7145 7145 const psMetadata *where, ///< Row match criteria … … 7147 7147 ); 7148 7148 7149 /** Insert a single p4InputExpRow object into a table7149 /** Insert a single warpInputExpRow object into a table 7150 7150 * 7151 7151 * This function constructs and inserts a single row based on it's parameters. … … 7154 7154 */ 7155 7155 7156 bool p4InputExpInsertObject(7157 psDB *dbh, ///< Database handle 7158 p4InputExpRow *object ///< p4InputExpRow object7159 ); 7160 7161 /** Insert an array of p4InputExpRow object into a table7156 bool warpInputExpInsertObject( 7157 psDB *dbh, ///< Database handle 7158 warpInputExpRow *object ///< warpInputExpRow object 7159 ); 7160 7161 /** Insert an array of warpInputExpRow object into a table 7162 7162 * 7163 7163 * This function constructs and inserts multiple rows based on it's parameters. … … 7166 7166 */ 7167 7167 7168 bool p4InputExpInsertObjects(7169 psDB *dbh, ///< Database handle 7170 psArray *objects ///< array of p4InputExpRow objects7171 ); 7172 7173 /** Insert data from a binary FITS table p4InputExpRow into the database7168 bool warpInputExpInsertObjects( 7169 psDB *dbh, ///< Database handle 7170 psArray *objects ///< array of warpInputExpRow objects 7171 ); 7172 7173 /** Insert data from a binary FITS table warpInputExpRow into the database 7174 7174 * 7175 7175 * This function expects a psFits object with a FITS table as the first … … 7181 7181 */ 7182 7182 7183 bool p4InputExpInsertFits(7183 bool warpInputExpInsertFits( 7184 7184 psDB *dbh, ///< Database handle 7185 7185 const psFits *fits ///< psFits object … … 7196 7196 */ 7197 7197 7198 bool p4InputExpSelectRowsFits(7198 bool warpInputExpSelectRowsFits( 7199 7199 psDB *dbh, ///< Database handle 7200 7200 psFits *fits, ///< psFits object … … 7203 7203 ); 7204 7204 7205 /** Convert a p4InputExpRow into an equivalent psMetadata7205 /** Convert a warpInputExpRow into an equivalent psMetadata 7206 7206 * 7207 7207 * @return A psMetadata pointer or NULL on error 7208 7208 */ 7209 7209 7210 psMetadata * p4InputExpMetadataFromObject(7211 const p4InputExpRow *object ///< fooRow to convert into a psMetadata7210 psMetadata *warpInputExpMetadataFromObject( 7211 const warpInputExpRow *object ///< fooRow to convert into a psMetadata 7212 7212 ); 7213 7213 7214 7214 /** Convert a psMetadata into an equivalent fooRow 7215 7215 * 7216 * @return A p4InputExpRow pointer or NULL on error7217 */ 7218 7219 p4InputExpRow *p4InputExpObjectFromMetadata(7216 * @return A warpInputExpRow pointer or NULL on error 7217 */ 7218 7219 warpInputExpRow *warpInputExpObjectFromMetadata( 7220 7220 psMetadata *md ///< psMetadata to convert into a fooRow 7221 7221 ); 7222 /** Selects up to limit rows from the database and returns as p4InputExpRow objects in a psArray7222 /** Selects up to limit rows from the database and returns as warpInputExpRow objects in a psArray 7223 7223 * 7224 7224 * See psDBSelectRows() for documentation on the format of where. … … 7227 7227 */ 7228 7228 7229 psArray * p4InputExpSelectRowObjects(7229 psArray *warpInputExpSelectRowObjects( 7230 7230 psDB *dbh, ///< Database handle 7231 7231 const psMetadata *where, ///< Row match criteria 7232 7232 unsigned long long limit ///< Maximum number of elements to return 7233 7233 ); 7234 /** Deletes a row from the database coresponding to an p4InputExp7234 /** Deletes a row from the database coresponding to an warpInputExp 7235 7235 * 7236 7236 * Note that a 'where' search psMetadata is constructed from each object and … … 7240 7240 */ 7241 7241 7242 bool p4InputExpDeleteObject(7243 psDB *dbh, ///< Database handle 7244 const p4InputExpRow *object ///< Object to delete7242 bool warpInputExpDeleteObject( 7243 psDB *dbh, ///< Database handle 7244 const warpInputExpRow *object ///< Object to delete 7245 7245 ); 7246 7246 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 7252 7252 */ 7253 7253 7254 long long p4InputExpDeleteRowObjects(7254 long long warpInputExpDeleteRowObjects( 7255 7255 psDB *dbh, ///< Database handle 7256 7256 const psArray *objects, ///< Array of objects to delete 7257 7257 unsigned long long limit ///< Maximum number of elements to delete 7258 7258 ); 7259 /** Formats and prints an array of p4InputExpRow objects7259 /** Formats and prints an array of warpInputExpRow objects 7260 7260 * 7261 7261 * When mdcf is set the formated output is in psMetadataConfig … … 7265 7265 */ 7266 7266 7267 bool p4InputExpPrintObjects(7267 bool warpInputExpPrintObjects( 7268 7268 FILE *stream, ///< a stream 7269 psArray *objects, ///< An array of p4InputExpRow objects7269 psArray *objects, ///< An array of warpInputExpRow objects 7270 7270 bool mdcf ///< format as mdconfig or simple 7271 7271 ); 7272 /** Formats and prints an p4InputExpRow object7272 /** Formats and prints an warpInputExpRow object 7273 7273 * 7274 7274 * When mdcf is set the formated output is in psMetadataConfig … … 7278 7278 */ 7279 7279 7280 bool p4InputExpPrintObject(7280 bool warpInputExpPrintObject( 7281 7281 FILE *stream, ///< a stream 7282 p4InputExpRow *object, ///< an p4InputExpRow object7282 warpInputExpRow *object, ///< an warpInputExpRow object 7283 7283 bool mdcf ///< format as mdconfig or simple 7284 7284 ); 7285 /** p4SkyCellMapRow data structure7286 * 7287 * Structure for representing a single row of p4SkyCellMap table data.7285 /** warpSkyCellMapRow data structure 7286 * 7287 * Structure for representing a single row of warpSkyCellMap table data. 7288 7288 */ 7289 7289 7290 7290 typedef struct { 7291 psS32 p4_id;7291 psS32 warp_id; 7292 7292 char *skycell_id; 7293 7293 char *tess_id; 7294 7294 char *exp_tag; 7295 psS32 p3_version;7295 psS32 cam_version; 7296 7296 char *class_id; 7297 } p4SkyCellMapRow;7298 7299 /** Creates a new p4SkyCellMapRow object7300 * 7301 * @return A new p4SkyCellMapRow object or NULL on failure.7302 */ 7303 7304 p4SkyCellMapRow *p4SkyCellMapRowAlloc(7305 psS32 p4_id,7297 } warpSkyCellMapRow; 7298 7299 /** Creates a new warpSkyCellMapRow object 7300 * 7301 * @return A new warpSkyCellMapRow object or NULL on failure. 7302 */ 7303 7304 warpSkyCellMapRow *warpSkyCellMapRowAlloc( 7305 psS32 warp_id, 7306 7306 const char *skycell_id, 7307 7307 const char *tess_id, 7308 7308 const char *exp_tag, 7309 psS32 p3_version,7309 psS32 cam_version, 7310 7310 const char *class_id 7311 7311 ); 7312 7312 7313 /** Creates a new p4SkyCellMap table7314 * 7315 * @return true on success 7316 */ 7317 7318 bool p4SkyCellMapCreateTable(7313 /** Creates a new warpSkyCellMap table 7314 * 7315 * @return true on success 7316 */ 7317 7318 bool warpSkyCellMapCreateTable( 7319 7319 psDB *dbh ///< Database handle 7320 7320 ); 7321 7321 7322 /** Deletes a p4SkyCellMap table7323 * 7324 * @return true on success 7325 */ 7326 7327 bool p4SkyCellMapDropTable(7322 /** Deletes a warpSkyCellMap table 7323 * 7324 * @return true on success 7325 */ 7326 7327 bool warpSkyCellMapDropTable( 7328 7328 psDB *dbh ///< Database handle 7329 7329 ); … … 7336 7336 */ 7337 7337 7338 bool p4SkyCellMapInsert(7339 psDB *dbh, ///< Database handle 7340 psS32 p4_id,7338 bool warpSkyCellMapInsert( 7339 psDB *dbh, ///< Database handle 7340 psS32 warp_id, 7341 7341 const char *skycell_id, 7342 7342 const char *tess_id, 7343 7343 const char *exp_tag, 7344 psS32 p3_version,7344 psS32 cam_version, 7345 7345 const char *class_id 7346 7346 ); … … 7351 7351 */ 7352 7352 7353 long long p4SkyCellMapDelete(7353 long long warpSkyCellMapDelete( 7354 7354 psDB *dbh, ///< Database handle 7355 7355 const psMetadata *where, ///< Row match criteria … … 7357 7357 ); 7358 7358 7359 /** Insert a single p4SkyCellMapRow object into a table7359 /** Insert a single warpSkyCellMapRow object into a table 7360 7360 * 7361 7361 * This function constructs and inserts a single row based on it's parameters. … … 7364 7364 */ 7365 7365 7366 bool p4SkyCellMapInsertObject(7367 psDB *dbh, ///< Database handle 7368 p4SkyCellMapRow *object ///< p4SkyCellMapRow object7369 ); 7370 7371 /** Insert an array of p4SkyCellMapRow object into a table7366 bool warpSkyCellMapInsertObject( 7367 psDB *dbh, ///< Database handle 7368 warpSkyCellMapRow *object ///< warpSkyCellMapRow object 7369 ); 7370 7371 /** Insert an array of warpSkyCellMapRow object into a table 7372 7372 * 7373 7373 * This function constructs and inserts multiple rows based on it's parameters. … … 7376 7376 */ 7377 7377 7378 bool p4SkyCellMapInsertObjects(7379 psDB *dbh, ///< Database handle 7380 psArray *objects ///< array of p4SkyCellMapRow objects7381 ); 7382 7383 /** Insert data from a binary FITS table p4SkyCellMapRow into the database7378 bool warpSkyCellMapInsertObjects( 7379 psDB *dbh, ///< Database handle 7380 psArray *objects ///< array of warpSkyCellMapRow objects 7381 ); 7382 7383 /** Insert data from a binary FITS table warpSkyCellMapRow into the database 7384 7384 * 7385 7385 * This function expects a psFits object with a FITS table as the first … … 7391 7391 */ 7392 7392 7393 bool p4SkyCellMapInsertFits(7393 bool warpSkyCellMapInsertFits( 7394 7394 psDB *dbh, ///< Database handle 7395 7395 const psFits *fits ///< psFits object … … 7406 7406 */ 7407 7407 7408 bool p4SkyCellMapSelectRowsFits(7408 bool warpSkyCellMapSelectRowsFits( 7409 7409 psDB *dbh, ///< Database handle 7410 7410 psFits *fits, ///< psFits object … … 7413 7413 ); 7414 7414 7415 /** Convert a p4SkyCellMapRow into an equivalent psMetadata7415 /** Convert a warpSkyCellMapRow into an equivalent psMetadata 7416 7416 * 7417 7417 * @return A psMetadata pointer or NULL on error 7418 7418 */ 7419 7419 7420 psMetadata * p4SkyCellMapMetadataFromObject(7421 const p4SkyCellMapRow *object ///< fooRow to convert into a psMetadata7420 psMetadata *warpSkyCellMapMetadataFromObject( 7421 const warpSkyCellMapRow *object ///< fooRow to convert into a psMetadata 7422 7422 ); 7423 7423 7424 7424 /** Convert a psMetadata into an equivalent fooRow 7425 7425 * 7426 * @return A p4SkyCellMapRow pointer or NULL on error7427 */ 7428 7429 p4SkyCellMapRow *p4SkyCellMapObjectFromMetadata(7426 * @return A warpSkyCellMapRow pointer or NULL on error 7427 */ 7428 7429 warpSkyCellMapRow *warpSkyCellMapObjectFromMetadata( 7430 7430 psMetadata *md ///< psMetadata to convert into a fooRow 7431 7431 ); 7432 /** Selects up to limit rows from the database and returns as p4SkyCellMapRow objects in a psArray7432 /** Selects up to limit rows from the database and returns as warpSkyCellMapRow objects in a psArray 7433 7433 * 7434 7434 * See psDBSelectRows() for documentation on the format of where. … … 7437 7437 */ 7438 7438 7439 psArray * p4SkyCellMapSelectRowObjects(7439 psArray *warpSkyCellMapSelectRowObjects( 7440 7440 psDB *dbh, ///< Database handle 7441 7441 const psMetadata *where, ///< Row match criteria 7442 7442 unsigned long long limit ///< Maximum number of elements to return 7443 7443 ); 7444 /** Deletes a row from the database coresponding to an p4SkyCellMap7444 /** Deletes a row from the database coresponding to an warpSkyCellMap 7445 7445 * 7446 7446 * Note that a 'where' search psMetadata is constructed from each object and … … 7450 7450 */ 7451 7451 7452 bool p4SkyCellMapDeleteObject(7453 psDB *dbh, ///< Database handle 7454 const p4SkyCellMapRow *object ///< Object to delete7452 bool warpSkyCellMapDeleteObject( 7453 psDB *dbh, ///< Database handle 7454 const warpSkyCellMapRow *object ///< Object to delete 7455 7455 ); 7456 7456 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 7462 7462 */ 7463 7463 7464 long long p4SkyCellMapDeleteRowObjects(7464 long long warpSkyCellMapDeleteRowObjects( 7465 7465 psDB *dbh, ///< Database handle 7466 7466 const psArray *objects, ///< Array of objects to delete 7467 7467 unsigned long long limit ///< Maximum number of elements to delete 7468 7468 ); 7469 /** Formats and prints an array of p4SkyCellMapRow objects7469 /** Formats and prints an array of warpSkyCellMapRow objects 7470 7470 * 7471 7471 * When mdcf is set the formated output is in psMetadataConfig … … 7475 7475 */ 7476 7476 7477 bool p4SkyCellMapPrintObjects(7477 bool warpSkyCellMapPrintObjects( 7478 7478 FILE *stream, ///< a stream 7479 psArray *objects, ///< An array of p4SkyCellMapRow objects7479 psArray *objects, ///< An array of warpSkyCellMapRow objects 7480 7480 bool mdcf ///< format as mdconfig or simple 7481 7481 ); 7482 /** Formats and prints an p4SkyCellMapRow object7482 /** Formats and prints an warpSkyCellMapRow object 7483 7483 * 7484 7484 * When mdcf is set the formated output is in psMetadataConfig … … 7488 7488 */ 7489 7489 7490 bool p4SkyCellMapPrintObject(7490 bool warpSkyCellMapPrintObject( 7491 7491 FILE *stream, ///< a stream 7492 p4SkyCellMapRow *object, ///< an p4SkyCellMapRow object7492 warpSkyCellMapRow *object, ///< an warpSkyCellMapRow object 7493 7493 bool mdcf ///< format as mdconfig or simple 7494 7494 ); 7495 /** p4SkyfileRow data structure7496 * 7497 * Structure for representing a single row of p4Skyfile table data.7495 /** warpSkyfileRow data structure 7496 * 7497 * Structure for representing a single row of warpSkyfile table data. 7498 7498 */ 7499 7499 7500 7500 typedef struct { 7501 psS32 p4_id;7501 psS32 warp_id; 7502 7502 char *skycell_id; 7503 7503 char *tess_id; … … 7505 7505 psF64 bg; 7506 7506 psF64 bg_mean_stdev; 7507 } p4SkyfileRow;7508 7509 /** Creates a new p4SkyfileRow object7510 * 7511 * @return A new p4SkyfileRow object or NULL on failure.7512 */ 7513 7514 p4SkyfileRow *p4SkyfileRowAlloc(7515 psS32 p4_id,7507 } warpSkyfileRow; 7508 7509 /** Creates a new warpSkyfileRow object 7510 * 7511 * @return A new warpSkyfileRow object or NULL on failure. 7512 */ 7513 7514 warpSkyfileRow *warpSkyfileRowAlloc( 7515 psS32 warp_id, 7516 7516 const char *skycell_id, 7517 7517 const char *tess_id, … … 7521 7521 ); 7522 7522 7523 /** Creates a new p4Skyfile table7524 * 7525 * @return true on success 7526 */ 7527 7528 bool p4SkyfileCreateTable(7523 /** Creates a new warpSkyfile table 7524 * 7525 * @return true on success 7526 */ 7527 7528 bool warpSkyfileCreateTable( 7529 7529 psDB *dbh ///< Database handle 7530 7530 ); 7531 7531 7532 /** Deletes a p4Skyfile table7533 * 7534 * @return true on success 7535 */ 7536 7537 bool p4SkyfileDropTable(7532 /** Deletes a warpSkyfile table 7533 * 7534 * @return true on success 7535 */ 7536 7537 bool warpSkyfileDropTable( 7538 7538 psDB *dbh ///< Database handle 7539 7539 ); … … 7546 7546 */ 7547 7547 7548 bool p4SkyfileInsert(7549 psDB *dbh, ///< Database handle 7550 psS32 p4_id,7548 bool warpSkyfileInsert( 7549 psDB *dbh, ///< Database handle 7550 psS32 warp_id, 7551 7551 const char *skycell_id, 7552 7552 const char *tess_id, … … 7561 7561 */ 7562 7562 7563 long long p4SkyfileDelete(7563 long long warpSkyfileDelete( 7564 7564 psDB *dbh, ///< Database handle 7565 7565 const psMetadata *where, ///< Row match criteria … … 7567 7567 ); 7568 7568 7569 /** Insert a single p4SkyfileRow object into a table7569 /** Insert a single warpSkyfileRow object into a table 7570 7570 * 7571 7571 * This function constructs and inserts a single row based on it's parameters. … … 7574 7574 */ 7575 7575 7576 bool p4SkyfileInsertObject(7577 psDB *dbh, ///< Database handle 7578 p4SkyfileRow *object ///< p4SkyfileRow object7579 ); 7580 7581 /** Insert an array of p4SkyfileRow object into a table7576 bool warpSkyfileInsertObject( 7577 psDB *dbh, ///< Database handle 7578 warpSkyfileRow *object ///< warpSkyfileRow object 7579 ); 7580 7581 /** Insert an array of warpSkyfileRow object into a table 7582 7582 * 7583 7583 * This function constructs and inserts multiple rows based on it's parameters. … … 7586 7586 */ 7587 7587 7588 bool p4SkyfileInsertObjects(7589 psDB *dbh, ///< Database handle 7590 psArray *objects ///< array of p4SkyfileRow objects7591 ); 7592 7593 /** Insert data from a binary FITS table p4SkyfileRow into the database7588 bool warpSkyfileInsertObjects( 7589 psDB *dbh, ///< Database handle 7590 psArray *objects ///< array of warpSkyfileRow objects 7591 ); 7592 7593 /** Insert data from a binary FITS table warpSkyfileRow into the database 7594 7594 * 7595 7595 * This function expects a psFits object with a FITS table as the first … … 7601 7601 */ 7602 7602 7603 bool p4SkyfileInsertFits(7603 bool warpSkyfileInsertFits( 7604 7604 psDB *dbh, ///< Database handle 7605 7605 const psFits *fits ///< psFits object … … 7616 7616 */ 7617 7617 7618 bool p4SkyfileSelectRowsFits(7618 bool warpSkyfileSelectRowsFits( 7619 7619 psDB *dbh, ///< Database handle 7620 7620 psFits *fits, ///< psFits object … … 7623 7623 ); 7624 7624 7625 /** Convert a p4SkyfileRow into an equivalent psMetadata7625 /** Convert a warpSkyfileRow into an equivalent psMetadata 7626 7626 * 7627 7627 * @return A psMetadata pointer or NULL on error 7628 7628 */ 7629 7629 7630 psMetadata * p4SkyfileMetadataFromObject(7631 const p4SkyfileRow *object ///< fooRow to convert into a psMetadata7630 psMetadata *warpSkyfileMetadataFromObject( 7631 const warpSkyfileRow *object ///< fooRow to convert into a psMetadata 7632 7632 ); 7633 7633 7634 7634 /** Convert a psMetadata into an equivalent fooRow 7635 7635 * 7636 * @return A p4SkyfileRow pointer or NULL on error7637 */ 7638 7639 p4SkyfileRow *p4SkyfileObjectFromMetadata(7636 * @return A warpSkyfileRow pointer or NULL on error 7637 */ 7638 7639 warpSkyfileRow *warpSkyfileObjectFromMetadata( 7640 7640 psMetadata *md ///< psMetadata to convert into a fooRow 7641 7641 ); 7642 /** Selects up to limit rows from the database and returns as p4SkyfileRow objects in a psArray7642 /** Selects up to limit rows from the database and returns as warpSkyfileRow objects in a psArray 7643 7643 * 7644 7644 * See psDBSelectRows() for documentation on the format of where. … … 7647 7647 */ 7648 7648 7649 psArray * p4SkyfileSelectRowObjects(7649 psArray *warpSkyfileSelectRowObjects( 7650 7650 psDB *dbh, ///< Database handle 7651 7651 const psMetadata *where, ///< Row match criteria 7652 7652 unsigned long long limit ///< Maximum number of elements to return 7653 7653 ); 7654 /** Deletes a row from the database coresponding to an p4Skyfile7654 /** Deletes a row from the database coresponding to an warpSkyfile 7655 7655 * 7656 7656 * Note that a 'where' search psMetadata is constructed from each object and … … 7660 7660 */ 7661 7661 7662 bool p4SkyfileDeleteObject(7663 psDB *dbh, ///< Database handle 7664 const p4SkyfileRow *object ///< Object to delete7662 bool warpSkyfileDeleteObject( 7663 psDB *dbh, ///< Database handle 7664 const warpSkyfileRow *object ///< Object to delete 7665 7665 ); 7666 7666 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 7672 7672 */ 7673 7673 7674 long long p4SkyfileDeleteRowObjects(7674 long long warpSkyfileDeleteRowObjects( 7675 7675 psDB *dbh, ///< Database handle 7676 7676 const psArray *objects, ///< Array of objects to delete 7677 7677 unsigned long long limit ///< Maximum number of elements to delete 7678 7678 ); 7679 /** Formats and prints an array of p4SkyfileRow objects7679 /** Formats and prints an array of warpSkyfileRow objects 7680 7680 * 7681 7681 * When mdcf is set the formated output is in psMetadataConfig … … 7685 7685 */ 7686 7686 7687 bool p4SkyfilePrintObjects(7687 bool warpSkyfilePrintObjects( 7688 7688 FILE *stream, ///< a stream 7689 psArray *objects, ///< An array of p4SkyfileRow objects7689 psArray *objects, ///< An array of warpSkyfileRow objects 7690 7690 bool mdcf ///< format as mdconfig or simple 7691 7691 ); 7692 /** Formats and prints an p4SkyfileRow object7692 /** Formats and prints an warpSkyfileRow object 7693 7693 * 7694 7694 * When mdcf is set the formated output is in psMetadataConfig … … 7698 7698 */ 7699 7699 7700 bool p4SkyfilePrintObject(7700 bool warpSkyfilePrintObject( 7701 7701 FILE *stream, ///< a stream 7702 p4SkyfileRow *object, ///< an p4SkyfileRow object7702 warpSkyfileRow *object, ///< an warpSkyfileRow object 7703 7703 bool mdcf ///< format as mdconfig or simple 7704 7704 ); 7705 /** p5RunRow data structure7706 * 7707 * Structure for representing a single row of p5Run table data.7705 /** diffRunRow data structure 7706 * 7707 * Structure for representing a single row of diffRun table data. 7708 7708 */ 7709 7709 7710 7710 typedef struct { 7711 psS32 p5_id;7711 psS32 diff_id; 7712 7712 char *state; 7713 7713 char *workdir; … … 7716 7716 char *skycell_id; 7717 7717 char *tess_id; 7718 } p5RunRow;7719 7720 /** Creates a new p5RunRow object7721 * 7722 * @return A new p5RunRow object or NULL on failure.7723 */ 7724 7725 p5RunRow *p5RunRowAlloc(7726 psS32 p5_id,7718 } diffRunRow; 7719 7720 /** Creates a new diffRunRow object 7721 * 7722 * @return A new diffRunRow object or NULL on failure. 7723 */ 7724 7725 diffRunRow *diffRunRowAlloc( 7726 psS32 diff_id, 7727 7727 const char *state, 7728 7728 const char *workdir, … … 7733 7733 ); 7734 7734 7735 /** Creates a new p5Run table7736 * 7737 * @return true on success 7738 */ 7739 7740 bool p5RunCreateTable(7735 /** Creates a new diffRun table 7736 * 7737 * @return true on success 7738 */ 7739 7740 bool diffRunCreateTable( 7741 7741 psDB *dbh ///< Database handle 7742 7742 ); 7743 7743 7744 /** Deletes a p5Run table7745 * 7746 * @return true on success 7747 */ 7748 7749 bool p5RunDropTable(7744 /** Deletes a diffRun table 7745 * 7746 * @return true on success 7747 */ 7748 7749 bool diffRunDropTable( 7750 7750 psDB *dbh ///< Database handle 7751 7751 ); … … 7758 7758 */ 7759 7759 7760 bool p5RunInsert(7761 psDB *dbh, ///< Database handle 7762 psS32 p5_id,7760 bool diffRunInsert( 7761 psDB *dbh, ///< Database handle 7762 psS32 diff_id, 7763 7763 const char *state, 7764 7764 const char *workdir, … … 7774 7774 */ 7775 7775 7776 long long p5RunDelete(7776 long long diffRunDelete( 7777 7777 psDB *dbh, ///< Database handle 7778 7778 const psMetadata *where, ///< Row match criteria … … 7780 7780 ); 7781 7781 7782 /** Insert a single p5RunRow object into a table7782 /** Insert a single diffRunRow object into a table 7783 7783 * 7784 7784 * This function constructs and inserts a single row based on it's parameters. … … 7787 7787 */ 7788 7788 7789 bool p5RunInsertObject(7790 psDB *dbh, ///< Database handle 7791 p5RunRow *object ///< p5RunRow object7792 ); 7793 7794 /** Insert an array of p5RunRow object into a table7789 bool diffRunInsertObject( 7790 psDB *dbh, ///< Database handle 7791 diffRunRow *object ///< diffRunRow object 7792 ); 7793 7794 /** Insert an array of diffRunRow object into a table 7795 7795 * 7796 7796 * This function constructs and inserts multiple rows based on it's parameters. … … 7799 7799 */ 7800 7800 7801 bool p5RunInsertObjects(7802 psDB *dbh, ///< Database handle 7803 psArray *objects ///< array of p5RunRow objects7804 ); 7805 7806 /** Insert data from a binary FITS table p5RunRow into the database7801 bool diffRunInsertObjects( 7802 psDB *dbh, ///< Database handle 7803 psArray *objects ///< array of diffRunRow objects 7804 ); 7805 7806 /** Insert data from a binary FITS table diffRunRow into the database 7807 7807 * 7808 7808 * This function expects a psFits object with a FITS table as the first … … 7814 7814 */ 7815 7815 7816 bool p5RunInsertFits(7816 bool diffRunInsertFits( 7817 7817 psDB *dbh, ///< Database handle 7818 7818 const psFits *fits ///< psFits object … … 7829 7829 */ 7830 7830 7831 bool p5RunSelectRowsFits(7831 bool diffRunSelectRowsFits( 7832 7832 psDB *dbh, ///< Database handle 7833 7833 psFits *fits, ///< psFits object … … 7836 7836 ); 7837 7837 7838 /** Convert a p5RunRow into an equivalent psMetadata7838 /** Convert a diffRunRow into an equivalent psMetadata 7839 7839 * 7840 7840 * @return A psMetadata pointer or NULL on error 7841 7841 */ 7842 7842 7843 psMetadata * p5RunMetadataFromObject(7844 const p5RunRow*object ///< fooRow to convert into a psMetadata7843 psMetadata *diffRunMetadataFromObject( 7844 const diffRunRow *object ///< fooRow to convert into a psMetadata 7845 7845 ); 7846 7846 7847 7847 /** Convert a psMetadata into an equivalent fooRow 7848 7848 * 7849 * @return A p5RunRow pointer or NULL on error7850 */ 7851 7852 p5RunRow *p5RunObjectFromMetadata(7849 * @return A diffRunRow pointer or NULL on error 7850 */ 7851 7852 diffRunRow *diffRunObjectFromMetadata( 7853 7853 psMetadata *md ///< psMetadata to convert into a fooRow 7854 7854 ); 7855 /** Selects up to limit rows from the database and returns as p5RunRow objects in a psArray7855 /** Selects up to limit rows from the database and returns as diffRunRow objects in a psArray 7856 7856 * 7857 7857 * See psDBSelectRows() for documentation on the format of where. … … 7860 7860 */ 7861 7861 7862 psArray * p5RunSelectRowObjects(7862 psArray *diffRunSelectRowObjects( 7863 7863 psDB *dbh, ///< Database handle 7864 7864 const psMetadata *where, ///< Row match criteria 7865 7865 unsigned long long limit ///< Maximum number of elements to return 7866 7866 ); 7867 /** Deletes a row from the database coresponding to an p5Run7867 /** Deletes a row from the database coresponding to an diffRun 7868 7868 * 7869 7869 * Note that a 'where' search psMetadata is constructed from each object and … … 7873 7873 */ 7874 7874 7875 bool p5RunDeleteObject(7876 psDB *dbh, ///< Database handle 7877 const p5RunRow *object ///< Object to delete7875 bool diffRunDeleteObject( 7876 psDB *dbh, ///< Database handle 7877 const diffRunRow *object ///< Object to delete 7878 7878 ); 7879 7879 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 7885 7885 */ 7886 7886 7887 long long p5RunDeleteRowObjects(7887 long long diffRunDeleteRowObjects( 7888 7888 psDB *dbh, ///< Database handle 7889 7889 const psArray *objects, ///< Array of objects to delete 7890 7890 unsigned long long limit ///< Maximum number of elements to delete 7891 7891 ); 7892 /** Formats and prints an array of p5RunRow objects7892 /** Formats and prints an array of diffRunRow objects 7893 7893 * 7894 7894 * When mdcf is set the formated output is in psMetadataConfig … … 7898 7898 */ 7899 7899 7900 bool p5RunPrintObjects(7900 bool diffRunPrintObjects( 7901 7901 FILE *stream, ///< a stream 7902 psArray *objects, ///< An array of p5RunRow objects7902 psArray *objects, ///< An array of diffRunRow objects 7903 7903 bool mdcf ///< format as mdconfig or simple 7904 7904 ); 7905 /** Formats and prints an p5RunRow object7905 /** Formats and prints an diffRunRow object 7906 7906 * 7907 7907 * When mdcf is set the formated output is in psMetadataConfig … … 7911 7911 */ 7912 7912 7913 bool p5RunPrintObject(7913 bool diffRunPrintObject( 7914 7914 FILE *stream, ///< a stream 7915 p5RunRow *object, ///< an p5RunRow object7915 diffRunRow *object, ///< an diffRunRow object 7916 7916 bool mdcf ///< format as mdconfig or simple 7917 7917 ); 7918 /** p5InputSkyfileRow data structure7919 * 7920 * Structure for representing a single row of p5InputSkyfile table data.7918 /** diffInputSkyfileRow data structure 7919 * 7920 * Structure for representing a single row of diffInputSkyfile table data. 7921 7921 */ 7922 7922 7923 7923 typedef struct { 7924 psS32 p5_id;7925 psS32 p4_id;7924 psS32 diff_id; 7925 psS32 warp_id; 7926 7926 char *skycell_id; 7927 7927 char *tess_id; 7928 7928 char *kind; 7929 7929 bool template; 7930 } p5InputSkyfileRow;7931 7932 /** Creates a new p5InputSkyfileRow object7933 * 7934 * @return A new p5InputSkyfileRow object or NULL on failure.7935 */ 7936 7937 p5InputSkyfileRow *p5InputSkyfileRowAlloc(7938 psS32 p5_id,7939 psS32 p4_id,7930 } diffInputSkyfileRow; 7931 7932 /** Creates a new diffInputSkyfileRow object 7933 * 7934 * @return A new diffInputSkyfileRow object or NULL on failure. 7935 */ 7936 7937 diffInputSkyfileRow *diffInputSkyfileRowAlloc( 7938 psS32 diff_id, 7939 psS32 warp_id, 7940 7940 const char *skycell_id, 7941 7941 const char *tess_id, … … 7944 7944 ); 7945 7945 7946 /** Creates a new p5InputSkyfile table7947 * 7948 * @return true on success 7949 */ 7950 7951 bool p5InputSkyfileCreateTable(7946 /** Creates a new diffInputSkyfile table 7947 * 7948 * @return true on success 7949 */ 7950 7951 bool diffInputSkyfileCreateTable( 7952 7952 psDB *dbh ///< Database handle 7953 7953 ); 7954 7954 7955 /** Deletes a p5InputSkyfile table7956 * 7957 * @return true on success 7958 */ 7959 7960 bool p5InputSkyfileDropTable(7955 /** Deletes a diffInputSkyfile table 7956 * 7957 * @return true on success 7958 */ 7959 7960 bool diffInputSkyfileDropTable( 7961 7961 psDB *dbh ///< Database handle 7962 7962 ); … … 7969 7969 */ 7970 7970 7971 bool p5InputSkyfileInsert(7972 psDB *dbh, ///< Database handle 7973 psS32 p5_id,7974 psS32 p4_id,7971 bool diffInputSkyfileInsert( 7972 psDB *dbh, ///< Database handle 7973 psS32 diff_id, 7974 psS32 warp_id, 7975 7975 const char *skycell_id, 7976 7976 const char *tess_id, … … 7984 7984 */ 7985 7985 7986 long long p5InputSkyfileDelete(7986 long long diffInputSkyfileDelete( 7987 7987 psDB *dbh, ///< Database handle 7988 7988 const psMetadata *where, ///< Row match criteria … … 7990 7990 ); 7991 7991 7992 /** Insert a single p5InputSkyfileRow object into a table7992 /** Insert a single diffInputSkyfileRow 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 p5InputSkyfileInsertObject(8000 psDB *dbh, ///< Database handle 8001 p5InputSkyfileRow *object ///< p5InputSkyfileRow object8002 ); 8003 8004 /** Insert an array of p5InputSkyfileRow object into a table7999 bool diffInputSkyfileInsertObject( 8000 psDB *dbh, ///< Database handle 8001 diffInputSkyfileRow *object ///< diffInputSkyfileRow object 8002 ); 8003 8004 /** Insert an array of diffInputSkyfileRow 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 p5InputSkyfileInsertObjects(8012 psDB *dbh, ///< Database handle 8013 psArray *objects ///< array of p5InputSkyfileRow objects8014 ); 8015 8016 /** Insert data from a binary FITS table p5InputSkyfileRow into the database8011 bool diffInputSkyfileInsertObjects( 8012 psDB *dbh, ///< Database handle 8013 psArray *objects ///< array of diffInputSkyfileRow objects 8014 ); 8015 8016 /** Insert data from a binary FITS table diffInputSkyfileRow 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 p5InputSkyfileInsertFits(8026 bool diffInputSkyfileInsertFits( 8027 8027 psDB *dbh, ///< Database handle 8028 8028 const psFits *fits ///< psFits object … … 8039 8039 */ 8040 8040 8041 bool p5InputSkyfileSelectRowsFits(8041 bool diffInputSkyfileSelectRowsFits( 8042 8042 psDB *dbh, ///< Database handle 8043 8043 psFits *fits, ///< psFits object … … 8046 8046 ); 8047 8047 8048 /** Convert a p5InputSkyfileRow into an equivalent psMetadata8048 /** Convert a diffInputSkyfileRow into an equivalent psMetadata 8049 8049 * 8050 8050 * @return A psMetadata pointer or NULL on error 8051 8051 */ 8052 8052 8053 psMetadata * p5InputSkyfileMetadataFromObject(8054 const p5InputSkyfileRow *object ///< fooRow to convert into a psMetadata8053 psMetadata *diffInputSkyfileMetadataFromObject( 8054 const diffInputSkyfileRow *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 p5InputSkyfileRow pointer or NULL on error8060 */ 8061 8062 p5InputSkyfileRow *p5InputSkyfileObjectFromMetadata(8059 * @return A diffInputSkyfileRow pointer or NULL on error 8060 */ 8061 8062 diffInputSkyfileRow *diffInputSkyfileObjectFromMetadata( 8063 8063 psMetadata *md ///< psMetadata to convert into a fooRow 8064 8064 ); 8065 /** Selects up to limit rows from the database and returns as p5InputSkyfileRow objects in a psArray8065 /** Selects up to limit rows from the database and returns as diffInputSkyfileRow objects in a psArray 8066 8066 * 8067 8067 * See psDBSelectRows() for documentation on the format of where. … … 8070 8070 */ 8071 8071 8072 psArray * p5InputSkyfileSelectRowObjects(8072 psArray *diffInputSkyfileSelectRowObjects( 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 p5InputSkyfile8077 /** Deletes a row from the database coresponding to an diffInputSkyfile 8078 8078 * 8079 8079 * Note that a 'where' search psMetadata is constructed from each object and … … 8083 8083 */ 8084 8084 8085 bool p5InputSkyfileDeleteObject(8086 psDB *dbh, ///< Database handle 8087 const p5InputSkyfileRow *object ///< Object to delete8085 bool diffInputSkyfileDeleteObject( 8086 psDB *dbh, ///< Database handle 8087 const diffInputSkyfileRow *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 p5InputSkyfileDeleteRowObjects(8097 long long diffInputSkyfileDeleteRowObjects( 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 p5InputSkyfileRow objects8102 /** Formats and prints an array of diffInputSkyfileRow objects 8103 8103 * 8104 8104 * When mdcf is set the formated output is in psMetadataConfig … … 8108 8108 */ 8109 8109 8110 bool p5InputSkyfilePrintObjects(8110 bool diffInputSkyfilePrintObjects( 8111 8111 FILE *stream, ///< a stream 8112 psArray *objects, ///< An array of p5InputSkyfileRow objects8112 psArray *objects, ///< An array of diffInputSkyfileRow objects 8113 8113 bool mdcf ///< format as mdconfig or simple 8114 8114 ); 8115 /** Formats and prints an p5InputSkyfileRow object8115 /** Formats and prints an diffInputSkyfileRow object 8116 8116 * 8117 8117 * When mdcf is set the formated output is in psMetadataConfig … … 8121 8121 */ 8122 8122 8123 bool p5InputSkyfilePrintObject(8123 bool diffInputSkyfilePrintObject( 8124 8124 FILE *stream, ///< a stream 8125 p5InputSkyfileRow *object, ///< an p5InputSkyfileRow object8125 diffInputSkyfileRow *object, ///< an diffInputSkyfileRow object 8126 8126 bool mdcf ///< format as mdconfig or simple 8127 8127 ); 8128 /** p5DiffSkyfileRow data structure8129 * 8130 * Structure for representing a single row of p5DiffSkyfile table data.8128 /** diffSkyfileRow data structure 8129 * 8130 * Structure for representing a single row of diffSkyfile table data. 8131 8131 */ 8132 8132 8133 8133 typedef struct { 8134 psS32 p5_id;8134 psS32 diff_id; 8135 8135 char *uri; 8136 8136 psF64 bg; 8137 8137 psF64 bg_mean_stdev; 8138 } p5DiffSkyfileRow;8139 8140 /** Creates a new p5DiffSkyfileRow object8141 * 8142 * @return A new p5DiffSkyfileRow object or NULL on failure.8143 */ 8144 8145 p5DiffSkyfileRow *p5DiffSkyfileRowAlloc(8146 psS32 p5_id,8138 } diffSkyfileRow; 8139 8140 /** Creates a new diffSkyfileRow object 8141 * 8142 * @return A new diffSkyfileRow object or NULL on failure. 8143 */ 8144 8145 diffSkyfileRow *diffSkyfileRowAlloc( 8146 psS32 diff_id, 8147 8147 const char *uri, 8148 8148 psF64 bg, … … 8150 8150 ); 8151 8151 8152 /** Creates a new p5DiffSkyfile table8153 * 8154 * @return true on success 8155 */ 8156 8157 bool p5DiffSkyfileCreateTable(8152 /** Creates a new diffSkyfile table 8153 * 8154 * @return true on success 8155 */ 8156 8157 bool diffSkyfileCreateTable( 8158 8158 psDB *dbh ///< Database handle 8159 8159 ); 8160 8160 8161 /** Deletes a p5DiffSkyfile table8162 * 8163 * @return true on success 8164 */ 8165 8166 bool p5DiffSkyfileDropTable(8161 /** Deletes a diffSkyfile table 8162 * 8163 * @return true on success 8164 */ 8165 8166 bool diffSkyfileDropTable( 8167 8167 psDB *dbh ///< Database handle 8168 8168 ); … … 8175 8175 */ 8176 8176 8177 bool p5DiffSkyfileInsert(8178 psDB *dbh, ///< Database handle 8179 psS32 p5_id,8177 bool diffSkyfileInsert( 8178 psDB *dbh, ///< Database handle 8179 psS32 diff_id, 8180 8180 const char *uri, 8181 8181 psF64 bg, … … 8188 8188 */ 8189 8189 8190 long long p5DiffSkyfileDelete(8190 long long diffSkyfileDelete( 8191 8191 psDB *dbh, ///< Database handle 8192 8192 const psMetadata *where, ///< Row match criteria … … 8194 8194 ); 8195 8195 8196 /** Insert a single p5DiffSkyfileRow object into a table8196 /** Insert a single diffSkyfileRow object into a table 8197 8197 * 8198 8198 * This function constructs and inserts a single row based on it's parameters. … … 8201 8201 */ 8202 8202 8203 bool p5DiffSkyfileInsertObject(8204 psDB *dbh, ///< Database handle 8205 p5DiffSkyfileRow *object ///< p5DiffSkyfileRow object8206 ); 8207 8208 /** Insert an array of p5DiffSkyfileRow object into a table8203 bool diffSkyfileInsertObject( 8204 psDB *dbh, ///< Database handle 8205 diffSkyfileRow *object ///< diffSkyfileRow object 8206 ); 8207 8208 /** Insert an array of diffSkyfileRow object into a table 8209 8209 * 8210 8210 * This function constructs and inserts multiple rows based on it's parameters. … … 8213 8213 */ 8214 8214 8215 bool p5DiffSkyfileInsertObjects(8216 psDB *dbh, ///< Database handle 8217 psArray *objects ///< array of p5DiffSkyfileRow objects8218 ); 8219 8220 /** Insert data from a binary FITS table p5DiffSkyfileRow into the database8215 bool diffSkyfileInsertObjects( 8216 psDB *dbh, ///< Database handle 8217 psArray *objects ///< array of diffSkyfileRow objects 8218 ); 8219 8220 /** Insert data from a binary FITS table diffSkyfileRow into the database 8221 8221 * 8222 8222 * This function expects a psFits object with a FITS table as the first … … 8228 8228 */ 8229 8229 8230 bool p5DiffSkyfileInsertFits(8230 bool diffSkyfileInsertFits( 8231 8231 psDB *dbh, ///< Database handle 8232 8232 const psFits *fits ///< psFits object … … 8243 8243 */ 8244 8244 8245 bool p5DiffSkyfileSelectRowsFits(8245 bool diffSkyfileSelectRowsFits( 8246 8246 psDB *dbh, ///< Database handle 8247 8247 psFits *fits, ///< psFits object … … 8250 8250 ); 8251 8251 8252 /** Convert a p5DiffSkyfileRow into an equivalent psMetadata8252 /** Convert a diffSkyfileRow into an equivalent psMetadata 8253 8253 * 8254 8254 * @return A psMetadata pointer or NULL on error 8255 8255 */ 8256 8256 8257 psMetadata * p5DiffSkyfileMetadataFromObject(8258 const p5DiffSkyfileRow *object ///< fooRow to convert into a psMetadata8257 psMetadata *diffSkyfileMetadataFromObject( 8258 const diffSkyfileRow *object ///< fooRow to convert into a psMetadata 8259 8259 ); 8260 8260 8261 8261 /** Convert a psMetadata into an equivalent fooRow 8262 8262 * 8263 * @return A p5DiffSkyfileRow pointer or NULL on error8264 */ 8265 8266 p5DiffSkyfileRow *p5DiffSkyfileObjectFromMetadata(8263 * @return A diffSkyfileRow pointer or NULL on error 8264 */ 8265 8266 diffSkyfileRow *diffSkyfileObjectFromMetadata( 8267 8267 psMetadata *md ///< psMetadata to convert into a fooRow 8268 8268 ); 8269 /** Selects up to limit rows from the database and returns as p5DiffSkyfileRow objects in a psArray8269 /** Selects up to limit rows from the database and returns as diffSkyfileRow objects in a psArray 8270 8270 * 8271 8271 * See psDBSelectRows() for documentation on the format of where. … … 8274 8274 */ 8275 8275 8276 psArray * p5DiffSkyfileSelectRowObjects(8276 psArray *diffSkyfileSelectRowObjects( 8277 8277 psDB *dbh, ///< Database handle 8278 8278 const psMetadata *where, ///< Row match criteria 8279 8279 unsigned long long limit ///< Maximum number of elements to return 8280 8280 ); 8281 /** Deletes a row from the database coresponding to an p5DiffSkyfile8281 /** Deletes a row from the database coresponding to an diffSkyfile 8282 8282 * 8283 8283 * Note that a 'where' search psMetadata is constructed from each object and … … 8287 8287 */ 8288 8288 8289 bool p5DiffSkyfileDeleteObject(8290 psDB *dbh, ///< Database handle 8291 const p5DiffSkyfileRow *object ///< Object to delete8289 bool diffSkyfileDeleteObject( 8290 psDB *dbh, ///< Database handle 8291 const diffSkyfileRow *object ///< Object to delete 8292 8292 ); 8293 8293 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8299 8299 */ 8300 8300 8301 long long p5DiffSkyfileDeleteRowObjects(8301 long long diffSkyfileDeleteRowObjects( 8302 8302 psDB *dbh, ///< Database handle 8303 8303 const psArray *objects, ///< Array of objects to delete 8304 8304 unsigned long long limit ///< Maximum number of elements to delete 8305 8305 ); 8306 /** Formats and prints an array of p5DiffSkyfileRow objects8306 /** Formats and prints an array of diffSkyfileRow objects 8307 8307 * 8308 8308 * When mdcf is set the formated output is in psMetadataConfig … … 8312 8312 */ 8313 8313 8314 bool p5DiffSkyfilePrintObjects(8314 bool diffSkyfilePrintObjects( 8315 8315 FILE *stream, ///< a stream 8316 psArray *objects, ///< An array of p5DiffSkyfileRow objects8316 psArray *objects, ///< An array of diffSkyfileRow objects 8317 8317 bool mdcf ///< format as mdconfig or simple 8318 8318 ); 8319 /** Formats and prints an p5DiffSkyfileRow object8319 /** Formats and prints an diffSkyfileRow object 8320 8320 * 8321 8321 * When mdcf is set the formated output is in psMetadataConfig … … 8325 8325 */ 8326 8326 8327 bool p5DiffSkyfilePrintObject(8327 bool diffSkyfilePrintObject( 8328 8328 FILE *stream, ///< a stream 8329 p5DiffSkyfileRow *object, ///< an p5DiffSkyfileRow object8329 diffSkyfileRow *object, ///< an diffSkyfileRow object 8330 8330 bool mdcf ///< format as mdconfig or simple 8331 8331 ); 8332 /** p6RunRow data structure8333 * 8334 * Structure for representing a single row of p6Run table data.8332 /** stackRunRow data structure 8333 * 8334 * Structure for representing a single row of stackRun table data. 8335 8335 */ 8336 8336 8337 8337 typedef struct { 8338 psS32 p6_id;8338 psS32 stack_id; 8339 8339 char *state; 8340 8340 char *workdir; … … 8343 8343 char *skycell_id; 8344 8344 char *tess_id; 8345 } p6RunRow;8346 8347 /** Creates a new p6RunRow object8348 * 8349 * @return A new p6RunRow object or NULL on failure.8350 */ 8351 8352 p6RunRow *p6RunRowAlloc(8353 psS32 p6_id,8345 } stackRunRow; 8346 8347 /** Creates a new stackRunRow object 8348 * 8349 * @return A new stackRunRow object or NULL on failure. 8350 */ 8351 8352 stackRunRow *stackRunRowAlloc( 8353 psS32 stack_id, 8354 8354 const char *state, 8355 8355 const char *workdir, … … 8360 8360 ); 8361 8361 8362 /** Creates a new p6Run table8363 * 8364 * @return true on success 8365 */ 8366 8367 bool p6RunCreateTable(8362 /** Creates a new stackRun table 8363 * 8364 * @return true on success 8365 */ 8366 8367 bool stackRunCreateTable( 8368 8368 psDB *dbh ///< Database handle 8369 8369 ); 8370 8370 8371 /** Deletes a p6Run table8372 * 8373 * @return true on success 8374 */ 8375 8376 bool p6RunDropTable(8371 /** Deletes a stackRun table 8372 * 8373 * @return true on success 8374 */ 8375 8376 bool stackRunDropTable( 8377 8377 psDB *dbh ///< Database handle 8378 8378 ); … … 8385 8385 */ 8386 8386 8387 bool p6RunInsert(8388 psDB *dbh, ///< Database handle 8389 psS32 p6_id,8387 bool stackRunInsert( 8388 psDB *dbh, ///< Database handle 8389 psS32 stack_id, 8390 8390 const char *state, 8391 8391 const char *workdir, … … 8401 8401 */ 8402 8402 8403 long long p6RunDelete(8403 long long stackRunDelete( 8404 8404 psDB *dbh, ///< Database handle 8405 8405 const psMetadata *where, ///< Row match criteria … … 8407 8407 ); 8408 8408 8409 /** Insert a single p6RunRow object into a table8409 /** Insert a single stackRunRow object into a table 8410 8410 * 8411 8411 * This function constructs and inserts a single row based on it's parameters. … … 8414 8414 */ 8415 8415 8416 bool p6RunInsertObject(8417 psDB *dbh, ///< Database handle 8418 p6RunRow *object ///< p6RunRow object8419 ); 8420 8421 /** Insert an array of p6RunRow object into a table8416 bool stackRunInsertObject( 8417 psDB *dbh, ///< Database handle 8418 stackRunRow *object ///< stackRunRow object 8419 ); 8420 8421 /** Insert an array of stackRunRow object into a table 8422 8422 * 8423 8423 * This function constructs and inserts multiple rows based on it's parameters. … … 8426 8426 */ 8427 8427 8428 bool p6RunInsertObjects(8429 psDB *dbh, ///< Database handle 8430 psArray *objects ///< array of p6RunRow objects8431 ); 8432 8433 /** Insert data from a binary FITS table p6RunRow into the database8428 bool stackRunInsertObjects( 8429 psDB *dbh, ///< Database handle 8430 psArray *objects ///< array of stackRunRow objects 8431 ); 8432 8433 /** Insert data from a binary FITS table stackRunRow into the database 8434 8434 * 8435 8435 * This function expects a psFits object with a FITS table as the first … … 8441 8441 */ 8442 8442 8443 bool p6RunInsertFits(8443 bool stackRunInsertFits( 8444 8444 psDB *dbh, ///< Database handle 8445 8445 const psFits *fits ///< psFits object … … 8456 8456 */ 8457 8457 8458 bool p6RunSelectRowsFits(8458 bool stackRunSelectRowsFits( 8459 8459 psDB *dbh, ///< Database handle 8460 8460 psFits *fits, ///< psFits object … … 8463 8463 ); 8464 8464 8465 /** Convert a p6RunRow into an equivalent psMetadata8465 /** Convert a stackRunRow into an equivalent psMetadata 8466 8466 * 8467 8467 * @return A psMetadata pointer or NULL on error 8468 8468 */ 8469 8469 8470 psMetadata * p6RunMetadataFromObject(8471 const p6RunRow*object ///< fooRow to convert into a psMetadata8470 psMetadata *stackRunMetadataFromObject( 8471 const stackRunRow *object ///< fooRow to convert into a psMetadata 8472 8472 ); 8473 8473 8474 8474 /** Convert a psMetadata into an equivalent fooRow 8475 8475 * 8476 * @return A p6RunRow pointer or NULL on error8477 */ 8478 8479 p6RunRow *p6RunObjectFromMetadata(8476 * @return A stackRunRow pointer or NULL on error 8477 */ 8478 8479 stackRunRow *stackRunObjectFromMetadata( 8480 8480 psMetadata *md ///< psMetadata to convert into a fooRow 8481 8481 ); 8482 /** Selects up to limit rows from the database and returns as p6RunRow objects in a psArray8482 /** Selects up to limit rows from the database and returns as stackRunRow objects in a psArray 8483 8483 * 8484 8484 * See psDBSelectRows() for documentation on the format of where. … … 8487 8487 */ 8488 8488 8489 psArray * p6RunSelectRowObjects(8489 psArray *stackRunSelectRowObjects( 8490 8490 psDB *dbh, ///< Database handle 8491 8491 const psMetadata *where, ///< Row match criteria 8492 8492 unsigned long long limit ///< Maximum number of elements to return 8493 8493 ); 8494 /** Deletes a row from the database coresponding to an p6Run8494 /** Deletes a row from the database coresponding to an stackRun 8495 8495 * 8496 8496 * Note that a 'where' search psMetadata is constructed from each object and … … 8500 8500 */ 8501 8501 8502 bool p6RunDeleteObject(8503 psDB *dbh, ///< Database handle 8504 const p6RunRow *object ///< Object to delete8502 bool stackRunDeleteObject( 8503 psDB *dbh, ///< Database handle 8504 const stackRunRow *object ///< Object to delete 8505 8505 ); 8506 8506 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8512 8512 */ 8513 8513 8514 long long p6RunDeleteRowObjects(8514 long long stackRunDeleteRowObjects( 8515 8515 psDB *dbh, ///< Database handle 8516 8516 const psArray *objects, ///< Array of objects to delete 8517 8517 unsigned long long limit ///< Maximum number of elements to delete 8518 8518 ); 8519 /** Formats and prints an array of p6RunRow objects8519 /** Formats and prints an array of stackRunRow objects 8520 8520 * 8521 8521 * When mdcf is set the formated output is in psMetadataConfig … … 8525 8525 */ 8526 8526 8527 bool p6RunPrintObjects(8527 bool stackRunPrintObjects( 8528 8528 FILE *stream, ///< a stream 8529 psArray *objects, ///< An array of p6RunRow objects8529 psArray *objects, ///< An array of stackRunRow objects 8530 8530 bool mdcf ///< format as mdconfig or simple 8531 8531 ); 8532 /** Formats and prints an p6RunRow object8532 /** Formats and prints an stackRunRow object 8533 8533 * 8534 8534 * When mdcf is set the formated output is in psMetadataConfig … … 8538 8538 */ 8539 8539 8540 bool p6RunPrintObject(8540 bool stackRunPrintObject( 8541 8541 FILE *stream, ///< a stream 8542 p6RunRow *object, ///< an p6RunRow object8542 stackRunRow *object, ///< an stackRunRow object 8543 8543 bool mdcf ///< format as mdconfig or simple 8544 8544 ); 8545 /** p6InputSkyfileRow data structure8546 * 8547 * Structure for representing a single row of p6InputSkyfile table data.8545 /** stackInputSkyfileRow data structure 8546 * 8547 * Structure for representing a single row of stackInputSkyfile table data. 8548 8548 */ 8549 8549 8550 8550 typedef struct { 8551 psS32 p6_id;8552 psS32 p4_id;8553 } p6InputSkyfileRow;8554 8555 /** Creates a new p6InputSkyfileRow object8556 * 8557 * @return A new p6InputSkyfileRow object or NULL on failure.8558 */ 8559 8560 p6InputSkyfileRow *p6InputSkyfileRowAlloc(8561 psS32 p6_id,8562 psS32 p4_id8563 ); 8564 8565 /** Creates a new p6InputSkyfile table8566 * 8567 * @return true on success 8568 */ 8569 8570 bool p6InputSkyfileCreateTable(8551 psS32 stack_id; 8552 psS32 warp_id; 8553 } stackInputSkyfileRow; 8554 8555 /** Creates a new stackInputSkyfileRow object 8556 * 8557 * @return A new stackInputSkyfileRow object or NULL on failure. 8558 */ 8559 8560 stackInputSkyfileRow *stackInputSkyfileRowAlloc( 8561 psS32 stack_id, 8562 psS32 warp_id 8563 ); 8564 8565 /** Creates a new stackInputSkyfile table 8566 * 8567 * @return true on success 8568 */ 8569 8570 bool stackInputSkyfileCreateTable( 8571 8571 psDB *dbh ///< Database handle 8572 8572 ); 8573 8573 8574 /** Deletes a p6InputSkyfile table8575 * 8576 * @return true on success 8577 */ 8578 8579 bool p6InputSkyfileDropTable(8574 /** Deletes a stackInputSkyfile table 8575 * 8576 * @return true on success 8577 */ 8578 8579 bool stackInputSkyfileDropTable( 8580 8580 psDB *dbh ///< Database handle 8581 8581 ); … … 8588 8588 */ 8589 8589 8590 bool p6InputSkyfileInsert(8591 psDB *dbh, ///< Database handle 8592 psS32 p6_id,8593 psS32 p4_id8590 bool stackInputSkyfileInsert( 8591 psDB *dbh, ///< Database handle 8592 psS32 stack_id, 8593 psS32 warp_id 8594 8594 ); 8595 8595 … … 8599 8599 */ 8600 8600 8601 long long p6InputSkyfileDelete(8601 long long stackInputSkyfileDelete( 8602 8602 psDB *dbh, ///< Database handle 8603 8603 const psMetadata *where, ///< Row match criteria … … 8605 8605 ); 8606 8606 8607 /** Insert a single p6InputSkyfileRow object into a table8607 /** Insert a single stackInputSkyfileRow object into a table 8608 8608 * 8609 8609 * This function constructs and inserts a single row based on it's parameters. … … 8612 8612 */ 8613 8613 8614 bool p6InputSkyfileInsertObject(8615 psDB *dbh, ///< Database handle 8616 p6InputSkyfileRow *object ///< p6InputSkyfileRow object8617 ); 8618 8619 /** Insert an array of p6InputSkyfileRow object into a table8614 bool stackInputSkyfileInsertObject( 8615 psDB *dbh, ///< Database handle 8616 stackInputSkyfileRow *object ///< stackInputSkyfileRow object 8617 ); 8618 8619 /** Insert an array of stackInputSkyfileRow object into a table 8620 8620 * 8621 8621 * This function constructs and inserts multiple rows based on it's parameters. … … 8624 8624 */ 8625 8625 8626 bool p6InputSkyfileInsertObjects(8627 psDB *dbh, ///< Database handle 8628 psArray *objects ///< array of p6InputSkyfileRow objects8629 ); 8630 8631 /** Insert data from a binary FITS table p6InputSkyfileRow into the database8626 bool stackInputSkyfileInsertObjects( 8627 psDB *dbh, ///< Database handle 8628 psArray *objects ///< array of stackInputSkyfileRow objects 8629 ); 8630 8631 /** Insert data from a binary FITS table stackInputSkyfileRow into the database 8632 8632 * 8633 8633 * This function expects a psFits object with a FITS table as the first … … 8639 8639 */ 8640 8640 8641 bool p6InputSkyfileInsertFits(8641 bool stackInputSkyfileInsertFits( 8642 8642 psDB *dbh, ///< Database handle 8643 8643 const psFits *fits ///< psFits object … … 8654 8654 */ 8655 8655 8656 bool p6InputSkyfileSelectRowsFits(8656 bool stackInputSkyfileSelectRowsFits( 8657 8657 psDB *dbh, ///< Database handle 8658 8658 psFits *fits, ///< psFits object … … 8661 8661 ); 8662 8662 8663 /** Convert a p6InputSkyfileRow into an equivalent psMetadata8663 /** Convert a stackInputSkyfileRow into an equivalent psMetadata 8664 8664 * 8665 8665 * @return A psMetadata pointer or NULL on error 8666 8666 */ 8667 8667 8668 psMetadata * p6InputSkyfileMetadataFromObject(8669 const p6InputSkyfileRow *object ///< fooRow to convert into a psMetadata8668 psMetadata *stackInputSkyfileMetadataFromObject( 8669 const stackInputSkyfileRow *object ///< fooRow to convert into a psMetadata 8670 8670 ); 8671 8671 8672 8672 /** Convert a psMetadata into an equivalent fooRow 8673 8673 * 8674 * @return A p6InputSkyfileRow pointer or NULL on error8675 */ 8676 8677 p6InputSkyfileRow *p6InputSkyfileObjectFromMetadata(8674 * @return A stackInputSkyfileRow pointer or NULL on error 8675 */ 8676 8677 stackInputSkyfileRow *stackInputSkyfileObjectFromMetadata( 8678 8678 psMetadata *md ///< psMetadata to convert into a fooRow 8679 8679 ); 8680 /** Selects up to limit rows from the database and returns as p6InputSkyfileRow objects in a psArray8680 /** Selects up to limit rows from the database and returns as stackInputSkyfileRow objects in a psArray 8681 8681 * 8682 8682 * See psDBSelectRows() for documentation on the format of where. … … 8685 8685 */ 8686 8686 8687 psArray * p6InputSkyfileSelectRowObjects(8687 psArray *stackInputSkyfileSelectRowObjects( 8688 8688 psDB *dbh, ///< Database handle 8689 8689 const psMetadata *where, ///< Row match criteria 8690 8690 unsigned long long limit ///< Maximum number of elements to return 8691 8691 ); 8692 /** Deletes a row from the database coresponding to an p6InputSkyfile8692 /** Deletes a row from the database coresponding to an stackInputSkyfile 8693 8693 * 8694 8694 * Note that a 'where' search psMetadata is constructed from each object and … … 8698 8698 */ 8699 8699 8700 bool p6InputSkyfileDeleteObject(8701 psDB *dbh, ///< Database handle 8702 const p6InputSkyfileRow *object ///< Object to delete8700 bool stackInputSkyfileDeleteObject( 8701 psDB *dbh, ///< Database handle 8702 const stackInputSkyfileRow *object ///< Object to delete 8703 8703 ); 8704 8704 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8710 8710 */ 8711 8711 8712 long long p6InputSkyfileDeleteRowObjects(8712 long long stackInputSkyfileDeleteRowObjects( 8713 8713 psDB *dbh, ///< Database handle 8714 8714 const psArray *objects, ///< Array of objects to delete 8715 8715 unsigned long long limit ///< Maximum number of elements to delete 8716 8716 ); 8717 /** Formats and prints an array of p6InputSkyfileRow objects8717 /** Formats and prints an array of stackInputSkyfileRow objects 8718 8718 * 8719 8719 * When mdcf is set the formated output is in psMetadataConfig … … 8723 8723 */ 8724 8724 8725 bool p6InputSkyfilePrintObjects(8725 bool stackInputSkyfilePrintObjects( 8726 8726 FILE *stream, ///< a stream 8727 psArray *objects, ///< An array of p6InputSkyfileRow objects8727 psArray *objects, ///< An array of stackInputSkyfileRow objects 8728 8728 bool mdcf ///< format as mdconfig or simple 8729 8729 ); 8730 /** Formats and prints an p6InputSkyfileRow object8730 /** Formats and prints an stackInputSkyfileRow object 8731 8731 * 8732 8732 * When mdcf is set the formated output is in psMetadataConfig … … 8736 8736 */ 8737 8737 8738 bool p6InputSkyfilePrintObject(8738 bool stackInputSkyfilePrintObject( 8739 8739 FILE *stream, ///< a stream 8740 p6InputSkyfileRow *object, ///< an p6InputSkyfileRow object8740 stackInputSkyfileRow *object, ///< an stackInputSkyfileRow object 8741 8741 bool mdcf ///< format as mdconfig or simple 8742 8742 ); 8743 /** p6SumSkyfileRow data structure8744 * 8745 * Structure for representing a single row of p6SumSkyfile table data.8743 /** stackSumSkyfileRow data structure 8744 * 8745 * Structure for representing a single row of stackSumSkyfile table data. 8746 8746 */ 8747 8747 8748 8748 typedef struct { 8749 psS32 p6_id;8749 psS32 stack_id; 8750 8750 char *uri; 8751 8751 psF64 bg; 8752 8752 psF64 bg_mean_stdev; 8753 } p6SumSkyfileRow;8754 8755 /** Creates a new p6SumSkyfileRow object8756 * 8757 * @return A new p6SumSkyfileRow object or NULL on failure.8758 */ 8759 8760 p6SumSkyfileRow *p6SumSkyfileRowAlloc(8761 psS32 p6_id,8753 } stackSumSkyfileRow; 8754 8755 /** Creates a new stackSumSkyfileRow object 8756 * 8757 * @return A new stackSumSkyfileRow object or NULL on failure. 8758 */ 8759 8760 stackSumSkyfileRow *stackSumSkyfileRowAlloc( 8761 psS32 stack_id, 8762 8762 const char *uri, 8763 8763 psF64 bg, … … 8765 8765 ); 8766 8766 8767 /** Creates a new p6SumSkyfile table8768 * 8769 * @return true on success 8770 */ 8771 8772 bool p6SumSkyfileCreateTable(8767 /** Creates a new stackSumSkyfile table 8768 * 8769 * @return true on success 8770 */ 8771 8772 bool stackSumSkyfileCreateTable( 8773 8773 psDB *dbh ///< Database handle 8774 8774 ); 8775 8775 8776 /** Deletes a p6SumSkyfile table8777 * 8778 * @return true on success 8779 */ 8780 8781 bool p6SumSkyfileDropTable(8776 /** Deletes a stackSumSkyfile table 8777 * 8778 * @return true on success 8779 */ 8780 8781 bool stackSumSkyfileDropTable( 8782 8782 psDB *dbh ///< Database handle 8783 8783 ); … … 8790 8790 */ 8791 8791 8792 bool p6SumSkyfileInsert(8793 psDB *dbh, ///< Database handle 8794 psS32 p6_id,8792 bool stackSumSkyfileInsert( 8793 psDB *dbh, ///< Database handle 8794 psS32 stack_id, 8795 8795 const char *uri, 8796 8796 psF64 bg, … … 8803 8803 */ 8804 8804 8805 long long p6SumSkyfileDelete(8805 long long stackSumSkyfileDelete( 8806 8806 psDB *dbh, ///< Database handle 8807 8807 const psMetadata *where, ///< Row match criteria … … 8809 8809 ); 8810 8810 8811 /** Insert a single p6SumSkyfileRow object into a table8811 /** Insert a single stackSumSkyfileRow object into a table 8812 8812 * 8813 8813 * This function constructs and inserts a single row based on it's parameters. … … 8816 8816 */ 8817 8817 8818 bool p6SumSkyfileInsertObject(8819 psDB *dbh, ///< Database handle 8820 p6SumSkyfileRow *object ///< p6SumSkyfileRow object8821 ); 8822 8823 /** Insert an array of p6SumSkyfileRow object into a table8818 bool stackSumSkyfileInsertObject( 8819 psDB *dbh, ///< Database handle 8820 stackSumSkyfileRow *object ///< stackSumSkyfileRow object 8821 ); 8822 8823 /** Insert an array of stackSumSkyfileRow object into a table 8824 8824 * 8825 8825 * This function constructs and inserts multiple rows based on it's parameters. … … 8828 8828 */ 8829 8829 8830 bool p6SumSkyfileInsertObjects(8831 psDB *dbh, ///< Database handle 8832 psArray *objects ///< array of p6SumSkyfileRow objects8833 ); 8834 8835 /** Insert data from a binary FITS table p6SumSkyfileRow into the database8830 bool stackSumSkyfileInsertObjects( 8831 psDB *dbh, ///< Database handle 8832 psArray *objects ///< array of stackSumSkyfileRow objects 8833 ); 8834 8835 /** Insert data from a binary FITS table stackSumSkyfileRow into the database 8836 8836 * 8837 8837 * This function expects a psFits object with a FITS table as the first … … 8843 8843 */ 8844 8844 8845 bool p6SumSkyfileInsertFits(8845 bool stackSumSkyfileInsertFits( 8846 8846 psDB *dbh, ///< Database handle 8847 8847 const psFits *fits ///< psFits object … … 8858 8858 */ 8859 8859 8860 bool p6SumSkyfileSelectRowsFits(8860 bool stackSumSkyfileSelectRowsFits( 8861 8861 psDB *dbh, ///< Database handle 8862 8862 psFits *fits, ///< psFits object … … 8865 8865 ); 8866 8866 8867 /** Convert a p6SumSkyfileRow into an equivalent psMetadata8867 /** Convert a stackSumSkyfileRow into an equivalent psMetadata 8868 8868 * 8869 8869 * @return A psMetadata pointer or NULL on error 8870 8870 */ 8871 8871 8872 psMetadata * p6SumSkyfileMetadataFromObject(8873 const p6SumSkyfileRow *object ///< fooRow to convert into a psMetadata8872 psMetadata *stackSumSkyfileMetadataFromObject( 8873 const stackSumSkyfileRow *object ///< fooRow to convert into a psMetadata 8874 8874 ); 8875 8875 8876 8876 /** Convert a psMetadata into an equivalent fooRow 8877 8877 * 8878 * @return A p6SumSkyfileRow pointer or NULL on error8879 */ 8880 8881 p6SumSkyfileRow *p6SumSkyfileObjectFromMetadata(8878 * @return A stackSumSkyfileRow pointer or NULL on error 8879 */ 8880 8881 stackSumSkyfileRow *stackSumSkyfileObjectFromMetadata( 8882 8882 psMetadata *md ///< psMetadata to convert into a fooRow 8883 8883 ); 8884 /** Selects up to limit rows from the database and returns as p6SumSkyfileRow objects in a psArray8884 /** Selects up to limit rows from the database and returns as stackSumSkyfileRow objects in a psArray 8885 8885 * 8886 8886 * See psDBSelectRows() for documentation on the format of where. … … 8889 8889 */ 8890 8890 8891 psArray * p6SumSkyfileSelectRowObjects(8891 psArray *stackSumSkyfileSelectRowObjects( 8892 8892 psDB *dbh, ///< Database handle 8893 8893 const psMetadata *where, ///< Row match criteria 8894 8894 unsigned long long limit ///< Maximum number of elements to return 8895 8895 ); 8896 /** Deletes a row from the database coresponding to an p6SumSkyfile8896 /** Deletes a row from the database coresponding to an stackSumSkyfile 8897 8897 * 8898 8898 * Note that a 'where' search psMetadata is constructed from each object and … … 8902 8902 */ 8903 8903 8904 bool p6SumSkyfileDeleteObject(8905 psDB *dbh, ///< Database handle 8906 const p6SumSkyfileRow *object ///< Object to delete8904 bool stackSumSkyfileDeleteObject( 8905 psDB *dbh, ///< Database handle 8906 const stackSumSkyfileRow *object ///< Object to delete 8907 8907 ); 8908 8908 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. … … 8914 8914 */ 8915 8915 8916 long long p6SumSkyfileDeleteRowObjects(8916 long long stackSumSkyfileDeleteRowObjects( 8917 8917 psDB *dbh, ///< Database handle 8918 8918 const psArray *objects, ///< Array of objects to delete 8919 8919 unsigned long long limit ///< Maximum number of elements to delete 8920 8920 ); 8921 /** Formats and prints an array of p6SumSkyfileRow objects8921 /** Formats and prints an array of stackSumSkyfileRow objects 8922 8922 * 8923 8923 * When mdcf is set the formated output is in psMetadataConfig … … 8927 8927 */ 8928 8928 8929 bool p6SumSkyfilePrintObjects(8929 bool stackSumSkyfilePrintObjects( 8930 8930 FILE *stream, ///< a stream 8931 psArray *objects, ///< An array of p6SumSkyfileRow objects8931 psArray *objects, ///< An array of stackSumSkyfileRow objects 8932 8932 bool mdcf ///< format as mdconfig or simple 8933 8933 ); 8934 /** Formats and prints an p6SumSkyfileRow object8934 /** Formats and prints an stackSumSkyfileRow object 8935 8935 * 8936 8936 * When mdcf is set the formated output is in psMetadataConfig … … 8940 8940 */ 8941 8941 8942 bool p6SumSkyfilePrintObject(8942 bool stackSumSkyfilePrintObject( 8943 8943 FILE *stream, ///< a stream 8944 p6SumSkyfileRow *object, ///< an p6SumSkyfileRow object8944 stackSumSkyfileRow *object, ///< an stackSumSkyfileRow object 8945 8945 bool mdcf ///< format as mdconfig or simple 8946 8946 ); … … 8952 8952 #endif 8953 8953 8954 #endif // P6SUMSKYFILE_DB_H8954 #endif // STACKSUMSKYFILE_DB_H
Note:
See TracChangeset
for help on using the changeset viewer.
