GIRAFFE Pipeline Reference Manual

gilinedata.h
1 /*
2  * This file is part of the GIRAFFE Pipeline
3  * Copyright (C) 2002-2019 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef GILINEDATA_H
21 #define GILINEDATA_H
22 
23 #include <cxtypes.h>
24 
25 #include <cpl_macros.h>
26 #include <cpl_image.h>
27 #include <cpl_table.h>
28 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34  typedef struct GiLineData GiLineData;
35 
36 
37  GiLineData* giraffe_linedata_new(void);
38  GiLineData* giraffe_linedata_create(const cpl_table* lines,
39  const cpl_table* fibers,
40  const cxchar* model);
41  void giraffe_linedata_delete(GiLineData* self);
42 
43  cxint giraffe_linedata_reset(GiLineData* self, const cpl_table* lines,
44  const cpl_table* fibers, const cxchar* model);
45 
46  const cxchar* giraffe_linedata_model(const GiLineData* self);
47  cxsize giraffe_linedata_lines(const GiLineData* self);
48  cxsize giraffe_linedata_fibers(const GiLineData* self);
49  cxbool giraffe_linedata_contains(GiLineData* self, const cxchar* name);
50 
51  cxsize giraffe_linedata_accepted(const GiLineData* self);
52  cxsize giraffe_linedata_rejected(const GiLineData* self);
53 
54  cpl_image* giraffe_linedata_status(const GiLineData* self);
55 
56  cxint giraffe_linedata_set_status(GiLineData* self, cxint fiber,
57  cxint line, cxint status);
58  cxint giraffe_linedata_get_status(const GiLineData* self, cxint fiber,
59  cxint line);
60 
61  cxint giraffe_linedata_set_wavelength(GiLineData* self, cxint line,
62  cxdouble lambda);
63  cxdouble giraffe_linedata_get_wavelength(const GiLineData* self,
64  cxint line);
65 
66  cxint giraffe_linedata_set(GiLineData* self, const cxchar* name,
67  cxint fiber, cxint line, cxdouble value);
68  cxdouble giraffe_linedata_get(const GiLineData* self, const cxchar* name,
69  cxint fiber, cxint line);
70 
71  cxint giraffe_linedata_set_data(GiLineData* self, const cxchar* name,
72  const cpl_image* values);
73  const cpl_image* giraffe_linedata_get_data(const GiLineData* self,
74  const cxchar* name);
75 
76  cxint giraffe_linedata_load(GiLineData* self, const cxchar* filename);
77  cxint giraffe_linedata_save(GiLineData* self,
78  const cpl_propertylist* properties,
79  const cxchar* filename);
80 
81  cxint giraffe_linedata_writer(const GiLineData* self,
82  cpl_propertylist* properties,
83  const cxchar* filename, cxcptr data);
84 
85 #ifdef __cplusplus
86 }
87 #endif
88 
89 #endif /* GILINEDATA_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:51 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2004