C Standard Library Extensions  6.2.0
qfits_tools.h
1 /* $Id: qfits_tools.h,v 1.1.1.1 2008-11-03 13:40:49 agabasch Exp $
2  *
3  * This file is part of the ESO QFITS Library
4  * Copyright (C) 2001-2004 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: agabasch $
23  * $Date: 2008-11-03 13:40:49 $
24  * $Revision: 1.1.1.1 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef QFITS_TOOLS_H
29 #define QFITS_TOOLS_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include <stdio.h>
36 #include <stdlib.h>
37 #include <string.h>
38 
39 /*-----------------------------------------------------------------------------
40  Defines
41  -----------------------------------------------------------------------------*/
42 
43 /* Unknown type for FITS value */
44 #define QFITS_UNKNOWN 0
45 /* Boolean type for FITS value */
46 #define QFITS_BOOLEAN 1
47 /* Int type for FITS value */
48 #define QFITS_INT 2
49 /* Float type for FITS value */
50 #define QFITS_FLOAT 3
51 /* Complex type for FITS value */
52 #define QFITS_COMPLEX 4
53 /* String type for FITS value */
54 #define QFITS_STRING 5
55 
56 /*-----------------------------------------------------------------------------
57  Function codes
58  -----------------------------------------------------------------------------*/
59 
60 char * qfits_query_hdr(const char *, const char *) ;
61 char * qfits_query_ext(const char *, const char *, int) ;
62 int qfits_query_n_ext(const char *) ;
63 int qfits_query_nplanes(const char *, int) ;
64 char * qfits_pretty_string(const char *) ;
65 int qfits_is_boolean(const char *) ;
66 int qfits_is_int(const char *) ;
67 int qfits_is_float(const char *) ;
68 int qfits_is_complex(const char *) ;
69 int qfits_is_string(const char *) ;
70 int qfits_get_type(const char *) ;
71 char * qfits_query_card(const char *, const char *) ;
72 int qfits_replace_card(const char *, const char *, const char *) ;
73 const char * qfits_version(void) ;
74 
75 #endif