00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef ObitTableOTFIndex_H
00030 #define ObitTableOTFIndex_H
00031
00032 #include <string.h>
00033 #include <stdio.h>
00034 #include <stdlib.h>
00035 #include <math.h>
00036 #include <glib.h>
00037 #include "Obit.h"
00038 #include "ObitErr.h"
00039 #include "ObitTable.h"
00040
00041
00132
00133
00135 #define MAXKEYCHARTABLEOTFIndex 24
00136
00138 typedef struct {
00139 #include "ObitTableOTFIndexDef.h"
00140 } ObitTableOTFIndex;
00141
00143 typedef struct {
00144 #include "ObitTableOTFIndexRowDef.h"
00145 } ObitTableOTFIndexRow;
00146
00147
00153 #define ObitTableOTFIndexUnref(in) ObitUnref (in)
00154
00160 #define ObitTableOTFIndexRef(in) ObitRef (in)
00161
00168 #define ObitTableOTFIndexIsA(in) ObitIsA (in, ObitTableOTFIndexGetClass())
00169
00175 #define ObitTableOTFIndexRowUnref(in) ObitUnref (in)
00176
00182 #define ObitTableOTFIndexRowRef(in) ObitRef (in)
00183
00190 #define ObitTableOTFIndexRowIsA(in) ObitIsA (in, ObitTableOTFIndexRowGetClass())
00191
00192
00193
00195 void ObitTableOTFIndexRowClassInit (void);
00196
00198 ObitTableOTFIndexRow* newObitTableOTFIndexRow (ObitTableOTFIndex *table);
00199
00201 gconstpointer ObitTableOTFIndexRowGetClass (void);
00202
00203
00205 void ObitTableOTFIndexClassInit (void);
00206
00208 ObitTableOTFIndex* newObitTableOTFIndex (gchar* name);
00209
00211 ObitTableOTFIndex*
00212 newObitTableOTFIndexValue (gchar* name, Obit *file, glong *ver,
00213 ObitIOAccess access,
00214
00215 ObitErr *err);
00216
00218 gconstpointer ObitTableOTFIndexGetClass (void);
00219
00221 ObitTableOTFIndex* ObitTableOTFIndexCopy (ObitTableOTFIndex *in, ObitTableOTFIndex *out,
00222 ObitErr *err);
00223
00225 ObitTableOTFIndex* ObitTableOTFIndexClone (ObitTableOTFIndex *in, ObitTableOTFIndex *out);
00226
00228 ObitTableOTFIndex* ObitTableOTFIndexConvert (ObitTable *in);
00229
00231 ObitIOCode ObitTableOTFIndexOpen (ObitTableOTFIndex *in, ObitIOAccess access,
00232 ObitErr *err);
00233
00235 ObitIOCode
00236 ObitTableOTFIndexReadRow (ObitTableOTFIndex *in, glong iOTFIndexRow, ObitTableOTFIndexRow *row,
00237 ObitErr *err);
00238
00240 void
00241 ObitTableOTFIndexSetRow (ObitTableOTFIndex *in, ObitTableOTFIndexRow *row,
00242 ObitErr *err);
00243
00245 ObitIOCode
00246 ObitTableOTFIndexWriteRow (ObitTableOTFIndex *in, glong iOTFIndexRow, ObitTableOTFIndexRow *row,
00247 ObitErr *err);
00248
00250 ObitIOCode ObitTableOTFIndexClose (ObitTableOTFIndex *in, ObitErr *err);
00251
00252
00258 typedef struct {
00259 #include "ObitTableOTFIndexClassDef.h"
00260 } ObitTableOTFIndexClassInfo;
00261
00267 typedef struct {
00268 #include "ObitTableOTFIndexRowClassDef.h"
00269 } ObitTableOTFIndexRowClassInfo;
00270 #endif