Main Page | Class List | Directories | File List | Class Members | File Members

ObitFITS.h

Go to the documentation of this file.
00001 /* $Id: ObitFITS.h,v 1.5 2005/12/19 00:19:25 bcotton Exp $  */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2003-2005                                          */
00004 /*;  Associated Universities, Inc. Washington DC, USA.                */
00005 /*;  This program is free software; you can redistribute it and/or    */
00006 /*;  modify it under the terms of the GNU General Public License as   */
00007 /*;  published by the Free Software Foundation; either version 2 of   */
00008 /*;  the License, or (at your option) any later version.              */
00009 /*;                                                                   */
00010 /*;  This program is distributed in the hope that it will be useful,  */
00011 /*;  but WITHOUT ANY WARRANTY; without even the implied warranty of   */
00012 /*;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    */
00013 /*;  GNU General Public License for more details.                     */
00014 /*;                                                                   */
00015 /*;  You should have received a copy of the GNU General Public        */
00016 /*;  License along with this program; if not, write to the Free       */
00017 /*;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,     */
00018 /*;  MA 02139, USA.                                                   */
00019 /*;                                                                   */
00020 /*;  Correspondence this software should be addressed as follows:     */
00021 /*;         Internet email: bcotton@nrao.edu.                         */
00022 /*;         Postal address: William Cotton                            */
00023 /*;                         National Radio Astronomy Observatory      */
00024 /*;                         520 Edgemont Road                         */
00025 /*;                         Charlottesville, VA 22903-2475 USA        */
00026 /*--------------------------------------------------------------------*/
00027 #ifndef OBITFITS_H 
00028 #define OBITFITS_H 
00029 #include <glib.h>
00030 #include "ObitImageDesc.h"
00031 #include "ObitFile.h"
00032 #include "ObitIO.h"
00033 
00045 /*--------------  FITS types  -------------------------------------*/
00047 typedef gint32 FITSint;
00048 
00049 /*-------------- enumerations -------------------------------------*/
00050 /*------------------  Macros    -------------------------------------*/
00052 #define MAXFITSDISK 20
00053 
00054 /*--------------Class definitions-------------------------------------*/
00056 typedef struct {
00058   gchar *className;
00060   gboolean initialized; 
00062   gchar *FITSdir[MAXFITSDISK];
00064   gint NumberDisks;
00065 } ObitFITS;
00066 
00067 /*---------------Public functions---------------------------*/
00069 void ObitFITSClassInit (gint number, gchar* dir[]);
00070 
00072 ObitFITS* newObitFITS (void);
00073 
00075 void ObitFITSShutdown (void);
00076 
00078 gint ObitFITSAddDir (gchar* dir, ObitErr *err);
00079 
00081 gchar* 
00082 ObitFITSFilename (gint disk, gchar* fileName, ObitErr *err);
00083 
00085 gchar* ObitFITSDirname (gint disk, ObitErr *err);
00086 
00088 void ObitFITSAssign(gchar *pgmName, gint pgmNumber, 
00089                     gint disk, gint scrNo, ObitInfoList *info, 
00090                     ObitErr *err);
00091 
00093 void ObitFITSRename (ObitIO *in, ObitInfoList *info, ObitErr *err);
00094 
00095 #endif /* OBITFITS_H */ 
00096 

Generated on Fri Aug 31 22:13:04 2007 for Obit by  doxygen 1.3.9.1