GIRAFFE Pipeline Reference Manual

gitable.h
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifndef GITABLE_H
29 #define GITABLE_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_macros.h>
34 #include <cpl_table.h>
35 #include <cpl_matrix.h>
36 #include <cpl_propertylist.h>
37 #include <cpl_frameset.h>
38 
39 #include <giutils.h>
40 
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 
47 typedef struct GiTable GiTable;
48 
49 
50 /*
51  * Create, copy and destroy operations
52  */
53 
54 GiTable *giraffe_table_new(void);
55 GiTable *giraffe_table_create(cpl_table *, cpl_propertylist *);
56 void giraffe_table_delete(GiTable *);
57 GiTable *giraffe_table_duplicate(const GiTable *);
58 
59 void giraffe_table_clear(GiTable *);
60 
61 cxint giraffe_table_copy_matrix(GiTable *, const cxchar *, cpl_matrix *);
62 
63 /*
64  * Non-modifying operations
65  */
66 
67 cxint giraffe_table_is_empty(GiTable *);
68 
69 /*
70  * Accessors
71  */
72 
73 cpl_table *giraffe_table_get(const GiTable *);
74 cxint giraffe_table_set(GiTable *, cpl_table *);
75 cpl_propertylist *giraffe_table_get_properties(const GiTable *);
76 cxint giraffe_table_set_properties(GiTable *, cpl_propertylist *);
77 
78 /*
79  * Loading and saving operations
80  */
81 
82 cxint giraffe_table_load(GiTable *self, const cxchar *filename,
83  cxint position, const cxchar *id);
84 
85 cxint giraffe_table_save(GiTable *self, const cxchar *filename);
86 
87 cxint giraffe_table_attach(GiTable *self, const cxchar *filename,
88  cxint position, const cxchar *id);
89 
90 cxint giraffe_table_add_info(GiTable *, const GiRecipeInfo *,
91  const cpl_frameset *);
92 
93 
94 #ifdef __cplusplus
95 }
96 #endif
97 
98 #endif /* GITABLE_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.12.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Mon Mar 24 2014 11:43:53 by doxygen 1.8.2 written by Dimitri van Heesch, © 1997-2004