00001 /* 00002 * This file is part of the ESO X-shooter Pipeline 00003 * Copyright (C) 2006 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 /* 00021 * $Author: amodigli $ 00022 * $Date: 2009/09/27 10:37:36 $ 00023 * $Revision: 1.9 $ 00024 */ 00025 00026 #ifndef XSH_QC_HANDLING_H 00027 #define XSH_QC_HANDLING_H 00028 00029 #include "xsh_data_instrument.h" 00030 00031 typedef struct { 00032 const char *kw_name; 00033 const char * kw_recipes; 00034 const char * kw_recipes_tbw; 00035 const char * kw_function; 00036 const char * kw_help ; 00037 cpl_type kw_type ; 00038 const char * arms ; 00040 const char * pro_catg ; 00041 } qc_description ; 00042 00043 qc_description * xsh_get_qc_desc_by_kw( const char *kw ) ; 00044 qc_description * xsh_get_qc_desc_by_recipe( const char *recipe, 00045 qc_description *prev ) ; 00046 qc_description * xsh_get_qc_desc_by_function( char *function, 00047 qc_description *prev ) ; 00048 00049 qc_description * xsh_get_qc_desc_by_pro_catg( const char * pro_catg ) ; 00050 00051 int xsh_qc_in_recipe( qc_description * pqc, xsh_instrument * instrument ) ; 00052 int xsh_is_qc_for_arm( const char * arm, qc_description * pqc ) ; 00053 int xsh_is_qc_for_pro_catg( const char * pro_catg, qc_description * pqc ) ; 00054 00055 #endif