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

ObitIOHistoryAIPS.c File Reference

ObitIOHistoryAIPS class function definitions. More...

#include "ObitIOHistoryAIPS.h"
#include "ObitAIPS.h"

Defines

#define AIPSHistPerBlock   14;
 Number of AIPS history records ber AIPS block.

Functions

void ObitIOHistoryAIPSInit (gpointer in)
 Private: Initialize newly instantiated object.
void ObitIOHistoryAIPSClear (gpointer in)
 Private: Deallocate members.
ObitIOHistoryAIPSnewObitIOHistoryAIPS (gchar *name, ObitInfoList *info, ObitErr *err)
 Public: Constructor.
gconstpointer ObitIOHistoryAIPSGetClass (void)
 Public: ClassInfo pointer.
gboolean ObitIOHistoryAIPSSame (ObitIO *in, ObitInfoList *in1, ObitInfoList *in2, ObitErr *err)
 Public: Are underlying structures the same.
void ObitIOHistoryAIPSZap (ObitIOHistoryAIPS *in, ObitErr *err)
 Public: Delete underlying structures.
ObitIOHistoryAIPSObitIOHistoryAIPSCopy (ObitIOHistoryAIPS *in, ObitIOHistoryAIPS *out, ObitErr *err)
 Public: Copy constructor.
ObitIOCode ObitIOHistoryAIPSOpen (ObitIOHistoryAIPS *in, ObitIOAccess access, ObitInfoList *info, ObitErr *err)
 Public: Open.
ObitIOCode ObitIOHistoryAIPSClose (ObitIOHistoryAIPS *in, ObitErr *err)
 Public: Close.
ObitIOCode ObitIOHistoryAIPSSet (ObitIOHistoryAIPS *in, ObitInfoList *info, ObitErr *err)
 Public: Init I/O.
ObitIOCode ObitIOHistoryAIPSReadRec (ObitIOHistoryAIPS *in, glong recno, gchar *hiCard, ObitErr *err)
 Read specified History record NB: there is something of a mismatch in the AIPS size of a HI record and Obit only the first 70 characters are kept.
ObitIOCode ObitIOHistoryAIPSWriteRec (ObitIOHistoryAIPS *in, glong recno, gchar *hiCard, ObitErr *err)
 Public: Write Record.
gint ObitIOHistoryAIPSNumRec (ObitIOHistory *in)
 Public: number of records.
ObitIOCode ObitIOHistoryAIPSReadDescriptor (ObitIOHistoryAIPS *in, ObitErr *err)
 Public: Read Descriptor.
ObitIOCode ObitIOHistoryAIPSWriteDescriptor (ObitIOHistoryAIPS *in, ObitErr *err)
 Public: Write Descriptor.
ObitIOCode ObitIOHistoryAIPSFlush (ObitIOHistoryAIPS *in, ObitErr *err)
 Public: Flush.
void ObitIOHistoryAIPSClassInit (void)
 Public: Class initializer.


Detailed Description

ObitIOHistoryAIPS class function definitions.

This class allows history access to AIPS files This class is derived from ObitIOHistory


Define Documentation

#define AIPSHistPerBlock   14;
 

Number of AIPS history records ber AIPS block.


Function Documentation

ObitIOHistoryAIPS* newObitIOHistoryAIPS gchar *  name,
ObitInfoList info,
ObitErr err
 

Public: Constructor.

Initializes class if needed on first call.

Parameters:
name Name [optional] for object
info InfoList defining file, must fully define a file (disk, CNU, user)
err ObitErr for reporting errors.
Returns:
the new object.

void ObitIOHistoryAIPSClassInit void   ) 
 

Public: Class initializer.

void ObitIOHistoryAIPSClear gpointer  inn  ) 
 

Private: Deallocate members.

Does (recursive) deallocation of parent class members.

Parameters:
inn Pointer to the object to deallocate.

ObitIOCode ObitIOHistoryAIPSClose ObitIOHistoryAIPS in,
ObitErr err
 

Public: Close.

Parameters:
in Pointer to object to be closed.
err ObitErr for reporting errors.
Returns:
error code, OBIT_IO_OK=> OK

ObitIOHistoryAIPS* ObitIOHistoryAIPSCopy ObitIOHistoryAIPS in,
ObitIOHistoryAIPS out,
ObitErr err
 

Public: Copy constructor.

The result will have pointers to the more complex members. Parent class members are included but any derived class info is ignored.

Parameters:
in The object to copy
out An existing object pointer for output or NULL if none exists.
err Obit error stack object.
Returns:
pointer to the new object.

ObitIOCode ObitIOHistoryAIPSFlush ObitIOHistoryAIPS in,
ObitErr err
 

Public: Flush.

Parameters:
in Pointer to object to be accessed.
err ObitErr for reporting errors.
Returns:
return code, OBIT_IO_OK=> OK

gconstpointer ObitIOHistoryAIPSGetClass void   ) 
 

Public: ClassInfo pointer.

Initializes class if needed on first call.

Returns:
pointer to the class structure.

void ObitIOHistoryAIPSInit gpointer  inn  ) 
 

Private: Initialize newly instantiated object.

Does (recursive) initialization of base class members before this class.

Parameters:
inn Pointer to the object to initialize.

gint ObitIOHistoryAIPSNumRec ObitIOHistory in  ) 
 

Public: number of records.

Parameters:
in Pointer to open object to be tested
Returns:
number of records, <0 => problem

ObitIOCode ObitIOHistoryAIPSOpen ObitIOHistoryAIPS in,
ObitIOAccess  access,
ObitInfoList info,
ObitErr err
 

Public: Open.

The file and selection info member should have been stored in the ObitInfoList prior to calling. See derived classes for details.

Parameters:
in Pointer to object to be opened.
access access (OBIT_IO_ReadOnly,OBIT_IO_ReadWrite)
info ObitInfoList with instructions for opening
err ObitErr for reporting errors.
Returns:
return code, OBIT_IO_OK=> OK

ObitIOCode ObitIOHistoryAIPSReadDescriptor ObitIOHistoryAIPS in,
ObitErr err
 

Public: Read Descriptor.

Parameters:
in Pointer to object to be read.
err ObitErr for reporting errors.
Returns:
return code, OBIT_IO_OK=> OK

ObitIOCode ObitIOHistoryAIPSReadRec ObitIOHistoryAIPS in,
glong  recno,
gchar *  hiCard,
ObitErr err
 

Read specified History record NB: there is something of a mismatch in the AIPS size of a HI record and Obit only the first 70 characters are kept.

Parameters:
in Pointer to object to be read.
recno record number (1-rel) -1=> next.
hiCard output history record (70 char+NULL)
err ObitErr for reporting errors.
Returns:
return code, OBIT_IO_OK=> OK

gboolean ObitIOHistoryAIPSSame ObitIO in,
ObitInfoList in1,
ObitInfoList in2,
ObitErr err
 

Public: Are underlying structures the same.

This test is done using values entered into the ObitInfoList in case the object has not yet been opened.

Parameters:
in ObitIO for test
in1 ObitInfoList for first object to be tested
in2 ObitInfoList for second object to be tested
err ObitErr for reporting errors.
Returns:
TRUE if to objects have the same underlying structures else FALSE

ObitIOCode ObitIOHistoryAIPSSet ObitIOHistoryAIPS in,
ObitInfoList info,
ObitErr err
 

Public: Init I/O.

Parameters:
in Pointer to object to be accessed.
info ObitInfoList with instructions
err ObitErr for reporting errors.
Returns:
return code, OBIT_IO_OK=> OK

ObitIOCode ObitIOHistoryAIPSWriteDescriptor ObitIOHistoryAIPS in,
ObitErr err
 

Public: Write Descriptor.

Parameters:
in Pointer to object whose header is to be updated..
err ObitErr for reporting errors.
Returns:
return code, OBIT_IO_OK=> OK

ObitIOCode ObitIOHistoryAIPSWriteRec ObitIOHistoryAIPS in,
glong  recno,
gchar *  hiCard,
ObitErr err
 

Public: Write Record.

Parameters:
in Pointer to object to be written.
recno Record number (1-rel) -1=> next, overwrites any existing
hiCard input history record (70 char)
err ObitErr for reporting errors.
Returns:
return code, OBIT_IO_OK=> OK

void ObitIOHistoryAIPSZap ObitIOHistoryAIPS in,
ObitErr err
 

Public: Delete underlying structures.

Note: this does not delete the object

Parameters:
in Pointer to object to be zapped.
err ObitErr for reporting errors.


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