casacore::BinaryTableExtension Class Reference

BINTABLE extension. More...

#include <hdu.h>

Inheritance diagram for casacore::BinaryTableExtension:
casacore::ExtensionHeaderDataUnit casacore::HeaderDataUnit casacore::AsciiTableExtension casacore::BinaryTable casacore::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 1035 of file hdu.h.


Constructor & Destructor Documentation

casacore::BinaryTableExtension::BinaryTableExtension ( FitsInput ,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
)
casacore::BinaryTableExtension::BinaryTableExtension ( FitsKeywordList ,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
)
casacore::BinaryTableExtension::BinaryTableExtension ( FITSErrorHandler  errhandler = FITSError::defaultHandler  ) 

constructor to match write_bintbl_hdr()

virtual casacore::BinaryTableExtension::~BinaryTableExtension (  )  [virtual]
casacore::BinaryTableExtension::BinaryTableExtension ( FitsInput ,
FITS::HDUType  ,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
) [protected]

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

casacore::BinaryTableExtension::BinaryTableExtension ( FitsKeywordList ,
FITS::HDUType  ,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
) [protected]
casacore::BinaryTableExtension::BinaryTableExtension ( FITS::HDUType  ,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
) [protected]

Member Function Documentation

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

Definition at line 1068 of file hdu.h.

References author_x.

int casacore::BinaryTableExtension::bind ( int  ,
FitsBase  
)

binds a FitsField to a column

void casacore::BinaryTableExtension::bt_assign (  )  [private]
double casacore::BinaryTableExtension::cdelt ( int  n  )  const [inline]

Definition at line 1066 of file hdu.h.

References cdelt_x.

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

Definition at line 1064 of file hdu.h.

References crota_x.

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

Definition at line 1063 of file hdu.h.

References crpix_x.

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

Definition at line 1065 of file hdu.h.

References crval_x.

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

Definition at line 1062 of file hdu.h.

References ctype_x.

Int casacore::BinaryTableExtension::currrow (  )  const [inline]

get current row

Definition at line 1097 of file hdu.h.

References curr_row.

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

select a field

Definition at line 1095 of file hdu.h.

References fld.

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

Definition at line 1056 of file hdu.h.

References isatnull_x.

Int casacore::BinaryTableExtension::ncols (  )  const [inline]

Definition at line 1050 of file hdu.h.

References tfields_x.

Int casacore::BinaryTableExtension::nrows (  )  const [inline]

return basic elements of a table

Definition at line 1049 of file hdu.h.

References casacore::HeaderDataUnit::dim().

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

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

row selector functions

BinaryTableExtension& casacore::BinaryTableExtension::operator-- (  ) 
int casacore::BinaryTableExtension::read ( int   ) 

read next N rows into memory

int casacore::BinaryTableExtension::read (  ) 

read entire table into memory

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

read and write the next FITS data row

Reimplemented in casacore::AsciiTableExtension.

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

Definition at line 1069 of file hdu.h.

References referenc_x.

uInt casacore::BinaryTableExtension::rowsize (  )  const [inline]

Definition at line 1051 of file hdu.h.

References fitsrowsize.

void casacore::BinaryTableExtension::set_fitsrow ( Int   )  [protected]

sets field addresses in the current row

int casacore::BinaryTableExtension::set_next ( int   ) 

prepare to write the next N rows

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

Definition at line 1061 of file hdu.h.

References tdim_x.

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

Definition at line 1060 of file hdu.h.

References tdisp_x.

Int casacore::BinaryTableExtension::tfields (  )  const [inline]

Definition at line 1052 of file hdu.h.

References tfields_x.

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

Definition at line 1053 of file hdu.h.

References tform_x.

Int casacore::BinaryTableExtension::theap (  )  const [inline]

Definition at line 1067 of file hdu.h.

References theap_x.

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

Definition at line 1057 of file hdu.h.

References tnull_x.

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

Definition at line 1054 of file hdu.h.

References tscal_x.

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

Definition at line 1058 of file hdu.h.

References ttype_x.

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

Definition at line 1059 of file hdu.h.

References tunit_x.

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

Definition at line 1055 of file hdu.h.

References tzero_x.

int casacore::BinaryTableExtension::write ( FitsOutput  ) 

write current rows

int casacore::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 casacore::BinaryTableExtension::writerow ( FitsOutput  )  [protected, virtual]

Reimplemented in casacore::AsciiTableExtension.


Member Data Documentation

Definition at line 1144 of file hdu.h.

Definition at line 1126 of file hdu.h.

Referenced by author().

Definition at line 1145 of file hdu.h.

Definition at line 1123 of file hdu.h.

Referenced by cdelt().

Definition at line 1121 of file hdu.h.

Referenced by crota().

Definition at line 1120 of file hdu.h.

Referenced by crpix().

Definition at line 1122 of file hdu.h.

Referenced by crval().

Definition at line 1119 of file hdu.h.

Referenced by ctype().

Definition at line 1147 of file hdu.h.

Referenced by currrow().

data addresses of fields of current row

Definition at line 1151 of file hdu.h.

Definition at line 1146 of file hdu.h.

Definition at line 1135 of file hdu.h.

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

Definition at line 1134 of file hdu.h.

Definition at line 1136 of file hdu.h.

Referenced by rowsize().

Definition at line 1148 of file hdu.h.

Referenced by field().

Definition at line 1113 of file hdu.h.

Referenced by isatnull().

Definition at line 1137 of file hdu.h.

Definition at line 1124 of file hdu.h.

Definition at line 1127 of file hdu.h.

Referenced by referenc().

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

Definition at line 1142 of file hdu.h.

Definition at line 1149 of file hdu.h.

Definition at line 1143 of file hdu.h.

Definition at line 1118 of file hdu.h.

Referenced by tdim().

Definition at line 1117 of file hdu.h.

Referenced by tdisp().

Definition at line 1109 of file hdu.h.

Referenced by ncols(), and tfields().

Definition at line 1110 of file hdu.h.

Referenced by tform().

Definition at line 1125 of file hdu.h.

Referenced by theap().

Definition at line 1114 of file hdu.h.

Referenced by tnull().

Definition at line 1111 of file hdu.h.

Referenced by tscal().

Definition at line 1115 of file hdu.h.

Referenced by ttype().

Definition at line 1116 of file hdu.h.

Referenced by tunit().

Definition at line 1112 of file hdu.h.

Referenced by tzero().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1