sinfo_utils_wrappers.h

00001 /*
00002  * This file is part of the ESO SINFONI Pipeline
00003  * Copyright (C) 2004,2005 European Southern Observatory
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #ifndef SINFO_UTILS_WRAPPERS_H
00021 #define SINFO_UTILS_WRAPPERS_H
00022 
00023 #ifdef HAVE_CONFIG_H
00024 #  include <config.h>
00025 #endif
00026 /*-----------------------------------------------------------------------------
00027                     Includes
00028  -----------------------------------------------------------------------------*/
00029 
00030 #include <cpl.h>
00031 
00032 /*-----------------------------------------------------------------------------
00033                              Defines
00034  -----------------------------------------------------------------------------*/
00035 
00036 
00037 /*-----------------------------------------------------------------------------
00038                                    Prototypes
00039  -----------------------------------------------------------------------------*/
00040 void sinfo_free_float_array(float ***a, const int n) ;
00041 
00042 cpl_table *
00043 sinfo_extract_table_rows(const cpl_table *t, const char *column,
00044              cpl_table_select_operator operator, double value);
00045 int
00046 sinfo_select_table_rows(cpl_table *t,  const char *column, 
00047             cpl_table_select_operator operator, double value);
00048 
00049 cpl_error_code sinfo_sort_table_1(cpl_table *t, const char *column1,
00050                  cpl_boolean reverse1);
00051 cpl_error_code sinfo_sort_table_2(cpl_table *t, const char *column1, 
00052                  const char *column2, cpl_boolean reverse1, 
00053                  cpl_boolean reverse2);
00054 
00055 void sinfoni_free_vector(cpl_vector **v);
00056 void sinfo_free_array(cpl_array **i);
00057 void sinfo_free_apertures(cpl_apertures **a);
00058 void sinfo_free_parameter(cpl_parameter **p);
00059 void sinfo_free_image(cpl_image **i);
00060 void sinfo_free_mask(cpl_mask **m);
00061 void sinfo_free_imagelist(cpl_imagelist **i);
00062 void sinfo_free_table(cpl_table **t);
00063 void sinfo_free_propertylist(cpl_propertylist **p);
00064 void sinfo_free_polynomial(cpl_polynomial **p);
00065 void sinfo_free_stats(cpl_stats **s);
00066 void sinfo_unwrap_matrix(cpl_matrix **m);
00067 void sinfo_unwrap_vector(cpl_vector **v);
00068 void sinfo_unwrap_bivector_vectors(cpl_bivector **b);
00069 void sinfo_free_parameterlist(cpl_parameterlist **p);
00070 void sinfo_free_frameset(cpl_frameset **f);
00071 void sinfo_free_frame(cpl_frame **f);
00072 void sinfo_free_int(int **i);
00073 void sinfo_free_float(float **i);
00074 void sinfo_free_double(double **i);
00075 void sinfo_free_array_imagelist(cpl_imagelist ***a);
00076 void sinfo_free_array_image(cpl_image ***a);
00077 void sinfo_free_image_array(cpl_image ***a,const int n);
00078 /* similar are also defined with same name in svd.h */
00079 void sinfoni_free_matrix(cpl_matrix **m);
00080 void sinfo_free_my_vector(cpl_vector **v);
00081 void sinfo_free_bivector(cpl_bivector **bv);
00082 
00083 
00084 #endif

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1