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

ObitInfoElem.h

Go to the documentation of this file.
00001 /* $Id: ObitInfoElem.h,v 1.4 2005/09/15 12:59:55 bcotton Exp $  */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2002-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 OBITINFOELEM_H 
00028 #define OBITINFOELEM_H 
00029 #include <stdio.h>
00030 #include <glib.h>
00031 #include "ObitTypes.h"
00032 
00041 #undef CLASS
00042 
00043 #define CLASS "ObitInfoElem"
00044 
00046 #define MAXINFOELEMDIM 5
00047 
00048 typedef struct { 
00050   gchar        *iname;
00052   ObitInfoType itype;
00054   gint32       idim[MAXINFOELEMDIM];
00056   gint32       size;
00058   gpointer     data;
00059 }  ObitInfoElem; 
00060   
00062 ObitInfoElem* newObitInfoElem (gchar *label, ObitInfoType type, 
00063                                 gint32 *dim, gconstpointer data); 
00065 ObitInfoElem* ObitInfoElemCopy (ObitInfoElem *in);
00066 
00068 void freeObitInfoElem(ObitInfoElem *me); 
00069   
00071 gboolean ObitInfoElemTest (ObitInfoElem *me, char *testname); 
00072   
00074 gboolean ObitInfoElemComp (ObitInfoElem *me, ObitInfoType type, gint32 *dim); 
00075   
00077 gboolean ObitInfoElemUpdate (ObitInfoElem *me, gint32 type, 
00078                          gint32 *dim, gconstpointer data, gboolean warn); 
00079 
00081 void ObitInfoElemSave (ObitInfoElem *me, gconstpointer data); 
00082   
00084 void ObitInfoElemResize  (ObitInfoElem *me, ObitInfoType type, gint32 *dim); 
00085 
00087 glong ObitInfoElemSize  (ObitInfoType type, gint32 *dim); 
00088 
00090 void  ObitInfoElemPrint(ObitInfoElem *me, FILE *file);
00091 
00092 #endif /* OBITINFOELEM_H */ 

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