casacore
|
(ascii) TABLE extension
More...
#include <hdu.h>
Public Member Functions | |
AsciiTableExtension (FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
AsciiTableExtension (FitsKeywordList &, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
AsciiTableExtension (FITSErrorHandler errhandler=FITSError::defaultHandler) | |
~AsciiTableExtension () | |
Int | tbcol (int n) |
position in which column starts More... | |
char * | tnull (int n) |
ascii string that represents the NULL value More... | |
int | write_ascTbl_hdr (FitsOutput &, long, long, int, const char **, long *, const char **, const char **, const char *e) |
write the required keywords for ASCIITableExtension More... | |
Public Member Functions inherited from casacore::BinaryTableExtension | |
BinaryTableExtension (FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
BinaryTableExtension (FitsKeywordList &, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
BinaryTableExtension (FITSErrorHandler errhandler=FITSError::defaultHandler) | |
constructor to match write_bintbl_hdr() More... | |
virtual | ~BinaryTableExtension () |
Int | nrows () const |
return basic elements of a table More... | |
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 More... | |
BinaryTableExtension & | operator++ () |
row selector functions More... | |
BinaryTableExtension & | operator-- () |
BinaryTableExtension & | operator() (int) |
int | read () |
read entire table into memory More... | |
int | read (int) |
read next N rows into memory More... | |
int | set_next (int) |
prepare to write the next N rows More... | |
int | write (FitsOutput &) |
write current rows More... | |
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. More... | |
FitsBase & | field (int i) const |
select a field More... | |
Int | currrow () const |
get current row More... | |
Public Member Functions inherited from casacore::ExtensionHeaderDataUnit | |
ExtensionHeaderDataUnit (FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
ExtensionHeaderDataUnit (FitsKeywordList &, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
~ExtensionHeaderDataUnit () | |
char * | xtension () |
char * | extname () |
Int | extver () |
Int | extlevel () |
Int | pcount () |
Int | gcount () |
int | read (char *addr, int nbytes) |
read next N bytes into addr More... | |
int | write (FitsOutput &fout, char *addr, int nbytes) |
write next N bytes from addr to the FITS output fout More... | |
Public Member Functions inherited from casacore::HeaderDataUnit | |
virtual | ~HeaderDataUnit () |
Int | dims () const |
Int | dim (int n) const |
OFF_T | fitsdatasize () const |
FITS::ValueType | datatype () const |
Int | fitsitemsize () const |
Int | localitemsize () const |
FITS::HDUType | hdutype () const |
int | err () const |
int | skip (uInt n) |
skipping one or more HDU's More... | |
int | skip () |
int | write_hdr (FitsOutput &) |
write the current header More... | |
ConstFitsKeywordList & | kwlist () |
Operations on the HDU's keyword list. More... | |
Vector< String > | kwlist_str (Bool length80=False) |
return the header of the chdu as a vector of String. More... | |
void | firstkw () |
void | lastkw () |
const FitsKeyword * | nextkw () |
const FitsKeyword * | prevkw () |
const FitsKeyword * | currkw () |
const FitsKeyword * | kw (int n) |
const FitsKeyword * | kw (const FITS::ReservedName &n) |
const FitsKeyword * | nextkw (FITS::ReservedName &n) |
const FitsKeyword * | kw (FITS::ReservedName &n, int i) |
const FitsKeyword * | nextkw (FITS::ReservedName &n, int i) |
const FitsKeyword * | kw (const char *n) |
const FitsKeyword * | nextkw (const char *n) |
void | mk (FITS::ReservedName k, Bool v, const char *c=0) |
void | mk (FITS::ReservedName k, const char *v=0, const char *c=0) |
void | mk (FITS::ReservedName k, Int v, const char *c=0) |
void | mk (FITS::ReservedName k, double v, const char *c=0) |
void | mk (int n, FITS::ReservedName k, Bool v, const char *c=0) |
void | mk (int n, FITS::ReservedName k, const char *v, const char *c=0) |
void | mk (int n, FITS::ReservedName k, Int v, const char *c=0) |
void | mk (int n, FITS::ReservedName k, double v, const char *c=0) |
void | mk (const char *n, Bool v, const char *c=0) |
void | mk (const char *n, const char *v=0, const char *c=0) |
void | mk (const char *n, Int v, const char *c=0) |
void | mk (const char *n, float v, const char *c=0) |
void | mk (const char *n, double v, const char *c=0) |
void | mk (const char *n, Int r, Int i, const char *c=0) |
void | mk (const char *n, float r, float i, const char *c=0) |
void | mk (const char *n, double r, double i, const char *c=0) |
void | spaces (const char *n=0, const char *c=0) |
void | comment (const char *n=0, const char *c=0) |
void | history (const char *c=0) |
Bool | notnull (double x) const |
Bool | notnull (char *s) const |
Bool | notnull (Int l) const |
int | get_hdr (FITS::HDUType, FitsKeywordList &) |
int | read_data (char *, Int) |
int | write_data (FitsOutput &, char *, Int) |
OFF_T | read_all_data (char *) |
int | write_all_data (FitsOutput &, char *) |
Private Member Functions | |
void | at_assign () |
Additional Inherited Members | |
Public Types inherited from casacore::HeaderDataUnit | |
enum | HDUErrs { OK , NOMEM , MISSKEY , BADBITPIX , NOAXISN , NOPCOUNT , NOGCOUNT , BADPCOUNT , BADGCOUNT , NOGROUPS , BADNAXIS , BADREC , BADTYPE , BADRULES , BADSIZE , BADOPER , BADCONV , BADIO } |
error handling and error codes that can be returned More... | |
Static Public Member Functions inherited from casacore::HeaderDataUnit | |
static Bool | determine_type (FitsKeywordList &, FITS::HDUType &, FITS::ValueType &, FITSErrorHandler, HDUErrs &) |
Determines the HDU type and the data type Parameterss: keyword list, hdu type, data type, error handler and error status. More... | |
static Bool | compute_size (FitsKeywordList &, OFF_T &, Int &, FITS::HDUType &, FITS::ValueType &, FITSErrorHandler, HDUErrs &) |
Compute the total size of the data associated with an HDU. More... | |
casacore::AsciiTableExtension::AsciiTableExtension | ( | FitsInput & | , |
FITSErrorHandler | errhandler = FITSError::defaultHandler |
||
) |
casacore::AsciiTableExtension::AsciiTableExtension | ( | FitsKeywordList & | , |
FITSErrorHandler | errhandler = FITSError::defaultHandler |
||
) |
casacore::AsciiTableExtension::AsciiTableExtension | ( | FITSErrorHandler | errhandler = FITSError::defaultHandler | ) |
casacore::AsciiTableExtension::~AsciiTableExtension | ( | ) |
|
private |
|
protectedvirtual |
read and write the next FITS data row
Reimplemented from casacore::BinaryTableExtension.
|
inline |
|
inline |
int casacore::AsciiTableExtension::write_ascTbl_hdr | ( | FitsOutput & | , |
long | , | ||
long | , | ||
int | , | ||
const char ** | , | ||
long * | , | ||
const char ** | , | ||
const char ** | , | ||
const char * | e | ||
) |
write the required keywords for ASCIITableExtension
|
protectedvirtual |
Reimplemented from casacore::BinaryTableExtension.
|
protected |
|
protected |