SINFONI Pipeline Reference Manual  2.6.0
sinfo_utils_wrappers.h
1 /*
2  * This file is part of the ESO SINFONI Pipeline
3  * Copyright (C) 2004,2005 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 
20 #ifndef SINFO_UTILS_WRAPPERS_H
21 #define SINFO_UTILS_WRAPPERS_H
22 
23 #ifdef HAVE_CONFIG_H
24 # include <config.h>
25 #endif
26 /*-----------------------------------------------------------------------------
27  Includes
28  -----------------------------------------------------------------------------*/
29 
30 #include <cpl.h>
31 
32 /*-----------------------------------------------------------------------------
33  Defines
34  -----------------------------------------------------------------------------*/
35 
36 
37 /*-----------------------------------------------------------------------------
38  Prototypes
39  -----------------------------------------------------------------------------*/
40 void sinfo_free_float_array(float ***a, const int n) ;
41 
42 cpl_table *
43 sinfo_extract_table_rows(const cpl_table *t, const char *column,
44  cpl_table_select_operator operator, double value);
45 int
46 sinfo_select_table_rows(cpl_table *t, const char *column,
47  cpl_table_select_operator operator, double value);
48 
49 cpl_error_code sinfo_sort_table_1(cpl_table *t, const char *column1,
50  cpl_boolean reverse1);
51 cpl_error_code sinfo_sort_table_2(cpl_table *t, const char *column1,
52  const char *column2, cpl_boolean reverse1,
53  cpl_boolean reverse2);
54 
55 void sinfoni_free_vector(cpl_vector **v);
56 void sinfo_free_array(cpl_array **i);
57 void sinfo_free_apertures(cpl_apertures **a);
58 void sinfo_free_parameter(cpl_parameter **p);
59 void sinfo_free_image(cpl_image **i);
60 void sinfo_free_mask(cpl_mask **m);
61 void sinfo_free_imagelist(cpl_imagelist **i);
62 void sinfo_free_table(cpl_table **t);
63 void sinfo_free_propertylist(cpl_propertylist **p);
64 void sinfo_free_polynomial(cpl_polynomial **p);
65 void sinfo_free_stats(cpl_stats **s);
66 void sinfo_unwrap_matrix(cpl_matrix **m);
67 void sinfo_unwrap_vector(cpl_vector **v);
68 void sinfo_unwrap_bivector_vectors(cpl_bivector **b);
69 void sinfo_free_parameterlist(cpl_parameterlist **p);
70 void sinfo_free_frameset(cpl_frameset **f);
71 void sinfo_free_frame(cpl_frame **f);
72 void sinfo_free_int(int **i);
73 void sinfo_free_float(float **i);
74 void sinfo_free_double(double **i);
75 void sinfo_free_array_imagelist(cpl_imagelist ***a);
76 void sinfo_free_array_image(cpl_image ***a);
77 void sinfo_free_image_array(cpl_image ***a,const int n);
78 /* similar are also defined with same name in svd.h */
79 void sinfoni_free_matrix(cpl_matrix **m);
80 void sinfo_free_my_vector(cpl_vector **v);
81 void sinfo_free_bivector(cpl_bivector **bv);
82 
83 
84 #endif