UVES Pipeline Reference Manual  5.4.0
uves_chip.h
1 /*
2  * This file is part of the ESO UVES Pipeline
3  * Copyright (C) 2004,2005 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, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 
20 /*
21  * $Author: amodigli $
22  * $Date: 2010-09-24 09:32:02 $
23  * $Revision: 1.9 $
24  * $Name: not supported by cvs2svn $
25  * $Log: not supported by cvs2svn $
26  * Revision 1.7 2007/06/06 08:17:33 amodigli
27  * replace tab with 4 spaces
28  *
29  * Revision 1.6 2007/01/16 10:26:19 jmlarsen
30  * Removed obsolete declaration
31  *
32  * Revision 1.5 2007/01/10 12:35:31 jmlarsen
33  * Added uves_chip_tochar
34  *
35  * Revision 1.4 2006/08/17 13:56:52 jmlarsen
36  * Reduced max line length
37  *
38  * Revision 1.3 2006/02/28 09:15:22 jmlarsen
39  * Minor update
40  *
41  * Revision 1.2 2005/12/19 16:17:56 jmlarsen
42  * Replaced bool -> int
43  *
44  */
45 #ifndef UVES_CHIP_H
46 #define UVES_CHIP_H
47 
48 #include <cpl.h>
49 #include <stdbool.h>
50 
51 enum uves_chip { UVES_CHIP_BLUE = 43542,
52  UVES_CHIP_REDL = 6813,
53  UVES_CHIP_REDU = 11280,
54  UVES_CHIP_INVALID = 3243};
55 /* Decrease the chance that the user erroneously uses the integer values (which
56  the user should not) by defining 'random' enumeration values */
57 
58 enum uves_chip uves_chip_get_first(bool blue);
59 enum uves_chip uves_chip_get_next(enum uves_chip chip);
60 
61 int uves_chip_get_index(enum uves_chip chip);
62 
63 const char *uves_chip_tostring_lower(enum uves_chip chip);
64 const char *uves_chip_tostring_upper(enum uves_chip chip);
65 
66 const char *uves_chip_get_det(enum uves_chip chip);
67 char uves_chip_tochar(enum uves_chip chip);
68 
69 #endif /* UVES_CHIP_H */