recipe_main.c

00001 /* $Id: recipe_main.c,v 1.5 2008/03/25 11:12:45 llundin Exp $
00002  *
00003  * This file is part of the VISIR 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: llundin $
00023  * $Date: 2008/03/25 11:12:45 $
00024  * $Revision: 1.5 $
00025  * $Name: naco-4_1_2 $
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 
00040 
00041 /*----------------------------------------------------------------------------*/
00045 /*----------------------------------------------------------------------------*/
00046 
00049 /*-----------------------------------------------------------------------------
00050                             Function definitions
00051  -----------------------------------------------------------------------------*/
00052 
00053 
00054 /*----------------------------------------------------------------------------*/
00060 /*----------------------------------------------------------------------------*/
00061 int main(void)
00062 {
00063 
00064     const char * tags[] = {
00065         "ERROR_TAG",
00066         "TECH_FOCUS",
00067         "TECH_FOCUS",
00068         "TECH_FOCUS",
00069         "TECH_FOCUS",
00070         "TECH_FOCUS",
00071         "CAL_DARK",
00072         "CAL_DARK",
00073         "CAL_DARK",
00074         "CAL_DARK",
00075         "CAL_DARK",
00076         "CAL_DETLIN_DARK",
00077         "CAL_DETLIN_DARK",
00078         "CAL_DETLIN_DARK",
00079         "CAL_DETLIN_DARK",
00080         "CAL_DETLIN_DARK",
00081         "IM_JITTER_OBJ",
00082         "IM_JITTER_OBJ",
00083         "IM_JITTER_OBJ",
00084         "IM_JITTER_OBJ",
00085         "IM_JITTER_OBJ",
00086         "CAL_FLAT_LAMP",
00087         "CAL_FLAT_LAMP",
00088         "CAL_FLAT_LAMP",
00089         "CAL_FLAT_LAMP",
00090         "CAL_FLAT_LAMP",
00091         "SLIT_IMG",
00092         "SLIT_IMG",
00093         "SLIT_IMG",
00094         "SLIT_IMG",
00095         "SLIT_IMG",
00096         "CAL_PSF",
00097         "CAL_PSF",
00098         "CAL_PSF",
00099         "CAL_PSF",
00100         "CAL_PSF",
00101         "CAL_FLAT_TW",
00102         "CAL_FLAT_TW",
00103         "CAL_FLAT_TW",
00104         "CAL_FLAT_TW",
00105         "CAL_FLAT_TW",
00106         "CAL_STD_JITTER",
00107         "CAL_STD_JITTER",
00108         "CAL_STD_JITTER",
00109         "CAL_STD_JITTER",
00110         "CAL_STD_JITTER",
00111         "SP_NODDINGOBJ",
00112         "SP_NODDINGOBJ",
00113         "SP_NODDINGOBJ",
00114         "SP_NODDINGOBJ",
00115         "SP_NODDINGOBJ"
00116     };
00117 
00118     cpl_pluginlist * pluginlist;
00119     const size_t ntags = sizeof(tags) / sizeof(char*);
00120 
00121     cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);
00122 
00123     pluginlist = cpl_pluginlist_new();
00124 
00125     cpl_test_zero(cpl_plugin_get_info(pluginlist));
00126 
00127     cpl_test_zero(irplib_plugin_test(pluginlist, ntags, tags));
00128 
00129     cpl_pluginlist_delete(pluginlist);
00130 
00131     return cpl_test_end(0);
00132 }
00133 

Generated on Fri Jul 3 11:23:59 2009 for NACO Pipeline Reference Manual by  doxygen 1.5.8