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

ObitTableList.h

Go to the documentation of this file.
00001 /* $Id: ObitTableList.h,v 1.7 2007/08/31 17:24:48 bcotton Exp $   */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2003-2007                                          */
00004 /*;  Associated Universities, Inc. Washington DC, USA.                */
00005 /*;                                                                   */
00006 /*;  This program is free software; you can redistribute it and/or    */
00007 /*;  modify it under the terms of the GNU General Public License as   */
00008 /*;  published by the Free Software Foundation; either version 2 of   */
00009 /*;  the License, or (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        */
00017 /*;  License along with this program; if not, write to the Free       */
00018 /*;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,     */
00019 /*;  MA 02139, USA.                                                   */
00020 /*;                                                                   */
00021 /*;  Correspondence this software should be addressed as follows:     */
00022 /*;         Internet email: bcotton@nrao.edu.                         */
00023 /*;         Postal address: William Cotton                            */
00024 /*;                         National Radio Astronomy Observatory      */
00025 /*;                         520 Edgemont Road                         */
00026 /*;                         Charlottesville, VA 22903-2475 USA        */
00027 /*--------------------------------------------------------------------*/
00028 #ifndef OBITTABLELIST_H 
00029 #define OBITTABLELIST_H 
00030 #include "Obit.h"
00031 #include "ObitErr.h"
00032 #include "ObitTable.h"
00033 
00034 /*-------- Obit: Software for the recently deceased ------------------*/
00051 /*---------------Class Structure---------------------------*/
00053 typedef struct {
00054 #include "ObitTableListDef.h"   /* actual definition */
00055 } ObitTableList;
00056 
00057 /*----------------- Macroes ---------------------------*/
00063 #define ObitTableListUnref(in) ObitUnref (in)
00064 
00070 #define ObitTableListRef(in) ObitRef (in)
00071 
00078 #define ObitTableListIsA(in) ObitIsA (in, ObitTableListGetClass())
00079 
00080 /*---------------Public functions---------------------------*/
00082 void ObitTableListClassInit (void);
00083 
00085 ObitTableList* newObitTableList (gchar* name);
00086 
00088 gconstpointer ObitTableListGetClass (void);
00089 
00091 ObitTableList* 
00092 ObitTableListCopy  (ObitTableList *in, ObitTableList *out, ObitErr *err);
00093 
00095 void 
00096 ObitTableListPut(ObitTableList *in, 
00097                 gchar* name, glong *version, ObitTable *table, ObitErr *err);
00098 typedef void (*ObitTableListPutFP) (ObitTableList *in, 
00099                 gchar* name, glong *version, ObitTable *table, ObitErr *err);
00100 
00102 gboolean 
00103 ObitTableListGet(ObitTableList *in, 
00104                 gchar* name, glong *version, ObitTable **table, ObitErr *err);
00105 typedef gboolean (*ObitTableListGetFP) (ObitTableList *in, 
00106                                        gchar* name, glong version, ObitTable *table, 
00107                                        ObitErr *err);
00108 
00110 gboolean 
00111 ObitTableListGetNumber(ObitTableList *in, glong number,
00112                       gchar **name, glong *version, ObitTable **table, ObitErr *err);
00113 typedef gboolean 
00114 (*ObitTableListGetNumberFP) (ObitTableList *in, glong number,
00115                             gchar **name, glong *version, ObitTable **table, ObitErr *err);
00116 
00118 glong ObitTableListGetHigh(ObitTableList *in, gchar *name);
00119 typedef glong (*ObitTableListGetHighFP) (ObitTableList *in, gchar* name);
00120 
00122 void 
00123 ObitTableListRemove (ObitTableList *in, gchar *name,  glong version);
00124 typedef void 
00125 (*ObitTableListRemoveFP) (ObitTableList *in, gchar *name,  glong version);
00126 
00128 void ObitTableListPrint  (ObitTableList *in, ObitErr *err);
00129 
00131 void ObitTableListCheck  (ObitTableList *in, ObitErr *err);
00132 
00133 /*-------------------Class Info--------------------------*/
00139 typedef struct  {
00140 #include "ObitTableListClassDef.h" /* Actual definition */
00141 } ObitTableListClassInfo; 
00142 
00143 
00144 #endif /* OBITTABLELIST_H */ 

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