recipe_main.c

00001 /* $Id: recipe_main.c,v 1.3 2009/06/05 05:57:38 amodigli Exp $
00002  *
00003  * This file is part of the UVES Pipeline
00004  * Copyright (C) 2002,2003 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: amodigli $
00023  * $Date: 2009/06/05 05:57:38 $
00024  * $Revision: 1.3 $
00025  * $Name: uves-5_0_0 $
00026  */
00027 
00028 #ifdef HAVE_CONFIG_H
00029 #include <config.h>
00030 #endif
00031 
00032 /*-----------------------------------------------------------------------------
00033                                 Includes
00034  -----------------------------------------------------------------------------*/
00035 
00036 #include <cpl.h>
00037 
00038 #include <irplib_plugin.h>
00039 #include <cpl_test.h>
00040 #include <uves_dfs.h>
00041 #include <uves_msg.h>
00042 
00043 
00044 /*----------------------------------------------------------------------------*/
00048 /*----------------------------------------------------------------------------*/
00049 
00052 /*-----------------------------------------------------------------------------
00053                             Function definitions
00054  -----------------------------------------------------------------------------*/
00055 
00056 
00057 /*----------------------------------------------------------------------------*/
00063 /*----------------------------------------------------------------------------*/
00064 int main(void)
00065 {
00066 
00067     const char * tags[] = {
00068 
00069        "BIAS_RED",
00070        "PDARK_RED",
00071        "DFLAT_RED",
00072        "ORDER_FLAT_RED",
00073        "ARC_LAMP_FORM_RED",
00074        "ARC_LAMP_RED",
00075        "STANDARD_RED",
00076        "SCIENCE_RED",
00077 
00078        "LINE_REFER_TABLE",
00079        "FLUX_STD_TABLE",
00080        "EXTCOEFF_TABLE",
00081        "INSTR_RESPONSE_REDL",
00082        "INSTR_RESPONSE_REDU",
00083 
00084        "MASTER_BIAS_REDL",
00085        "MASTER_BIAS_REDU",
00086        "MASTER_DARK_REDL",
00087        "MASTER_DARK_REDU",
00088        "MASTER_FLAT_REDL",
00089        "MASTER_FLAT_REDU",
00090 
00091        "ORDER_TABLE_REDL",
00092        "ORDER_TABLE_REDU",
00093        "LINE_TABLE_REDL",
00094        "LINE_TABLE_REDU",
00095        "ORDER_GUESS_TAB_REDL",
00096        "ORDER_GUESS_TAB_REDU",
00097 
00098        "DARK_BLUE",
00099        "BIAS_BLUE",
00100        "MASTER_BIAS_BLUE",
00101        "IFLAT_BLUE",
00102        "TFLAT_BLUE",
00103        "ARC_LAMP_FORM_BLUE",
00104        "ARC_LAMP_BLUE",
00105        "STANDARD_BLUE",
00106        "SCI_POINT_BLUE",
00107        "SCIENCE_BLUE",
00108 
00109        "FLUX_STD_TABLE",
00110        "EXTCOEFF_TABLE",
00111        "INSTR_RESPONSE_BLUE",
00112        "FLUX_STD_TABLE",
00113        "EXTCOEFF_TABLE",
00114        "INSTR_RESPONSE_BLUE",
00115 
00116        "ORDER_TABLE_BLUE",
00117        "ORDER_FLAT_BLUE",
00118        "ORDER_GUESS_TAB_BLUE",
00119        "MASTER_BIAS_BLUE",
00120        "MASTER_DARK_BLUE",
00121        "MASTER_PDARK_BLUE",
00122        "MASTER_FLAT_BLUE",
00123        "ORDER_TABLE_BLUE",
00124        "LINE_TABLE_BLUE",
00125 
00126 
00127        "SFLAT_RED",
00128        "FIB_ORDEF_RED",
00129        "FIB_ARC_LAMP_FORM_RED",
00130        "FIB_FF_ODD_RED",
00131        "FIB_FF_EVEN_RED",
00132        "FIB_FF_ALL_RED",
00133        "FIB_ARC_LAMP_RED",
00134        "FIB_FF_ODD_RED",
00135        "FIB_FF_EVEN_RED",
00136        "FIB_FF_ALL_RED",
00137        "FIB_ARC_LAMP_RED",
00138        "FIB_ORDEF_RED",
00139        "FIB_ARC_LAMP_FORM_RED",
00140        "FIB_SCI_RED",
00141 
00142 
00143        "FIB_ORD_GUE_REDL",
00144        "FIB_ORD_GUE_REDU",
00145        "FIB_ORD_TAB_REDL",
00146        "FIB_ORD_TAB_REDU",
00147        "MASTER_SFLAT_REDL",
00148        "MASTER_SFLAT_REDU",
00149        "MASTER_SFLAT_REDL",
00150        "MASTER_SFLAT_REDU",
00151        "MASTER_SFLAT_REDL",
00152        "MASTER_SFLAT_REDU",
00153        "FIB_ORDEF_REDL",
00154        "FIB_ORDEF_REDU",
00155        "FIB_LIN_GUE_REDL",
00156        "FIB_LIN_GUE_REDU",
00157        "FIB_ORDEF_TABLE_REDL",
00158        "FIB_ORDEF_TABLE_REDU",
00159        "FIB_FF_BPC_REDL",
00160        "FIB_FF_COM_REDL",
00161        "FIB_FF_DTC_REDL",
00162        "FIB_FF_NOR_REDL",
00163        "FIB_FF_NSG_REDL",
00164        "FIB_FF_SGC_REDL",
00165        "FIB_FF_BPC_REDU",
00166        "FIB_FF_COM_REDU",
00167        "FIB_FF_DTC_REDU",
00168        "FIB_FF_NOR_REDU",
00169        "FIB_FF_NSG_REDU",
00170        "FIB_FF_SGC_REDU",
00171        "FIB_LINE_TABLE_REDL",
00172        "FIB_LINE_TABLE_REDU",
00173        "FIB_ORDEF_TABLE_REDL",
00174        "FIB_ORDEF_TABLE_REDU",
00175        "SLIT_FF_BNC_REDL",
00176        "SLIT_FF_BPC_REDL",
00177        "SLIT_FF_COM_REDL",
00178        "SLIT_FF_DTC_REDL",
00179        "SLIT_FF_NOR_REDL",
00180        "SLIT_FF_SGC_REDL",
00181        "SLIT_FF_BNC_REDU",
00182        "SLIT_FF_BPC_REDU",
00183        "SLIT_FF_COM_REDU",
00184        "SLIT_FF_DTC_REDU",
00185        "SLIT_FF_NOR_REDU",
00186        "SLIT_FF_SGC_REDU"
00187 
00188     };
00189 
00190     cpl_pluginlist * pluginlist;
00191     const size_t ntags = sizeof(tags) / sizeof(char*);
00192 
00193     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);
00194     uves_msg("Hello wordl!");
00195 
00196     pluginlist = cpl_pluginlist_new();
00197 
00198     cpl_test(!cpl_plugin_get_info(pluginlist));
00199 
00200     cpl_test(!irplib_plugin_test(pluginlist, ntags, tags));
00201 
00202     cpl_pluginlist_delete(pluginlist);
00203 
00204     return cpl_test_end(0);
00205 }
00206 

Generated on 9 Mar 2012 for UVES Pipeline Reference Manual by  doxygen 1.6.1