GIRAFFE Pipeline Reference Manual

gilinedata.h

00001 /* $Id: gilinedata.h,v 1.11 2008/01/08 14:15:33 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 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  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2008/01/08 14:15:33 $
00024  * $Revision: 1.11 $
00025  * $Name: giraffe-2_8_8 $
00026  */
00027 
00028 #ifndef GILINEDATA_H
00029 #define GILINEDATA_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_image.h>
00035 #include <cpl_table.h>
00036 
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042     typedef struct GiLineData GiLineData;
00043 
00044 
00045     GiLineData* giraffe_linedata_new(void);
00046     GiLineData* giraffe_linedata_create(const cpl_table* lines,
00047                                         const cpl_table* fibers,
00048                                         const cxchar* model);
00049     void giraffe_linedata_delete(GiLineData* self);
00050 
00051     cxint giraffe_linedata_reset(GiLineData* self, const cpl_table* lines,
00052                                  const cpl_table* fibers, const cxchar* model);
00053 
00054     const cxchar* giraffe_linedata_model(const GiLineData* self);
00055     cxsize giraffe_linedata_lines(const GiLineData* self);
00056     cxsize giraffe_linedata_fibers(const GiLineData* self);
00057     cxbool giraffe_linedata_contains(GiLineData* self, const cxchar* name);
00058 
00059     cxsize giraffe_linedata_accepted(const GiLineData* self);
00060     cxsize giraffe_linedata_rejected(const GiLineData* self);
00061 
00062     cpl_image* giraffe_linedata_status(const GiLineData* self);
00063 
00064     cxint giraffe_linedata_set_status(GiLineData* self, cxint fiber,
00065                                       cxint line, cxint status);
00066     cxint giraffe_linedata_get_status(const GiLineData* self, cxint fiber,
00067                                       cxint line);
00068 
00069     cxint giraffe_linedata_set_wavelength(GiLineData* self, cxint line,
00070                                           cxdouble lambda);
00071     cxdouble giraffe_linedata_get_wavelength(const GiLineData* self,
00072                                              cxint line);
00073 
00074     cxint giraffe_linedata_set(GiLineData* self, const cxchar* name,
00075                                cxint fiber, cxint line, cxdouble value);
00076     cxdouble giraffe_linedata_get(const GiLineData* self, const cxchar* name,
00077                                   cxint fiber, cxint line);
00078 
00079     cxint giraffe_linedata_set_data(GiLineData* self, const cxchar* name,
00080                                     const cpl_image* values);
00081     const cpl_image* giraffe_linedata_get_data(const GiLineData* self,
00082                                                const cxchar* name);
00083 
00084     cxint giraffe_linedata_load(GiLineData* self, const cxchar* filename);
00085     cxint giraffe_linedata_save(GiLineData* self,
00086                                 const cpl_propertylist* properties,
00087                                 const cxchar* filename);
00088 
00089     cxint giraffe_linedata_writer(const GiLineData* self,
00090                                   cpl_propertylist* properties,
00091                                   const cxchar* filename, cxcptr data);
00092 
00093 #ifdef __cplusplus
00094 }
00095 #endif
00096 
00097 #endif /* GILINEDATA_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.8.8.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Fri Mar 4 10:50:27 2011 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004