qfits_header.h

00001 /* $Id: qfits_header.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_7_0 $
00026  */
00027 
00028 #ifndef QFITS_HEADER_H
00029 #define QFITS_HEADER_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <stdio.h>
00036 #include <stdlib.h>
00037 #include <string.h>
00038 #include <unistd.h>
00039 
00040 /*-----------------------------------------------------------------------------
00041                                    New types
00042  -----------------------------------------------------------------------------*/
00043 
00044 /*----------------------------------------------------------------------------*/
00053 /*----------------------------------------------------------------------------*/
00054 typedef struct qfits_header {
00055     void    *   first ;         /* Pointer to list start */
00056     void    *   last ;          /* Pointer to list end */
00057     int         n ;             /* Number of cards in list */
00058     /* For efficient looping internally */
00059     void    *   current ;
00060     int         current_idx ;
00061 } qfits_header ;
00062 
00063 /*-----------------------------------------------------------------------------
00064                         Function ANSI prototypes
00065  -----------------------------------------------------------------------------*/
00066 
00067 qfits_header * qfits_header_new(void) ;
00068 qfits_header * qfits_header_default(void) ;
00069 void qfits_header_add(qfits_header *, const char *, const char *, const char *,
00070         const char *) ;
00071 void qfits_header_add_after(qfits_header *, const char *, const char *, 
00072         const char *, const char *, const char *) ;
00073 void qfits_header_append(qfits_header *, const char *, const char *,
00074         const char *, const char *) ;
00075 void qfits_header_del(qfits_header *, const char *) ;
00076 int qfits_header_sort(qfits_header **) ;
00077 qfits_header * qfits_header_copy(const qfits_header *) ;
00078 void qfits_header_mod(qfits_header *, const char *, const char *, const char *);
00079 void qfits_header_destroy(qfits_header *) ;
00080 char * qfits_header_getstr(const qfits_header *, const char *) ;
00081 int qfits_header_getitem(const qfits_header *, int, char *, char *, char *, 
00082         char *) ; 
00083 char * qfits_header_getcom(const qfits_header *, const char *) ;
00084 int qfits_header_getint(const qfits_header *, const char *, int) ;
00085 double qfits_header_getdouble(const qfits_header *, const char *, double) ;
00086 int qfits_header_getboolean(const qfits_header *, const char *, int) ;
00087 int qfits_header_dump(const qfits_header *, FILE *) ;
00088 
00089 #endif

Generated on 11 Feb 2011 for C Standard Library Extensions by  doxygen 1.6.1