casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
casa::BinaryTableExtension Class Reference

BINTABLE extension. More...

#include <hdu.h>

Inheritance diagram for casa::BinaryTableExtension:
casa::ExtensionHeaderDataUnit casa::HeaderDataUnit casa::AsciiTableExtension casa::BinaryTable casa::FITSIDItoMS1

List of all members.

Public Member Functions

 BinaryTableExtension (FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler)
 BinaryTableExtension (FitsKeywordList &, FITSErrorHandler errhandler=FITSError::defaultHandler)
 BinaryTableExtension (FITSErrorHandler errhandler=FITSError::defaultHandler)
 constructor to match write_bintbl_hdr()
virtual ~BinaryTableExtension ()
Int nrows () const
 return basic elements of a table
Int ncols () const
uInt rowsize () const
Int tfields () const
const char * tform (int n) const
double tscal (int n) const
double tzero (int n) const
Bool isatnull (int n) const
Int tnull (int n) const
const char * ttype (int n) const
const char * tunit (int n) const
const char * tdisp (int n) const
const char * tdim (int n) const
const char * ctype (int n) const
double crpix (int n) const
double crota (int n) const
double crval (int n) const
double cdelt (int n) const
Int theap () const
const char * author () const
const char * referenc () const
int bind (int, FitsBase &)
 binds a FitsField to a column
BinaryTableExtensionoperator++ ()
 row selector functions
BinaryTableExtensionoperator-- ()
BinaryTableExtensionoperator() (int)
int read ()
 read entire table into memory
int read (int)
 read next N rows into memory
int set_next (int)
 prepare to write the next N rows
int write (FitsOutput &)
 write current rows
int write_binTbl_hdr (FitsOutput &, long, int, const char **, const char **, const char **, const char *, long)
 create a binary table header without using FitsKeywordList objet.
FitsBasefield (int i) const
 select a field
Int currrow () const
 get current row

Protected Member Functions

 BinaryTableExtension (FitsInput &, FITS::HDUType, FITSErrorHandler errhandler=FITSError::defaultHandler)
 sets field addresses in the current row void set_fitsrow(Int);
 BinaryTableExtension (FitsKeywordList &, FITS::HDUType, FITSErrorHandler errhandler=FITSError::defaultHandler)
 BinaryTableExtension (FITS::HDUType, FITSErrorHandler errhandler=FITSError::defaultHandler)
virtual int readrow ()
 read and write the next FITS data row
virtual int writerow (FitsOutput &)
void set_fitsrow (Int)
 sets field addresses in the current row

Protected Attributes

Int tfields_x
char ** tform_x
double * tscal_x
double * tzero_x
Boolisatnull_x
Inttnull_x
char ** ttype_x
char ** tunit_x
char ** tdisp_x
char ** tdim_x
char ** ctype_x
double * crpix_x
double * crota_x
double * crval_x
double * cdelt_x
Int nAxis
Int theap_x
char * author_x
char * referenc_x
unsigned char * fitsrow
uIntfits_offset
uInt fitsrowsize
Bool isoptimum
unsigned char * table
uInt tablerowsize
uInt alloc_row
Int beg_row
Int end_row
Int curr_row
FitsBase ** fld
uInttable_offset
void ** data_addr
 data addresses of fields of current row

Private Member Functions

void bt_assign ()

Detailed Description

BINTABLE extension.

Definition at line 1049 of file hdu.h.


Constructor & Destructor Documentation

constructor to match write_bintbl_hdr()

sets field addresses in the current row void set_fitsrow(Int);


Member Function Documentation

const char* casa::BinaryTableExtension::author ( ) const [inline]

Definition at line 1082 of file hdu.h.

References author_x.

binds a FitsField to a column

double casa::BinaryTableExtension::cdelt ( int  n) const [inline]

Definition at line 1080 of file hdu.h.

References cdelt_x.

double casa::BinaryTableExtension::crota ( int  n) const [inline]

Definition at line 1078 of file hdu.h.

References crota_x.

double casa::BinaryTableExtension::crpix ( int  n) const [inline]

Definition at line 1077 of file hdu.h.

References crpix_x.

double casa::BinaryTableExtension::crval ( int  n) const [inline]

Definition at line 1079 of file hdu.h.

References crval_x.

const char* casa::BinaryTableExtension::ctype ( int  n) const [inline]

Definition at line 1076 of file hdu.h.

References ctype_x.

get current row

Definition at line 1111 of file hdu.h.

References curr_row.

FitsBase& casa::BinaryTableExtension::field ( int  i) const [inline]

select a field

Definition at line 1109 of file hdu.h.

References fld.

Bool casa::BinaryTableExtension::isatnull ( int  n) const [inline]

Definition at line 1070 of file hdu.h.

References isatnull_x.

Definition at line 1064 of file hdu.h.

References tfields_x.

return basic elements of a table

Definition at line 1063 of file hdu.h.

References casa::HeaderDataUnit::dim().

Referenced by casa::FITSTable::nrow().

BinaryTableExtension& casa::BinaryTableExtension::operator() ( int  )
BinaryTableExtension& casa::BinaryTableExtension::operator++ ( )

row selector functions

BinaryTableExtension& casa::BinaryTableExtension::operator-- ( )

read entire table into memory

read next N rows into memory

virtual int casa::BinaryTableExtension::readrow ( ) [protected, virtual]

read and write the next FITS data row

Reimplemented in casa::AsciiTableExtension.

const char* casa::BinaryTableExtension::referenc ( ) const [inline]

Definition at line 1083 of file hdu.h.

References referenc_x.

Definition at line 1065 of file hdu.h.

References fitsrowsize.

sets field addresses in the current row

prepare to write the next N rows

const char* casa::BinaryTableExtension::tdim ( int  n) const [inline]

Definition at line 1075 of file hdu.h.

References tdim_x.

const char* casa::BinaryTableExtension::tdisp ( int  n) const [inline]

Definition at line 1074 of file hdu.h.

References tdisp_x.

Definition at line 1066 of file hdu.h.

References tfields_x.

const char* casa::BinaryTableExtension::tform ( int  n) const [inline]

Definition at line 1067 of file hdu.h.

References tform_x.

Definition at line 1081 of file hdu.h.

References theap_x.

Int casa::BinaryTableExtension::tnull ( int  n) const [inline]

Definition at line 1071 of file hdu.h.

References tnull_x.

double casa::BinaryTableExtension::tscal ( int  n) const [inline]

Definition at line 1068 of file hdu.h.

References tscal_x.

const char* casa::BinaryTableExtension::ttype ( int  n) const [inline]

Definition at line 1072 of file hdu.h.

References ttype_x.

const char* casa::BinaryTableExtension::tunit ( int  n) const [inline]

Definition at line 1073 of file hdu.h.

References tunit_x.

double casa::BinaryTableExtension::tzero ( int  n) const [inline]

Definition at line 1069 of file hdu.h.

References tzero_x.

write current rows

int casa::BinaryTableExtension::write_binTbl_hdr ( FitsOutput ,
long  ,
int  ,
const char **  ,
const char **  ,
const char **  ,
const char *  ,
long   
)

create a binary table header without using FitsKeywordList objet.

virtual int casa::BinaryTableExtension::writerow ( FitsOutput ) [protected, virtual]

Reimplemented in casa::AsciiTableExtension.


Member Data Documentation

Definition at line 1158 of file hdu.h.

Definition at line 1140 of file hdu.h.

Referenced by author().

Definition at line 1159 of file hdu.h.

Definition at line 1137 of file hdu.h.

Referenced by cdelt().

Definition at line 1135 of file hdu.h.

Referenced by crota().

Definition at line 1134 of file hdu.h.

Referenced by crpix().

Definition at line 1136 of file hdu.h.

Referenced by crval().

Definition at line 1133 of file hdu.h.

Referenced by ctype().

Definition at line 1161 of file hdu.h.

Referenced by currrow().

data addresses of fields of current row

Definition at line 1165 of file hdu.h.

Definition at line 1160 of file hdu.h.

Definition at line 1149 of file hdu.h.

unsigned char* casa::BinaryTableExtension::fitsrow [protected]

Definition at line 1148 of file hdu.h.

Definition at line 1150 of file hdu.h.

Referenced by rowsize().

Definition at line 1162 of file hdu.h.

Referenced by field().

Definition at line 1127 of file hdu.h.

Referenced by isatnull().

Definition at line 1151 of file hdu.h.

Definition at line 1138 of file hdu.h.

Definition at line 1141 of file hdu.h.

Referenced by referenc().

unsigned char* casa::BinaryTableExtension::table [protected]

Definition at line 1156 of file hdu.h.

Definition at line 1163 of file hdu.h.

Definition at line 1157 of file hdu.h.

Definition at line 1132 of file hdu.h.

Referenced by tdim().

Definition at line 1131 of file hdu.h.

Referenced by tdisp().

Definition at line 1123 of file hdu.h.

Referenced by ncols(), and tfields().

Definition at line 1124 of file hdu.h.

Referenced by tform().

Definition at line 1139 of file hdu.h.

Referenced by theap().

Definition at line 1128 of file hdu.h.

Referenced by tnull().

Definition at line 1125 of file hdu.h.

Referenced by tscal().

Definition at line 1129 of file hdu.h.

Referenced by ttype().

Definition at line 1130 of file hdu.h.

Referenced by tunit().

Definition at line 1126 of file hdu.h.

Referenced by tzero().


The documentation for this class was generated from the following file: