qfits_tools.h

00001 /* $Id: qfits_tools.h,v 1.1.1.1 2008/11/03 13:40:49 agabasch Exp $
00002  *
00003  * This file is part of the ESO QFITS Library
00004  * Copyright (C) 2001-2004 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: agabasch $
00023  * $Date: 2008/11/03 13:40:49 $
00024  * $Revision: 1.1.1.1 $
00025  * $Name: midi-2_8_2 $
00026  */
00027 
00028 #ifndef QFITS_TOOLS_H
00029 #define QFITS_TOOLS_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <stdio.h>
00036 #include <stdlib.h>
00037 #include <string.h>
00038 
00039 /*-----------------------------------------------------------------------------
00040                                    Defines
00041  -----------------------------------------------------------------------------*/
00042 
00043 /* Unknown type for FITS value */
00044 #define QFITS_UNKNOWN       0
00045 /* Boolean type for FITS value */
00046 #define QFITS_BOOLEAN       1
00047 /* Int type for FITS value */
00048 #define    QFITS_INT        2
00049 /* Float type for FITS value */
00050 #define QFITS_FLOAT         3
00051 /* Complex type for FITS value */
00052 #define QFITS_COMPLEX       4
00053 /* String type for FITS value */
00054 #define QFITS_STRING        5
00055 
00056 /*-----------------------------------------------------------------------------
00057                               Function codes
00058  -----------------------------------------------------------------------------*/
00059 
00060 char * qfits_query_hdr(const char *, const char *) ;
00061 char * qfits_query_ext(const char *, const char *, int) ;
00062 int qfits_query_n_ext(const char *) ;
00063 int qfits_query_nplanes(const char *, int) ;
00064 char * qfits_pretty_string(const char *) ;
00065 int qfits_is_boolean(const char *) ;
00066 int qfits_is_int(const char *) ;
00067 int qfits_is_float(const char *) ;
00068 int qfits_is_complex(const char *) ;
00069 int qfits_is_string(const char *) ;
00070 int qfits_get_type(const char *) ;
00071 char * qfits_query_card(const char *, const char *) ;
00072 int qfits_replace_card(const char *, const char *, const char *) ;
00073 const char * qfits_version(void) ;
00074 
00075 #endif

Generated on 5 Mar 2013 for C Standard Library Extensions by  doxygen 1.6.1