GIRAFFE Pipeline Reference Manual

gilinedata.h
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 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 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifndef GILINEDATA_H
29 #define GILINEDATA_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_macros.h>
34 #include <cpl_image.h>
35 #include <cpl_table.h>
36 
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42  typedef struct GiLineData GiLineData;
43 
44 
45  GiLineData* giraffe_linedata_new(void);
46  GiLineData* giraffe_linedata_create(const cpl_table* lines,
47  const cpl_table* fibers,
48  const cxchar* model);
49  void giraffe_linedata_delete(GiLineData* self);
50 
51  cxint giraffe_linedata_reset(GiLineData* self, const cpl_table* lines,
52  const cpl_table* fibers, const cxchar* model);
53 
54  const cxchar* giraffe_linedata_model(const GiLineData* self);
55  cxsize giraffe_linedata_lines(const GiLineData* self);
56  cxsize giraffe_linedata_fibers(const GiLineData* self);
57  cxbool giraffe_linedata_contains(GiLineData* self, const cxchar* name);
58 
59  cxsize giraffe_linedata_accepted(const GiLineData* self);
60  cxsize giraffe_linedata_rejected(const GiLineData* self);
61 
62  cpl_image* giraffe_linedata_status(const GiLineData* self);
63 
64  cxint giraffe_linedata_set_status(GiLineData* self, cxint fiber,
65  cxint line, cxint status);
66  cxint giraffe_linedata_get_status(const GiLineData* self, cxint fiber,
67  cxint line);
68 
69  cxint giraffe_linedata_set_wavelength(GiLineData* self, cxint line,
70  cxdouble lambda);
71  cxdouble giraffe_linedata_get_wavelength(const GiLineData* self,
72  cxint line);
73 
74  cxint giraffe_linedata_set(GiLineData* self, const cxchar* name,
75  cxint fiber, cxint line, cxdouble value);
76  cxdouble giraffe_linedata_get(const GiLineData* self, const cxchar* name,
77  cxint fiber, cxint line);
78 
79  cxint giraffe_linedata_set_data(GiLineData* self, const cxchar* name,
80  const cpl_image* values);
81  const cpl_image* giraffe_linedata_get_data(const GiLineData* self,
82  const cxchar* name);
83 
84  cxint giraffe_linedata_load(GiLineData* self, const cxchar* filename);
85  cxint giraffe_linedata_save(GiLineData* self,
86  const cpl_propertylist* properties,
87  const cxchar* filename);
88 
89  cxint giraffe_linedata_writer(const GiLineData* self,
90  cpl_propertylist* properties,
91  const cxchar* filename, cxcptr data);
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* GILINEDATA_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.12.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Mon Mar 24 2014 11:43:52 by doxygen 1.8.2 written by Dimitri van Heesch, © 1997-2004