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

ObitAIPSObject.h

Go to the documentation of this file.
00001 /* $Id: ObitAIPSObject.h,v 1.2 2007/08/31 17:24:48 bcotton Exp $ */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2003,2007                                          */
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 about 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 OBITAIPSOBJECT_H 
00028 #define OBITAIPSOBJECT_H 
00029 #include <glib.h>
00030 #include "Obit.h"
00031 #include "ObitErr.h"
00032 #include "ObitAIPS.h"
00033 #include "ObitAIPSCat.h"
00034 
00035 /*-------- ObitIO: Software for the recently deceased ------------------*/
00045 #define MAXAIPSOBJDIM 5
00046 
00047 /*-------------- type definitions----------------------------------*/
00049 typedef gchar AIPSObj[32];
00050 
00052 typedef gchar AIPSObjClass[8];
00053 
00055 typedef gchar AIPSKey[8];
00056 
00058 typedef oint AIPSKeyDim[MAXAIPSOBJDIM];
00059 
00060 /*-------------- enumerations -------------------------------------*/
00065 enum obitAIPSObjectType {
00067   OBIT_AIPSObjectInt = 4,
00069   OBIT_AIPSObjectRe  = 2,
00071   OBIT_AIPSObjectDP  = 1,
00073   OBIT_AIPSObjectCar = 3,
00075   OBIT_AIPSObjectLog = 5,
00076 }; /* end enum obitAIPSObjectType */
00077 
00079 typedef enum obitAIPSObjectType ObitAIPSObjectType;
00080 
00081 /*-------------------- unions -------------------------------------*/
00083   union ObitAIPSCatEquiv { 
00084     oint   itg[256];
00085     gfloat flt[256];
00086     double dbl[256];
00087   };
00088 
00089 /*---------------Public functions---------------------------*/
00091 void ObitAIPSObjectOBinit (oint *ierr);
00092 
00094 void ObitAIPSObjectOBvhkw (AIPSObjClass class, AIPSKey keyword, ObitAIPSObjectType type, oint *ierr);
00095 
00097 void ObitAIPSObjectOBkeyv (oint objnum, AIPSKey keywrd, oint *keypnt, gint *ierr, ObitErr *err);
00098 
00100   void ObitAIPSObjectOBrget (oint objnum, AIPSKey keywrd, ObitAIPSObjectType *type, 
00101                              AIPSKeyDim dim, gpointer value, gchar *valuec, 
00102                              ObitErr *err);
00103 
00105 void ObitAIPSObjectOBcrea (AIPSObj name, AIPSObjClass class, ObitErr *err);
00106 
00108 void ObitAIPSObjectOBfree (AIPSObj name, ObitErr *err);
00109 
00111 void  ObitAIPSObjectOBname (AIPSObj name, oint *objnum, ObitErr *err);
00112 
00114 void  ObitAIPSObjectOBclass (oint objnum, oint *classno, AIPSObjClass name, ObitErr *err);
00115 
00117 void ObitAIPSObjectOBput (oint objnum, AIPSKey keywrd, ObitAIPSObjectType type, 
00118                           AIPSKeyDim dim, gpointer value, gchar *valuec, 
00119                           ObitErr *err);
00120 
00122 void ObitAIPSObjectOBget (oint objnum, AIPSKey keywrd, ObitAIPSObjectType *type, 
00123                           AIPSKeyDim dim,  gpointer value, gchar *valuec, 
00124                           ObitErr *err);
00125 
00127 gboolean 
00128 ObitAIPSObjectOBinfo (oint objnum, AIPSKey keywrd, ObitAIPSObjectType *type, 
00129                       AIPSKeyDim dim, ObitErr *err);
00130 
00132 void ObitAIPSObjectOBdskc (AIPSObj name, oint *disk, oint *cno, ObitErr *err);
00133 
00135 void ObitAIPSObjectOBhget (AIPSObj name, union ObitAIPSCatEquiv cat, ObitErr *err);
00136 
00138 void ObitAIPSObjectOBhput (AIPSObj name, union ObitAIPSCatEquiv cat, ObitErr *err);
00139 
00141 void ObitAIPSObjectOBcopy (AIPSObj namein, AIPSObj namout, ObitErr *err);
00142 
00143 #endif /* OBITAIPSOBJECT_H */ 
00144 

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