#include "Obit.h"
#include "ObitErr.h"
#include "ObitThread.h"
#include "ObitInfoList.h"
#include "ObitIOHistory.h"
#include "ObitDef.h"
#include "ObitClassDef.h"
Go to the source code of this file.
Classes | |
| struct | ObitHistory |
| ObitHistory Class structure. More... | |
| struct | ObitHistoryClassInfo |
| ClassInfo Structure For Table. More... | |
Defines | |
| #define | ObitHistoryUnref(in) ObitUnref (in) |
| Macro to unreference (and possibly destroy) an ObitHistory returns an ObitHistory*. | |
| #define | ObitHistoryRef(in) ObitRef (in) |
| Macro to reference (update reference count) an ObitHistory. | |
| #define | ObitHistoryIsA(in) ObitIsA (in, ObitHistoryGetClass()) |
| Macro to determine if an object is the member of this or a derived class. | |
| #define | ObitHistorySetFITS(in, disk, file, err) |
| Convenience Macro to define History I/O to a FITS file. | |
| #define | ObitHistorySetAIPS(in, disk, cno, user, err) |
| Convenience Macro to define History I/O to an AIPS file. | |
Typedefs | |
| typedef ObitHistory *(* | ObitHistoryZapFP )(ObitHistory *in, ObitErr *err) |
| typedef ObitIOCode(* | ObitHistoryOpenFP )(ObitHistory *in, ObitIOAccess access, ObitErr *err) |
| typedef ObitIOCode(* | ObitHistoryCloseFP )(ObitHistory *in, ObitErr *err) |
Functions | |
| void | ObitHistoryClassInit (void) |
| Public: Class initializer. | |
| ObitHistory * | newObitHistory (gchar *name) |
| Public: Default constructor. | |
| gconstpointer | ObitHistoryGetClass (void) |
| Public: ClassInfo pointer. | |
| ObitHistory * | newObitHistoryValue (gchar *name, ObitInfoList *info, ObitErr *err) |
| Public: Constructor from object infoList. | |
| ObitHistory * | ObitHistoryZap (ObitHistory *in, ObitErr *err) |
| Public: Delete underlying structures. | |
| ObitHistory * | ObitHistoryCopy (ObitHistory *in, ObitHistory *out, ObitErr *err) |
| Public: Deep copy. | |
| ObitIOCode | ObitHistoryCopyHeader (ObitHistory *in, ObitHistory *out, ObitErr *err) |
| Public: Copy history from header (FITS). | |
| ObitIOCode | ObitHistoryCopy2Header (ObitHistory *in, ObitHistory *out, ObitErr *err) |
| Public: Copy history to header (FITS). | |
| ObitIOCode | ObitHistoryHeader2Header (ObitHistory *in, ObitHistory *out, ObitErr *err) |
| Public: Copy history from header (FITS) to header (FITS). | |
| ObitIOCode | ObitHistoryOpen (ObitHistory *in, ObitIOAccess access, ObitErr *err) |
| Public: Create ObitIO structures and open file. | |
| ObitIOCode | ObitHistoryClose (ObitHistory *in, ObitErr *err) |
| Public: Close file and become inactive. | |
| ObitIOCode | ObitHistoryReadRec (ObitHistory *in, glong recno, gchar hiCard[73], ObitErr *err) |
| Public: Read specified Record. | |
| ObitIOCode | ObitHistoryWriteRec (ObitHistory *in, glong rowno, gchar hiCard[73], ObitErr *err) |
| Public: Write specified Record. | |
| ObitIOCode | ObitHistoryTimeStamp (ObitHistory *in, gchar *label, ObitErr *err) |
| Public: Add time stamp and label. | |
| ObitIOCode | ObitHistoryCopyInfoList (ObitHistory *out, gchar *pgmName, gchar *list[], ObitInfoList *info, ObitErr *err) |
| Public: Copy a list of values from an InfoList to a History. | |
| gint | ObitHistoryNumRec (ObitHistory *in) |
| Public: Tell number of history records. | |
This class is derived from the Obit class.
This class contains a processing history in tabular form. An ObitHistory is the front end to a persistent disk resident structure. Both FITS (as Tables) and AIPS cataloged data are supported. This class is derived from the Obit class. The AIPS conventions for history records are give the program name followed by parameters in keyword=value form and to preceed any non parsable text by the FITS comment header comment delimiter '/'.
|
|
Macro to determine if an object is the member of this or a derived class. Returns TRUE if a member, else FALSE in = object to reference |
|
|
Macro to reference (update reference count) an ObitHistory. returns an ObitHistory*. in = object to reference |
|
|
Value: G_STMT_START{ \
in->info->dim[0]=1; in->info->dim[1]=1; in->info->dim[2]=1; \
in->info->dim[3]=1; in->info->dim[4]=1; \
in->info->work[0] = OBIT_IO_AIPS; \
ObitInfoListPut (in->info, "FileType", OBIT_int, \
in->info->dim, (gpointer)&in->info->work[0], err);\
in->info->dim[0] = 1; \
ObitInfoListPut (in->info, "Disk", OBIT_int, \
in->info->dim, (gpointer)&disk, err); \
ObitInfoListPut (in->info, "CNO", OBIT_int, \
in->info->dim, (gpointer)&cno, err); \
ObitInfoListPut (in->info, "User", OBIT_int, \
in->info->dim, (gpointer)&user, err); \
}G_STMT_END
Sets values on ObitInfoList on input object. |
|
|
Value: G_STMT_START{ \
in->info->dim[0]=1; in->info->dim[1]=1; in->info->dim[2]=1; \
in->info->dim[3]=1; in->info->dim[4]=1; \
in->info->work[0] = OBIT_IO_FITS; \
in->info->work[2] = disk; \
in->info->dim[0] = 1; \
ObitInfoListPut (in->info, "Disk", OBIT_int, \
in->info->dim, (gpointer)&in->info->work[2], err); \
ObitInfoListPut (in->info, "FileType", OBIT_int, \
in->info->dim, (gpointer)&in->info->work[0], err);\
in->info->dim[0] = strlen(file); \
ObitInfoListPut (in->info, "FileName", OBIT_string, \
in->info->dim, (gpointer)file, err); \
}G_STMT_END
Sets values on ObitInfoList on input object. |
|
|
Macro to unreference (and possibly destroy) an ObitHistory returns an ObitHistory*. in = object to unreference |
|
|
|
|
|
|
|
|
|
|
|
Public: Default constructor. Initializes class if needed on first call.
|
|
||||||||||||||||
|
Public: Constructor from object infoList.
|
|
|
Public: Class initializer.
|
|
||||||||||||
|
Public: Close file and become inactive.
|
|
||||||||||||||||
|
Public: Deep copy. Both objects should be filly defined.
|
|
||||||||||||||||
|
Public: Copy history to header (FITS). Both objects should be filly defined.
|
|
||||||||||||||||
|
Public: Copy history from header (FITS).
|
|
||||||||||||||||||||||||
|
Public: Copy a list of values from an InfoList to a History.
|
|
|
Public: ClassInfo pointer.
|
|
||||||||||||||||
|
Public: Copy history from header (FITS) to header (FITS). Both objects should be filly defined.
|
|
|
Public: Tell number of history records.
|
|
||||||||||||||||
|
Public: Create ObitIO structures and open file. The image descriptor is read if OBIT_IO_ReadOnly or OBIT_IO_ReadWrite and written to disk if opened OBIT_IO_WriteOnly. After the file has been opened the member, buffer is initialized for reading/storing the table unless member bufferSize is <0. If the requested version ("Ver" in InfoList) is 0 then the highest numbered table of the same type is opened on Read or Read/Write, or a new table is created on on Write. The file etc. info should have been stored in the ObitInfoList:
|
|
||||||||||||||||||||
|
Public: Read specified Record.
|
|
||||||||||||||||
|
Public: Add time stamp and label.
|
|
||||||||||||||||||||
|
Public: Write specified Record.
|
|
||||||||||||
|
Public: Delete underlying structures.
|
1.3.9.1