UVES Pipeline Reference Manual  5.4.0
recipe_main.c
1 /* $Id: recipe_main.c,v 1.3 2009-06-05 05:57:38 amodigli Exp $
2  *
3  * This file is part of the UVES Pipeline
4  * Copyright (C) 2002,2003 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 02111-1307 USA
19  */
20 
21 /*
22  * $Author: amodigli $
23  * $Date: 2009-06-05 05:57:38 $
24  * $Revision: 1.3 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifdef HAVE_CONFIG_H
29 #include <config.h>
30 #endif
31 
32 /*-----------------------------------------------------------------------------
33  Includes
34  -----------------------------------------------------------------------------*/
35 
36 #include <cpl.h>
37 
38 #include <irplib_plugin.h>
39 #include <cpl_test.h>
40 #include <uves_dfs.h>
41 #include <uves_msg.h>
42 
43 
44 /*----------------------------------------------------------------------------*/
48 /*----------------------------------------------------------------------------*/
49 
52 /*-----------------------------------------------------------------------------
53  Function definitions
54  -----------------------------------------------------------------------------*/
55 
56 
57 /*----------------------------------------------------------------------------*/
63 /*----------------------------------------------------------------------------*/
64 int main(void)
65 {
66 
67  const char * tags[] = {
68 
69  "BIAS_RED",
70  "PDARK_RED",
71  "DFLAT_RED",
72  "ORDER_FLAT_RED",
73  "ARC_LAMP_FORM_RED",
74  "ARC_LAMP_RED",
75  "STANDARD_RED",
76  "SCIENCE_RED",
77 
78  "LINE_REFER_TABLE",
79  "FLUX_STD_TABLE",
80  "EXTCOEFF_TABLE",
81  "INSTR_RESPONSE_REDL",
82  "INSTR_RESPONSE_REDU",
83 
84  "MASTER_BIAS_REDL",
85  "MASTER_BIAS_REDU",
86  "MASTER_DARK_REDL",
87  "MASTER_DARK_REDU",
88  "MASTER_FLAT_REDL",
89  "MASTER_FLAT_REDU",
90 
91  "ORDER_TABLE_REDL",
92  "ORDER_TABLE_REDU",
93  "LINE_TABLE_REDL",
94  "LINE_TABLE_REDU",
95  "ORDER_GUESS_TAB_REDL",
96  "ORDER_GUESS_TAB_REDU",
97 
98  "DARK_BLUE",
99  "BIAS_BLUE",
100  "MASTER_BIAS_BLUE",
101  "IFLAT_BLUE",
102  "TFLAT_BLUE",
103  "ARC_LAMP_FORM_BLUE",
104  "ARC_LAMP_BLUE",
105  "STANDARD_BLUE",
106  "SCI_POINT_BLUE",
107  "SCIENCE_BLUE",
108 
109  "FLUX_STD_TABLE",
110  "EXTCOEFF_TABLE",
111  "INSTR_RESPONSE_BLUE",
112  "FLUX_STD_TABLE",
113  "EXTCOEFF_TABLE",
114  "INSTR_RESPONSE_BLUE",
115 
116  "ORDER_TABLE_BLUE",
117  "ORDER_FLAT_BLUE",
118  "ORDER_GUESS_TAB_BLUE",
119  "MASTER_BIAS_BLUE",
120  "MASTER_DARK_BLUE",
121  "MASTER_PDARK_BLUE",
122  "MASTER_FLAT_BLUE",
123  "ORDER_TABLE_BLUE",
124  "LINE_TABLE_BLUE",
125 
126 
127  "SFLAT_RED",
128  "FIB_ORDEF_RED",
129  "FIB_ARC_LAMP_FORM_RED",
130  "FIB_FF_ODD_RED",
131  "FIB_FF_EVEN_RED",
132  "FIB_FF_ALL_RED",
133  "FIB_ARC_LAMP_RED",
134  "FIB_FF_ODD_RED",
135  "FIB_FF_EVEN_RED",
136  "FIB_FF_ALL_RED",
137  "FIB_ARC_LAMP_RED",
138  "FIB_ORDEF_RED",
139  "FIB_ARC_LAMP_FORM_RED",
140  "FIB_SCI_RED",
141 
142 
143  "FIB_ORD_GUE_REDL",
144  "FIB_ORD_GUE_REDU",
145  "FIB_ORD_TAB_REDL",
146  "FIB_ORD_TAB_REDU",
147  "MASTER_SFLAT_REDL",
148  "MASTER_SFLAT_REDU",
149  "MASTER_SFLAT_REDL",
150  "MASTER_SFLAT_REDU",
151  "MASTER_SFLAT_REDL",
152  "MASTER_SFLAT_REDU",
153  "FIB_ORDEF_REDL",
154  "FIB_ORDEF_REDU",
155  "FIB_LIN_GUE_REDL",
156  "FIB_LIN_GUE_REDU",
157  "FIB_ORDEF_TABLE_REDL",
158  "FIB_ORDEF_TABLE_REDU",
159  "FIB_FF_BPC_REDL",
160  "FIB_FF_COM_REDL",
161  "FIB_FF_DTC_REDL",
162  "FIB_FF_NOR_REDL",
163  "FIB_FF_NSG_REDL",
164  "FIB_FF_SGC_REDL",
165  "FIB_FF_BPC_REDU",
166  "FIB_FF_COM_REDU",
167  "FIB_FF_DTC_REDU",
168  "FIB_FF_NOR_REDU",
169  "FIB_FF_NSG_REDU",
170  "FIB_FF_SGC_REDU",
171  "FIB_LINE_TABLE_REDL",
172  "FIB_LINE_TABLE_REDU",
173  "FIB_ORDEF_TABLE_REDL",
174  "FIB_ORDEF_TABLE_REDU",
175  "SLIT_FF_BNC_REDL",
176  "SLIT_FF_BPC_REDL",
177  "SLIT_FF_COM_REDL",
178  "SLIT_FF_DTC_REDL",
179  "SLIT_FF_NOR_REDL",
180  "SLIT_FF_SGC_REDL",
181  "SLIT_FF_BNC_REDU",
182  "SLIT_FF_BPC_REDU",
183  "SLIT_FF_COM_REDU",
184  "SLIT_FF_DTC_REDU",
185  "SLIT_FF_NOR_REDU",
186  "SLIT_FF_SGC_REDU"
187 
188  };
189 
190  cpl_pluginlist * pluginlist;
191  const size_t ntags = sizeof(tags) / sizeof(char*);
192 
193  cpl_test_init(PACKAGE_BUGREPORT, CPL_MSG_WARNING);
194  uves_msg("Hello wordl!");
195 
196  pluginlist = cpl_pluginlist_new();
197 
198  cpl_test(!cpl_plugin_get_info(pluginlist));
199 
200  cpl_test(!irplib_plugin_test(pluginlist, ntags, tags));
201 
202  cpl_pluginlist_delete(pluginlist);
203 
204  return cpl_test_end(0);
205 }
206