Changeset 9783 for trunk/ippdb/src/ippdb.h
- Timestamp:
- Oct 30, 2006, 11:25:59 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/src/ippdb.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/src/ippdb.h
r9705 r9783 20 20 /* 21 21 * 22 * This file was generated by glueforge 0. 2922 * This file was generated by glueforge 0.30 23 23 * 24 24 * Do NOT directly edit this file. … … 2010 2010 psS32 p1_version; 2011 2011 psS32 p2_version; 2012 char *label; 2012 2013 } p2PendingExpRow; 2013 2014 … … 2021 2022 const char *recipe, 2022 2023 psS32 p1_version, 2023 psS32 p2_version 2024 psS32 p2_version, 2025 const char *label 2024 2026 ); 2025 2027 … … 2054 2056 const char *recipe, 2055 2057 psS32 p1_version, 2056 psS32 p2_version 2058 psS32 p2_version, 2059 const char *label 2057 2060 ); 2058 2061 … … 2397 2400 psS32 p1_version; 2398 2401 psS32 p2_version; 2402 char *label; 2399 2403 } p2ProcessedExpRow; 2400 2404 … … 2407 2411 const char *exp_tag, 2408 2412 psS32 p1_version, 2409 psS32 p2_version 2413 psS32 p2_version, 2414 const char *label 2410 2415 ); 2411 2416 … … 2439 2444 const char *exp_tag, 2440 2445 psS32 p1_version, 2441 psS32 p2_version 2446 psS32 p2_version, 2447 const char *label 2442 2448 ); 2443 2449 … … 2574 2580 FILE *stream, ///< a stream 2575 2581 psArray *objects, ///< An array of p2ProcessedExpRow objects 2582 bool mdcf ///< format as mdconfig or simple 2583 ); 2584 /** p2MaskRow data structure 2585 * 2586 * Structure for representing a single row of p2Mask table data. 2587 */ 2588 2589 typedef struct { 2590 char *label; 2591 } p2MaskRow; 2592 2593 /** Creates a new p2MaskRow object 2594 * 2595 * @return A new p2MaskRow object or NULL on failure. 2596 */ 2597 2598 p2MaskRow *p2MaskRowAlloc( 2599 const char *label 2600 ); 2601 2602 /** Creates a new p2Mask table 2603 * 2604 * @return true on success 2605 */ 2606 2607 bool p2MaskCreateTable( 2608 psDB *dbh ///< Database handle 2609 ); 2610 2611 /** Deletes a p2Mask table 2612 * 2613 * @return true on success 2614 */ 2615 2616 bool p2MaskDropTable( 2617 psDB *dbh ///< Database handle 2618 ); 2619 2620 /** Insert a single row into a table 2621 * 2622 * This function constructs and inserts a single row based on it's parameters. 2623 * 2624 * @return true on success 2625 */ 2626 2627 bool p2MaskInsert( 2628 psDB *dbh, ///< Database handle 2629 const char *label 2630 ); 2631 2632 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 2633 * 2634 * @return A The number of rows removed or a negative value on error 2635 */ 2636 2637 long long p2MaskDelete( 2638 psDB *dbh, ///< Database handle 2639 const psMetadata *where, ///< Row match criteria 2640 unsigned long long limit ///< Maximum number of elements to delete 2641 ); 2642 2643 /** Insert a single p2MaskRow object into a table 2644 * 2645 * This function constructs and inserts a single row based on it's parameters. 2646 * 2647 * @return true on success 2648 */ 2649 2650 bool p2MaskInsertObject( 2651 psDB *dbh, ///< Database handle 2652 p2MaskRow *object ///< p2MaskRow object 2653 ); 2654 2655 /** Insert an array of p2MaskRow object into a table 2656 * 2657 * This function constructs and inserts multiple rows based on it's parameters. 2658 * 2659 * @return true on success 2660 */ 2661 2662 bool p2MaskInsertObjects( 2663 psDB *dbh, ///< Database handle 2664 psArray *objects ///< array of p2MaskRow objects 2665 ); 2666 2667 /** Insert data from a binary FITS table p2MaskRow into the database 2668 * 2669 * This function expects a psFits object with a FITS table as the first 2670 * extension. The table must have at least one row of data in it, that is of 2671 * the appropriate format (number of columns and their type). All other 2672 * extensions are ignored. 2673 * 2674 * @return true on success 2675 */ 2676 2677 bool p2MaskInsertFits( 2678 psDB *dbh, ///< Database handle 2679 const psFits *fits ///< psFits object 2680 ); 2681 2682 /** Selects up to limit from the database and returns them in a binary FITS table 2683 * 2684 * This function assumes an empty psFits object and will create a FITS table 2685 * as the first extension. 2686 * 2687 * See psDBSelectRows() for documentation on the format of where. 2688 * 2689 * @return true on success 2690 */ 2691 2692 bool p2MaskSelectRowsFits( 2693 psDB *dbh, ///< Database handle 2694 psFits *fits, ///< psFits object 2695 const psMetadata *where, ///< Row match criteria 2696 unsigned long long limit ///< Maximum number of elements to return 2697 ); 2698 2699 /** Convert a p2MaskRow into an equivalent psMetadata 2700 * 2701 * @return A psMetadata pointer or NULL on error 2702 */ 2703 2704 psMetadata *p2MaskMetadataFromObject( 2705 const p2MaskRow *object ///< fooRow to convert into a psMetadata 2706 ); 2707 2708 /** Convert a psMetadata into an equivalent fooRow 2709 * 2710 * @return A p2MaskRow pointer or NULL on error 2711 */ 2712 2713 p2MaskRow *p2MaskObjectFromMetadata( 2714 psMetadata *md ///< psMetadata to convert into a fooRow 2715 ); 2716 /** Selects up to limit rows from the database and returns as p2MaskRow objects in a psArray 2717 * 2718 * See psDBSelectRows() for documentation on the format of where. 2719 * 2720 * @return A psArray pointer or NULL on error 2721 */ 2722 2723 psArray *p2MaskSelectRowObjects( 2724 psDB *dbh, ///< Database handle 2725 const psMetadata *where, ///< Row match criteria 2726 unsigned long long limit ///< Maximum number of elements to return 2727 ); 2728 /** Deletes a row from the database coresponding to an p2Mask 2729 * 2730 * Note that a 'where' search psMetadata is constructed from each object and 2731 * used to find rows to delete. 2732 * 2733 * @return A The number of rows removed or a negative value on error 2734 */ 2735 2736 bool p2MaskDeleteObject( 2737 psDB *dbh, ///< Database handle 2738 const p2MaskRow *object ///< Object to delete 2739 ); 2740 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 2741 * 2742 * Note that a 'where' search psMetadata is constructed from each object and 2743 * used to find rows to delete. 2744 * 2745 * @return A The number of rows removed or a negative value on error 2746 */ 2747 2748 long long p2MaskDeleteRowObjects( 2749 psDB *dbh, ///< Database handle 2750 const psArray *objects, ///< Array of objects to delete 2751 unsigned long long limit ///< Maximum number of elements to delete 2752 ); 2753 /** Formats and prints an array of p2MaskRow objects 2754 * 2755 * When mdcf is set the formated output is in psMetadataConfig 2756 * format, otherwise it is in a simple tabular format. 2757 * 2758 * @return true on success 2759 */ 2760 2761 bool p2MaskPrintObjects( 2762 FILE *stream, ///< a stream 2763 psArray *objects, ///< An array of p2MaskRow objects 2576 2764 bool mdcf ///< format as mdconfig or simple 2577 2765 );
Note:
See TracChangeset
for help on using the changeset viewer.
